Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/docker/requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sympy>=1.13.3
timm==0.6.13
tomli==2.0.1
torchsr==1.0.4
transformers==4.56.1
transformers>=5.0.0
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

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

The transformers dependency in requirements-ci.txt is now specified as >=5.0.0, so CI will automatically install whatever future version of this third‑party package is published. If the transformers package 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.

Copilot uses AI. Check for mistakes.
zstd==1.5.5.1
pandas>=2.2.2; python_version >= '3.10'
pytest==7.2.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link

Copilot AI Jan 26, 2026

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 conflicts with documentation that explicitly states support for transformers v4.56.1. The file examples/models/phi-3-mini/README.md (line 7) states "Currently, we support transformers v4.56.1" and provides installation instructions for that specific version. This documentation needs to be updated to reflect the new version requirement, or the compatibility should be verified and documented.

Suggested change
transformers >= 5.0.0
transformers == 4.56.1

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Jan 26, 2026

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.

Suggested change
transformers >= 5.0.0
transformers[torch] == 4.56.1

Copilot uses AI. Check for mistakes.
Loading