Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for QuantizedCache #5

Merged
merged 5 commits into from
Nov 21, 2024
Merged

add support for QuantizedCache #5

merged 5 commits into from
Nov 21, 2024

Conversation

SimJeg
Copy link
Collaborator

@SimJeg SimJeg commented Nov 21, 2024

Transformers support KV cache quantization through the QuantizedCache class (see their blog post). I propose to update BasePress and pipeline.py to support it.

Note that it implies to add several installations I did not include in pyproject.toml following their philosophy of not install additional kernels. I noticed issues during installation as mentioned here.

Copy link
Collaborator

@maxjeblick maxjeblick left a comment

Choose a reason for hiding this comment

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

lgtm thanks a lot!

@SimJeg SimJeg merged commit 64b3c17 into main Nov 21, 2024
2 checks passed
@SimJeg SimJeg deleted the kv-cache-quantization branch November 21, 2024 15:50
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