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

Unpin huggingface_hub #24667

Merged
merged 6 commits into from
Jul 5, 2023
Merged

Unpin huggingface_hub #24667

merged 6 commits into from
Jul 5, 2023

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Jul 5, 2023

What does this PR do?

  • As the release 0.16 is out today.

  • Also, use --upgrade-strategy eager in pip install which is required to respect this comment.

    The default -U (which is associated with only-if-needed) won't upgrade to all available new versions. See the doc:

    packages are only upgraded if they are named in the pip command or a requirement file (i.e, they are direct requirements), or an upgraded parent needs a later version of the dependency than is currently installed.

  • Since some packages are upgraded, let's change the cache version number for the new versions could be included in the cache.

@@ -116,8 +116,6 @@ def to_dict(self):
},
]
steps.extend([{"run": l} for l in self.install_steps])
# TODO (ydshieh): Remove this line after the next release (the one after 2023/06/19) of `huggingface_hub`
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 main objective of this PR.

- run: pip install --upgrade pip
- run: pip install -U GitPython
- run: pip install -U .
- run: pip install --upgrade --upgrade-strategy eager pip
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so we can get newer versions when they are available.

@@ -136,20 +136,20 @@ jobs:
- checkout
- restore_cache:
keys:
- v0.6-code_quality-{{ checksum "setup.py" }}
- v0.6-code-quality
- v0.7-code_quality-{{ checksum "setup.py" }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

to include the new packages' versions (installed by this PR)

@ydshieh ydshieh requested review from amyeroberts and Wauplin July 5, 2023 12:51
Copy link
Collaborator

@amyeroberts amyeroberts 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 updating!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 5, 2023

The documentation is not available anymore as the PR was closed or merged.

@ydshieh ydshieh merged commit 050ef14 into main Jul 5, 2023
@ydshieh ydshieh deleted the unpin_hub branch July 5, 2023 14:49
@Wauplin
Copy link
Contributor

Wauplin commented Jul 5, 2023

Thank you @ydshieh !

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.

4 participants