majentik commited on
Commit
afd91c7
·
verified ·
1 Parent(s): 079a308

docs: upstream-first KV-cache guidance (q8_0/q4_0, mainline Hadamard rotation); fork demoted to experimental

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -20,6 +20,23 @@ language:
20
  - en
21
  ---
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  # Mistral-Small-4-119B-RotorQuant-MLX-4bit
24
 
25
  **Dual compression: 4-bit MLX weight quantization + RotorQuant KV cache quantization** for Mistral Small 4 on Apple Silicon.
 
20
  - en
21
  ---
22
 
23
+ > [!TIP]
24
+ > **KV-cache quantization without any fork (recommended, 2026):** upstream
25
+ > llama.cpp/Ollama now cover this natively — use `-ctk q8_0 -ctv q8_0`
26
+ > (~half KV memory, negligible quality loss: perplexity +0.002–0.05) or
27
+ > `-ctk q4_0 -ctv q4_0` (~quarter memory, ≈7.6% perplexity increase). In
28
+ > Ollama: `OLLAMA_KV_CACHE_TYPE=q8_0` with `OLLAMA_FLASH_ATTENTION=1`. Keep
29
+ > K and V types symmetric to stay on the fast fused Flash-Attention path.
30
+ > Since April 2026, mainline llama.cpp also applies Hadamard rotation to
31
+ > KV activations ([PR #21038](https://github.com/ggml-org/llama.cpp/pull/21038)),
32
+ > which greatly improves low-bit KV quality (opt-out:
33
+ > `LLAMA_ATTN_ROT_DISABLE=1`).
34
+ >
35
+ > The RotorQuant/TurboQuant fork flow below is **experimental/legacy**: the
36
+ > TurboQuant llama.cpp PR was closed without merging (June 2026) and the fork
37
+ > is unmaintained relative to mainline. It is NOT required to use this model.
38
+ <!-- kv-upstream-note -->
39
+
40
  # Mistral-Small-4-119B-RotorQuant-MLX-4bit
41
 
42
  **Dual compression: 4-bit MLX weight quantization + RotorQuant KV cache quantization** for Mistral Small 4 on Apple Silicon.