Skip to content
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

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

pacman100
Copy link
Contributor

What does this PR do?

  1. More than 70 tests are currently failing because the function extract_hyperparameters_from_trainer tries to access use_cuda_amp attribute which is no more available.

@pacman100 pacman100 marked this pull request as ready for review October 11, 2023 10:52
Copy link
Contributor

@muellerzr muellerzr left a 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!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 11, 2023

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"
Copy link
Collaborator

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!

Copy link
Contributor

@muellerzr muellerzr Oct 11, 2023

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

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@LysandreJik LysandreJik merged commit 69873d5 into main Oct 11, 2023
3 checks passed
@LysandreJik LysandreJik deleted the smangrul/fix-trainer-model-card-issue branch October 11, 2023 13:58
helboukkouri pushed a commit to helboukkouri/transformers that referenced this pull request Oct 16, 2023
blbadger pushed a commit to blbadger/transformers that referenced this pull request Nov 8, 2023
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants