Skip to content
Closed
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 requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ torch-fidelity==0.3.0
torchmetrics==0.11.4
torchvision~=0.16.2
tqdm==4.66.4
transformers==4.41.2
transformers==5.3.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale tokenizers pin conflicts transformers

High Severity

The lockfile bumps transformers to 5.3.0 but leaves tokenizers==0.19.1, which matched the prior 4.x stack. transformers v5 declares a higher minimum tokenizers version, so pip install -r requirements.txt or pip check in install-dev.sh can fail on Python 3.10.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 062b253. Configure here.

transformers-stream-generator==0.0.5
trio==0.25.1
trio-websocket==0.11.1
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ install_requires=
scikit-learn~=1.1

# Models and Metrics Extras
transformers~=4.40 # For anthropic_client, vision_language.huggingface_vlm_client, huggingface_client, huggingface_tokenizer, test_openai_token_cost_estimator, model_summac (via summarization_metrics)
transformers~=5.3 # For anthropic_client, vision_language.huggingface_vlm_client, huggingface_client, huggingface_tokenizer, test_openai_token_cost_estimator, model_summac (via summarization_metrics)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Transformers 5 needs Python 3.10

High Severity

transformers==5.3.0 / transformers~=5.3 require Python 3.10+, but the package still declares python_requires = >=3.8,<3.11 and CI installs on 3.8 and 3.9. Dependency resolution or install for those interpreters fails when pulling the new transformers release.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 062b253. Configure here.

# TODO: Upgrade torch - we need > 2.0.0 for newer versions of transformers
torch>=1.13.1,<3.0.0 # For huggingface_client, yalm_tokenizer, model_summac (via summarization_metrics)
torchvision>=0.14.1,<3.0.0 # For huggingface_client, yalm_tokenizer, model_summac (via summarization_metrics)
Expand Down