Views
No views yet
[!TIP] KV-cache quantization without any fork (recommended, 2026): upstream llama.cpp/Ollama now cover this natively — use-ctk q8_0 -ctv q8_0(~half KV memory, negligible quality loss: perplexity +0.002–0.05) or-ctk q4_0 -ctv q4_0(~quarter memory, ≈7.6% perplexity increase). In Ollama:OLLAMA_KV_CACHE_TYPE=q8_0withOLLAMA_FLASH_ATTENTION=1. Keep K and V types symmetric to stay on the fast fused Flash-Attention path. Since April 2026, mainline llama.cpp also applies Hadamard rotation to KV activations (PR #21038), which greatly improves low-bit KV quality (opt-out:LLAMA_ATTN_ROT_DISABLE=1).The RotorQuant/TurboQuant fork flow below is experimental/legacy: the TurboQuant llama.cpp PR was closed without merging (June 2026) and the fork is unmaintained relative to mainline. It is NOT required to use this model.
Important: RotorQuant KV cache types (planar3,iso3) are not available in upstream llama.cpp, standard Ollama, or LM Studio. They require a specific llama.cpp fork. The GGUF file itself is a standard GGUF and works with any llama.cpp-compatible runtime using normal KV cache types (f16, q8_0, q4_0, etc.).
| Device | VRAM / RAM | Recommendation |
|---|---|---|
| CPU host with ≥103 GB RAM | ~103 GB | works via llama.cpp; slower than GPU but no accelerator required |
| Apple Silicon (Metal) | ~112 GB | llama.cpp Metal backend; fast on M-series unified memory |
| NVIDIA GPU (partial offload) | split between GPU + RAM | offload as many layers as VRAM allows; rest on CPU |
| Technique | What it does | Requirement |
|---|---|---|
| GGUF Q6_K weight quantization | Reduces model size from ~240 GB (BF16) to ~93.6 GB | Any llama.cpp-compatible runtime |
RotorQuant KV cache compression — block-diagonal Clifford-algebra rotors for 3-bit KV cache (--cache-type-k iso3 --cache-type-v iso3) | Block-diagonal rotations / random rotation for compressed KV cache | llama-cpp-turboquant fork only |
1# Clone and build the fork
2git clone https://github.com/johndpope/llama-cpp-turboquant.git
3cd llama-cpp-turboquant && git checkout feature/planarquant-kv-cache
4
5# CUDA (Windows/Linux)
6cmake -B build -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
7
8# Metal (Apple Silicon)
9cmake -B build -DGGML_METAL=ON -DGGML_METAL_EMBED_LIBRARY=ON -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
10
11# Run with RotorQuant KV cache
12./build/bin/llama-cli -m Nemotron-3-Super-120B-A12B-RotorQuant-GGUF-Q6_K.gguf \
13 --cache-type-k iso3 --cache-type-v iso3 \
14 -ngl 99 -fa \
15 -p "Explain quantum computing"
16
17# Or run as a server
18./build/bin/llama-server -m Nemotron-3-Super-120B-A12B-RotorQuant-GGUF-Q6_K.gguf \
19 --cache-type-k iso3 --cache-type-v iso3 \
20 -ngl 99 -fa --jinja1llama-cli -m Nemotron-3-Super-120B-A12B-RotorQuant-GGUF-Q6_K.gguf \
2 --cache-type-k q8_0 --cache-type-v q8_0 \
3 -ngl 99 -fa \
4 -p "Explain quantum computing"q8_0 (or q4_0 for more aggressive VRAM savings).iso3 cache types. Track this feature request for updates.1# Standard Ollama does not support RotorQuant cache types.
2# Use with default or q8_0 KV cache via OLLAMA_KV_CACHE_TYPE=q8_0
3OLLAMA_KV_CACHE_TYPE=q8_0 OLLAMA_FLASH_ATTENTION=1 ollama run majentik/Nemotron-3-Super-120B-A12B-RotorQuant-GGUF-Q6_K| Property | Value |
|---|---|
| Base Model | nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16 |
| Architecture | Mamba-2 + Transformer hybrid Sparse MoE |
| Parameters | 120B total, 12B active per token |
| Context Length | 1M |
| Weight Quantization | GGUF Q6_K (very high quality, ~6 bpw) |
| Original Size (BF16) | ~240 GB |
| Quantized File Size | ~93.6 GB |
| KV Cache (RotorQuant) | 3-bit via --cache-type-k iso3 --cache-type-v iso3 (fork only) |
| KV Cache (standard) | q8_0, q4_0, f16, etc. (any llama.cpp runtime) |
| License | other |
| Modalities | Text only |
| Compatible Runtimes | llama.cpp, LM Studio, Ollama, koboldcpp |
-ctk/-ctv q8_0, OLLAMA_KV_CACHE_TYPE).| Runtime | RotorQuant Support | Standard KV Quant |
|---|---|---|
| llama.cpp (upstream) | ❌ Not merged | ✅ q8_0, q4_0, q4_1, iq4_nl, q5_0, q5_1 |
| llama-cpp-turboquant fork | ✅ planar3, iso3 | ✅ All standard types |
| LM Studio | ❌ Requested | ✅ Via advanced settings |
| Ollama | ❌ Not supported | ✅ Via OLLAMA_KV_CACHE_TYPE |
| koboldcpp | ❌ Not supported | ✅ Standard types |
| VRAM | Suggested Configuration |
|---|---|
| 24 GB (RTX 4090) | Q6_K + q8_0 KV cache + Flash Attention, 8K–16K context |
| 16 GB | Q6_K + q4_0 KV cache + Flash Attention, 4K–8K context |
| 48+ GB | Q6_K + f16 KV cache, full 32K+ context |