Skip to content

Make pytorch examples UV-compatible #39635

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

Merged
merged 4 commits into from
Jul 25, 2025
Merged

Make pytorch examples UV-compatible #39635

merged 4 commits into from
Jul 25, 2025

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Jul 24, 2025

... by adding the dependencies headers

I'm adding them to all the pytorch examples except the "question-answering" folder since they're not single file scripts.

I also updated release.py to update the UV dependencies accordingly:

  • for dev version, require transformers @ git+https://github.com/huggingface/transformers
  • for release version, require transformers==VERSION

@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.

@lhoestq lhoestq marked this pull request as ready for review July 24, 2025 16:20
Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Nice 🔥 thanks for running through all of them!

@ArthurZucker ArthurZucker merged commit 91f591f into main Jul 25, 2025
15 of 17 checks passed
@ArthurZucker ArthurZucker deleted the uv-scripts branch July 25, 2025 08:46
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