You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow KVarN runtime validation and server auto-slot mode to use kv-unified, and gate prompt-cache state restore on actual memory stream safety instead of disabling unified KV globally. Add CUDA KVarN irregular-index coverage and update docs/tests.
Copy file name to clipboardExpand all lines: docs/beellama-args.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,9 @@ For current long-context Qwen and Gemma DFlash serving, the common asymmetric ch
205
205
206
206
Do not assume enum compatibility with TheTom's public TurboQuant fork. Bee uses the buun enum order for Turbo/TCQ cache types while keeping a 128-value `turbo3` block. Bee keeps TCQ cache IDs at `45` and `46`; Tom's `TQ3_1S` and `TQ4_1S` model weight formats use new GGML type IDs `47` and `48`.
207
207
208
-
KVarN pseudo types are accepted only on the target `--cache-type-k` / `--cache-type-v` path. Draft cache arguments intentionally reject them. If only one side is specified, Bee mirrors that KVarN bit width to the other side; all K/V pairs over `2`, `3`, `4`, `5`, `6`, and `8` bits are selectable. KVarN still requires a supported attention/cache path, non-unified KV streams, 128-slice-compatible key/value head dimensions, and backend native KVarN ops unless `--kv-kvarn-fallback` is enabled.
208
+
KVarN pseudo types are accepted only on the target `--cache-type-k` / `--cache-type-v` path. Draft cache arguments intentionally reject them. If only one side is specified, Bee mirrors that KVarN bit width to the other side; all K/V pairs over `2`, `3`, `4`, `5`, `6`, and `8` bits are selectable. KVarN supports both normal per-sequence KV streams and `--kv-unified`, and still requires a supported attention/cache path, 128-slice-compatible key/value head dimensions, and backend native KVarN ops unless `--kv-kvarn-fallback` is enabled.
209
+
210
+
When KVarN runs with `--kv-unified`, it uses one physical structured stream and standard KV metadata for sequence isolation. Per-sequence prompt-cache state restore is used only when that shared stream is exclusive; otherwise the server keeps correctness by skipping the RAM state restore and processing the prompt normally.
209
211
210
212
Layers that cannot use structured KVarN records (for example iSWA sliding-window layers, whose rolling eviction is incompatible with KVarN 128-token tile groups) fall back to a normal KV cache whose type matches the requested bit width: `kvarn2` → `q2_0`, `kvarn3` → `q3_0`, `kvarn4` → `q4_0`, `kvarn5` → `q5_0`, `kvarn6` → `q6_0`, `kvarn8` → `q8_0`. This keeps total KV memory at the requested bit level instead of silently storing the fallback layers in `f16`.
0 commit comments