Skip to content

fix #2432: support transformers>=5.0.0 and fix torch.load security warning - #2455

Open
vigneshkumar25 wants to merge 1 commit into
huggingface:mainfrom
vigneshkumar25:fix/transformers-v5-compat-torch-load-cve
Open

fix #2432: support transformers>=5.0.0 and fix torch.load security warning#2455
vigneshkumar25 wants to merge 1 commit into
huggingface:mainfrom
vigneshkumar25:fix/transformers-v5-compat-torch-load-cve

Conversation

@vigneshkumar25

@vigneshkumar25 vigneshkumar25 commented Jul 1, 2026

Copy link
Copy Markdown
  • Relax transformers upper bound to <6.0 to unblock v5 users
  • Add weights_only=True to torch.load to fix CVE security warning

Fixes #2432

What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Who can review?

- Relax transformers upper bound to <6.0 to unblock v5 users
- Add weights_only=True to torch.load to fix CVE security warning

Fixes huggingface#2432
@vigneshkumar25 vigneshkumar25 changed the title fix: support transformers>=5.0.0 and fix torch.load security warning fix #2432: support transformers>=5.0.0 and fix torch.load security warning Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Patch release to support transformers >= 5.0.0

1 participant