-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible bug in SFTTrainer #1837
Comments
@jjc10 would you like to send a PR? |
@jjc10 i fixed it via the above PR |
Sorry just saw your reply @kashif . |
Hi , |
Hi @dumeixiang, Example:
|
Hi folks,
I am running into an issue with the SFTTrainer regarding the neftune_noise_alpha parameter.
If I leave this argument empty and let it default to None, there seems to be an error in the code flow on line 307 of the SFTTrainer. Namely (with added comments):
Later on in the train() at line 448, the error
AttributeError: 'SFTTrainer' object has no attribute 'neftune_noise_alpha'
Possible fix:
I believe one fix would be to change line 307 from
hasattr(args, "neftune_noise_alpha")
tohasattr(args, "neftune_noise_alpha") and neftune_noise_alpha is not None
Additional info:
Thanks and cheers!
The text was updated successfully, but these errors were encountered: