-
Notifications
You must be signed in to change notification settings - Fork 815
Update to transformers 5.0 #16875
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
base: main
Are you sure you want to change the base?
Update to transformers 5.0 #16875
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,4 +4,4 @@ datasets == 3.6.0 # 4.0.0 deprecates trust_remote_code and load scripts. For now | |||||||||
| timm == 1.0.7 | ||||||||||
| torchsr == 1.0.4 | ||||||||||
| torchtune >= 0.6.1 | ||||||||||
| transformers == 5.0.0rc1 | ||||||||||
| transformers >= 5.0.0 | ||||||||||
|
||||||||||
| transformers >= 5.0.0 | |
| transformers == 4.56.1 |
Copilot
AI
Jan 26, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update to transformers >= 5.0.0 appears incomplete. The file examples/arm/image_classification_example/requirements.txt still pins to transformers[torch] == 4.56.1. This version mismatch could cause inconsistencies between different examples. Consider updating examples/arm/image_classification_example/requirements.txt to align with this version requirement, or verify that the ARM example is compatible with transformers 5.0.0.
| transformers >= 5.0.0 | |
| transformers[torch] == 4.56.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
transformersdependency inrequirements-ci.txtis now specified as>=5.0.0, so CI will automatically install whatever future version of this third‑party package is published. If thetransformerspackage or its distribution channel is ever compromised, a malicious release could be pulled into CI and execute arbitrary code with access to secrets or the ability to modify build artifacts. To reduce supply-chain risk, pin this dependency to a specific immutable version (or hash) and update it intentionally rather than via an open version range.