Skip to content
Closed
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"sentence-transformers==5.1.0",
"torch==2.8.0",
"torchvision==0.23.0",
"transformers==4.56.2",
"transformers==5.0.0rc3",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pinning unstable RC version may conflict with sentence-transformers

High Severity

transformers==5.0.0rc3 is a release candidate, not a stable release, and sentence-transformers==5.1.0 specifies transformers<5.0.0,>=4.41.0 as a dependency. While pip resolves this (PEP 440 treats 5.0.0rc3 < 5.0.0), sentence-transformers 5.1.0 was never tested against transformers 5.0 APIs. Transformers 5.0 removes many deprecated objects and overhauls tokenization, which may cause runtime failures in sentence-transformers internals or in the custom Trainer subclass that relies on internal attributes like model_accepts_loss_kwargs and current_gradient_accumulation_steps.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 481490c. Configure here.

"typed-argument-parser==1.11.0",
"wandb==0.23.1",
]
Expand Down
Loading