Skip to content

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.

if trainer.use_apex:
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
@LysandreJik LysandreJik deleted the smangrul/fix-trainer-model-card-issue branch October 11, 2023 13:58
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.

6 participants