Skip to content

feat: TurboQuant KV cache compression - #38

Merged
ekryski merged 1 commit into
ekryski:alphafrom
TheTom:pr/alpha-8-turboquant
Apr 16, 2026
Merged

ekryski merged 1 commit into
ekryski:alphafrom
TheTom:pr/alpha-8-turboquant

Conversation

@TheTom

@TheTom TheTom commented Apr 16, 2026

Copy link
Copy Markdown

Clean port from ek/tom-eric-moe-tuning. Part of alpha cleanup.

@ekryski ekryski left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Should be rebased off of one of #32 or following PRs for cleaner diff. Looks good though.

Is dependent on ekryski/mlx#4 and ekryski/mlx-swift#7.

WHT-based KV cache compression with Lloyd-Max quantization:
- TurboQuantKVCache: drop-in replacement for KVCacheSimple
- Metal kernels for compressed attention (turbo SDPA)
- Supports 2-bit and 4-bit KV quantization
- toTurboQuantized() conversion on KVCacheSimple
- AttentionUtils dispatch for turbo KV scheme

Co-Authored-By: tturney1@gmail.com
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TheTom
TheTom force-pushed the pr/alpha-8-turboquant branch from ffbbbd3 to 6c451c1 Compare April 16, 2026 04:23
@ekryski
ekryski merged commit b2fb201 into ekryski:alpha Apr 16, 2026
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