Repository navigation
Sync huggingface-transformers with the updated tutorial - #882
Merged
martin-martin merged 2 commits intoOct 9, 2026
Merged
Conversation
…Face Transformers: Leverage Open-Source AI in Python Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- running_pipelines.py: use "Hugging Face" in the first example sentence so the printed score matches the tutorial (0.9863850474357605). - requirements.txt: add pillow==12.3.0, needed by the image pipeline. - README.md: pin the pip install line to the tested versions. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
martin-martin
deleted the
maintenance/huggingface-transformers-20261009
branch
October 9, 2026 12:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintenance sync for Hugging Face Transformers: Leverage Open-Source AI in Python. The article's update draft re-pins its dependencies to Transformers 5.
Changes
requirements.txt: transformers 4.42.4 → 5.19.0, torch 2.3.1 → 2.14.1, accelerate 0.32.1 → 1.15.0, polars 1.2.0 → 2.0.0. Addedtqdm==4.70.1because the notebook imports it directly, andpillow==12.3.0because the image pipeline needs it.pyproject.toml: bumped the same constraints, plus pillow ^12.3.0, notebook ^7.6.3 and ipywidgets ^8.1.9. The Python floor goes from ^3.12 to ^3.10, the real minimum: every pinned package needs>=3.10, and vermin reports 3.6 for the code.poetry.lock: regenerated with Poetry 2.5.1.README.md: pinned the pip install line to the tested versions.running_pipelines.py: changed "HuggingFace" to "Hugging Face" in the first example sentence. The script used different text than the article, so it printed a different score.Verification (Python 3.14, CPU torch, fresh venv from
requirements.txtalone)auto_classes.pyandrunning_pipelines.pyrun cleanly. Every printed value now matches the updated article, including the first sentiment score and the llama prediction.time_text_classifier()on a CPU pipeline). I couldn't run the GPU cells because there's no GPU here.ruff@0.14.1 format --checkandruff checkpass.Links
🤖 Generated with Claude Code