Repository navigation
docs: clarify turbo KV cache size #119
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -145,7 +145,8 @@ other MCP clients use, and pass it with `--mcp <file>` (or `STRATA_MCP`; the def | |
| - `--kv turbo4` (CUDA) uses TurboQuant: each 128-value K/V block is signed-Walsh rotated, quantized with | ||
| 4-bit Lloyd-Max centroids, and stored in about 28% of the f16 cache size. Q is rotated by the same transform | ||
| when the K cache is TurboQuant, and the attention output is de-rotated when the V cache is TurboQuant. | ||
| `--kv turbo4-3`, `turbo4-2`, `turbo3`, `turbo2` and `turbo3-2` select narrower K/V centroids. | ||
| `--kv turbo4-3`, `turbo4-2`, `turbo3`, `turbo2` and `turbo3-2` select narrower K/V centroids. All of them | ||
| currently use the same 4-bit nibble packing and cache size as `--kv turbo4`. | ||
| - `--k TYPE` and `--v TYPE` set the two cache formats independently (CUDA). Either half may be `f16`, `q8`, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔵 Low · Maintainability · 2 of 2 'Currently' is undated and has no version reference, so the statement will go stale without anyone noticing. When a later change gives turbo3 or turbo2 a packed narrower layout, this sentence stays in the docs and tells users the old cache size is still in effect, so the doc contradicts the code. Prompt for your AI agentReply |
||
| `q4`, `q2`, `turbo4`, `turbo3` or `turbo2`; for example `--k f16 --v q4` or `--k turbo4 --v turbo3`. | ||
| A mixed layout allocates each half with its own word width. The Vulkan backend only supports symmetric | ||
|
|
||
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.
🟠 High · Correctness · 1 of 2
The new claim that all turbo variants share turbo4's packing and cache size cannot be checked from this diff. If any of turbo4-3, turbo4-2, turbo3, turbo2 or turbo3-2 uses a different bit width or packing than turbo4, users sizing GPU memory from this doc will under- or over-allocate the KV cache. The diff gives no code or test evidence for the claim.
Prompt for your AI agent
Reply
/dismiss(optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.