majentik commited on
Commit
76d45b9
·
verified ·
1 Parent(s): 4811291

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
@@ -19,6 +19,23 @@ license: apache-2.0
19
  pipeline_tag: text-generation
20
  ---
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  # Leanstral-RotorQuant-MLX-8bit
23
 
24
  **8-bit MLX weight-quantized [Leanstral-2603](https://huggingface.co/mistralai/Leanstral-2603) with [RotorQuant](https://github.com/scrya-com/rotorquant) KV-cache quantization for Lean 4 formal proof generation on Apple Silicon.**
 
19
  pipeline_tag: text-generation
20
  ---
21
 
22
+ > [!TIP]
23
+ > **KV-cache quantization without any fork (recommended, 2026):** upstream
24
+ > llama.cpp/Ollama now cover this natively — use `-ctk q8_0 -ctv q8_0`
25
+ > (~half KV memory, negligible quality loss: perplexity +0.002–0.05) or
26
+ > `-ctk q4_0 -ctv q4_0` (~quarter memory, ≈7.6% perplexity increase). In
27
+ > Ollama: `OLLAMA_KV_CACHE_TYPE=q8_0` with `OLLAMA_FLASH_ATTENTION=1`. Keep
28
+ > K and V types symmetric to stay on the fast fused Flash-Attention path.
29
+ > Since April 2026, mainline llama.cpp also applies Hadamard rotation to
30
+ > KV activations ([PR #21038](https://github.com/ggml-org/llama.cpp/pull/21038)),
31
+ > which greatly improves low-bit KV quality (opt-out:
32
+ > `LLAMA_ATTN_ROT_DISABLE=1`).
33
+ >
34
+ > The RotorQuant/TurboQuant fork flow below is **experimental/legacy**: the
35
+ > TurboQuant llama.cpp PR was closed without merging (June 2026) and the fork
36
+ > is unmaintained relative to mainline. It is NOT required to use this model.
37
+ <!-- kv-upstream-note -->
38
+
39
  # Leanstral-RotorQuant-MLX-8bit
40
 
41
  **8-bit MLX weight-quantized [Leanstral-2603](https://huggingface.co/mistralai/Leanstral-2603) with [RotorQuant](https://github.com/scrya-com/rotorquant) KV-cache quantization for Lean 4 formal proof generation on Apple Silicon.**