Skip to content

fix(deps): constrain Transformers compatibility - #407

Merged
KartikP merged 1 commit into
mainfrom
kp/constrain-transformers-compatibility
Aug 2, 2026
Merged

fix(deps): constrain Transformers compatibility#407
KartikP merged 1 commit into
mainfrom
kp/constrain-transformers-compatibility

Conversation

@KartikP

@KartikP KartikP commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • require Transformers 4.51 or newer for DynamicCache and Qwen3 support
  • exclude Transformers 5, which removed the cache conversion APIs
  • keep Hugging Face Hub below 1.0 through the Transformers 4 dependency range so datasets 2.x remains compatible

Testing

  • resolved the Linux Python 3.11 dependency graph to Transformers 4.57.6 and Hugging Face Hub 0.36.2
  • built the wheel and verified Requires-Dist: transformers<5,>=4.51

Transformers 5 removes cache APIs used by the Hugging Face helper.
@KartikP
KartikP merged commit 698c74f into main Aug 2, 2026
11 checks passed
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.

1 participant