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

Update Transformers to huggingface_hub >= 0.1.0 #14251

Merged
merged 4 commits into from
Nov 2, 2021
Merged

Update Transformers to huggingface_hub >= 0.1.0 #14251

merged 4 commits into from
Nov 2, 2021

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Nov 2, 2021

What does this PR do?

This PR updates the minimum version of huggingface_hub to 0.1.0 and makes all the simplifications related to HfApi methods being exposed as functions.

Note that some of the commands that relied on the old HfApi were failing since the switch a few versions ago but no issue was opened. This PR removes the code and just returns a somewhat helpful error message.

This PR also fixes one push_to_hub test for the Trainer, currently failing if there are several GPUs.

@sgugger sgugger requested a review from LysandreJik November 2, 2021 18:43
Comment on lines -1412 to +1416
expected_commits = [f"Training in progress, step {i}" for i in range(20, 0, -5)]
total_steps = 20 // num_gpus
expected_commits = [f"Training in progress, step {i}" for i in range(total_steps, 0, -5)]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the test that was failing on multi-GPU

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Nice, welcome cleanup! Thank you for taking care of that @sgugger

@sgugger sgugger merged commit 558f854 into master Nov 2, 2021
@sgugger sgugger deleted the bump_hf_hub branch November 2, 2021 22: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.

2 participants