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

Specify min versions #2303

Merged
merged 18 commits into from
Oct 31, 2024
Merged

Specify min versions #2303

merged 18 commits into from
Oct 31, 2024

Conversation

qgallouedec
Copy link
Member

@qgallouedec qgallouedec commented Oct 31, 2024

What does this PR do?

This PR adds a min version for datasets and accelerate. It adds a test to ensure that these min version are indeed supported.

I've found the specified min version by dichotomy.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a GitHub issue? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@qgallouedec qgallouedec changed the base branch from main to fix-no-optional-deps October 31, 2024 18:12
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@lewtun lewtun left a comment

Choose a reason for hiding this comment

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

Nice work enforcing the min versions - LGTM!

python -m pip install --upgrade pip
python -m pip install accelerate==0.34.0
python -m pip install datasets==2.21.0
python -m pip install transformers==4.46.0
Copy link
Member

Choose a reason for hiding this comment

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

For my understanding, if we bump the min version in setup.py we also need to bump it here as well right?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's right.
Ideally, we would be able to pip install minimal versions via, eg, pip install --prefer_min ., but it's not possible yet, see pypa/pip#8085

Base automatically changed from fix-no-optional-deps to main October 31, 2024 21:37
@qgallouedec qgallouedec merged commit 6138439 into main Oct 31, 2024
14 checks passed
@qgallouedec qgallouedec deleted the min-versions branch October 31, 2024 23:26
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.

3 participants