Skip to content

[KV Cache] support kv cache int8 per channel quant #398

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Eviannn
Copy link

@Eviannn Eviannn commented Jul 19, 2025

kv cache quant int8 per channel is supported using this pr.
Besieds, llm-compressor needs to be updated as well: vllm-project/llm-compressor#1663

@dsikka dsikka self-requested a review July 19, 2025 12:27
"""Initlaize k_scale, v_scale for self_attn"""

expected_shape = 1 # per tensor
if quantization_args.strategy == QuantizationStrategy.CHANNEL:
expected_shape = module.k_proj.out_features
Copy link
Collaborator

Choose a reason for hiding this comment

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

If channel wise quantization - this should be 2D
Please refer to the init here;

if quantization_args.strategy == QuantizationStrategy.CHANNEL:

Copy link
Author

Choose a reason for hiding this comment

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

done,thx a lot!

@Eviannn Eviannn requested a review from dsikka August 7, 2025 03:43
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