fix: restrict transformers version to 4.x #379
Merged
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Misc PR
Type of PR
Description
transformers==4.57.6and also figure out a migration path for legacy cache code #367Restricting 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