-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
[Attention Backend] TurboQuant: 2-bit KV cache compression with 4x capacity #38479
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
Merged
vllm-bot
merged 10 commits into
vllm-project:main
from
vibhavagarwal5:feature/turboquant-kv-cache
Apr 15, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ad52941
feat: add TurboQuant KV cache attention backend
vibhavagarwal5 a30debb
refactor: integrate TurboQuant into vLLM engine and model config
vibhavagarwal5 2105b9a
test: add TurboQuant unit tests and GSM8K eval configs
vibhavagarwal5 297cd12
chore: add benchmark/eval tooling
vibhavagarwal5 43382f3
Merge branch 'main' into feature/turboquant-kv-cache
vibhavagarwal5 a8d08c6
turboquant attn on xpu (#5)
xinyu-intel de371fe
addressed mgoin's and lishunyang12's comments
vibhavagarwal5 59780c2
pre-commit fix
vibhavagarwal5 1305fcb
CI bug fix, pre-commit fix
vibhavagarwal5 ac46a98
Merge branch 'main' into feature/turboquant-kv-cache
mgoin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| model_name: "Qwen/Qwen3-4B" | ||
| accuracy_threshold: 0.78 | ||
| num_questions: 1319 | ||
| num_fewshot: 5 | ||
| server_args: "--kv-cache-dtype turboquant_k3v4_nc --enforce-eager --max-model-len 4096" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| model_name: "Qwen/Qwen3-4B" | ||
| accuracy_threshold: 0.80 | ||
| num_questions: 1319 | ||
| num_fewshot: 5 | ||
| server_args: "--kv-cache-dtype turboquant_k8v4 --enforce-eager --max-model-len 4096" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| model_name: "Qwen/Qwen3-4B" | ||
| accuracy_threshold: 0.75 | ||
| num_questions: 1319 | ||
| num_fewshot: 5 | ||
| server_args: "--kv-cache-dtype turboquant_3bit_nc --enforce-eager --max-model-len 4096" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| model_name: "Qwen/Qwen3-4B" | ||
| accuracy_threshold: 0.80 | ||
| num_questions: 1319 | ||
| num_fewshot: 5 | ||
| server_args: "--kv-cache-dtype turboquant_4bit_nc --enforce-eager --max-model-len 4096" |
|
vibhavagarwal5 marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Qwen3-4B-TQ-k8v4.yaml | ||
| Qwen3-4B-TQ-t4nc.yaml | ||
| Qwen3-4B-TQ-k3v4nc.yaml | ||
| Qwen3-4B-TQ-t3nc.yaml |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One table row is the only user-facing documentation for this whole PR. No prose on when to pick TurboQuant vs FP8, which head dims work, quality/throughput tradeoffs, or composition with prefix caching/LoRA/chunked prefill. A short section under
docs/features/quantization/(or similar) would make this discoverable — right now users will have to read the PR body.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be follow up work tbh