-
Notifications
You must be signed in to change notification settings - Fork 682
feat: Add TurboQuant (quant_policy=42) support for KV Cache Quantization #4510
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
windreamer
wants to merge
14
commits into
InternLM:main
Choose a base branch
from
windreamer:turboquant-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8955efa
feat: add TurboQuant K4V2 mixed precision KV cache quantization (quan…
windreamer e556f2a
refactor(tests): reorganize quant_policy==42 tests into dedicated files
windreamer 6df133a
Add TurboQuant (quant_policy=42) support to KV cache kernels
windreamer 6e8c8cc
refactor(tests): reorganize quant_policy==42 tests into dedicated files
windreamer be2a279
fix: resolve butterfly_rotate_inv and dtype issues in fill_kv_cache.py
windreamer bbde920
fix(attention): support quant_policy==42 with butterfly rotation
windreamer 62c1db2
refactor: introduce QuantPolicy enum and consolidate TurboQuant utili…
windreamer c31225a
feat(turbo_quant): optimize Hadamard transform with fast_hadamard_tra…
windreamer 1255c52
Apply suggestions from code review
windreamer 177894e
fix: optimize TurboQuant kernel by replacing codebook lookup with inl…
windreamer 3fb8649
fix(turboquant): fix test failures and refactor duplicate code
windreamer 1824242
refactor: use tl.constexpr() for quant_policy constants in Triton ker…
windreamer e1bfc96
feat(turbo_quant): fuse split-K reduce and inverse Hadamard transform
windreamer e20931e
fix: enable quant_policy in cli
windreamer 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.