Skip to content

Conversation

@psschwei
Copy link
Member

@psschwei psschwei commented Jan 28, 2026

Misc PR

Type of PR

  • Bug Fix
  • New Feature
  • Documentation
  • Other

Description

Restricting transformers library to v4.x due to a dependency in the Hugging Face backend on DynamicCache.to_legacy_cache (which is removed in transformers v5)

Pinning to v4.57.6 as mentioned in the issue opened a can of worms: it required a vllm bump, which required a bump to outlines, which would've required code changes in the backends.

For now, just putting an upper cap on the version to prevent problems with removing legacy cache. Can work on a bigger update as a follow on (though it might be better to put effort on finding the new method you're supposed to use for getting tensors out of DynamicCache instead)

Testing

  • Tests added to the respective file if code was changed
  • New code has 100% coverage if code as added
  • Ensure existing tests and github automation passes (a maintainer will kick off the github automation when the rest of the PR is populated)

Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
@github-actions
Copy link
Contributor

The PR description has been updated. Please fill out the template for your PR to be reviewed.

@mergify
Copy link

mergify bot commented Jan 28, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|release)(?:\(.+\))?:

Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
@psschwei psschwei changed the title fix: pin transformers version to 4.57.6 fix: restrict transformers version to 4.x Jan 28, 2026
Copy link

@AngeloDanducci AngeloDanducci left a comment

Choose a reason for hiding this comment

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

LGTM

@psschwei psschwei merged commit 67f8bc0 into generative-computing:main Jan 29, 2026
6 checks passed
@psschwei psschwei deleted the pin-transformers branch January 29, 2026 16:33
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.

2 participants