-
Notifications
You must be signed in to change notification settings - Fork 27.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
fix the model card issue as use_cuda_amp
is no more available
#26731
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix Sourab!
The documentation is not available anymore as the PR was closed or merged. |
hyperparameters["mixed_precision_training"] = f"Apex, opt level {trainer.args.fp16_opt_level}" | ||
else: | ||
hyperparameters["mixed_precision_training"] = "Native AMP" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know well this part. Could you share why use_cuda_amp
is no longer available from trainer
? Otherwise LGTM. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SharedDDP was deprecated (and now removed) in favor of using Accelerate natively: #25702
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
What does this PR do?
extract_hyperparameters_from_trainer
tries to accessuse_cuda_amp
attribute which is no more available.