GraySoft
Projects Models Compare Cloud benchmarks FAQ Download guIDE →
Model Intelligence Sheet

majentik/gpt-oss-20b-RotorQuant-GGUF-Q8_0 overview

IMPORTANT Rebuilt 2026 07 07: the original upload was a broken container see discussion 1 on the Q3 K M repo and has been replaced with a rebuilt, parse verifi…

ggufrotorquantkv-cache-quantizationgpt-ossopenaimoellama-cppquantizedtext-generationarxiv:2504.19874base_model:openai/gpt-oss-20bbase_model:quantized:openai/gpt-oss-20blicense:apache-2.0endpoints_compatibleregion:usconversational

Runs locally from ~20.73 GB disk (24 GB VRAM class GPUs with llama.cpp / guIDE).

Downloads
283
Likes
0
Pipeline
text-generation
Author

Repository Files & Downloads

1 GGUF files detected
Direct downloads for local inference
FileTypeQuantizationSizeLink
gpt-oss-20b-RotorQuant-Q8_0.ggufGGUFQ8_020.73 GBDownload

Model Details

Model IDmajentik/gpt-oss-20b-RotorQuant-GGUF-Q8_0
Authormajentik
Pipelinetext-generation
Licenseapache-2.0
Base modelopenai/gpt-oss-20b
Last modified2026-07-20T16:29:17.000Z

Model README

---

license: apache-2.0

base_model: openai/gpt-oss-20b

tags:

- gguf

- rotorquant

- kv-cache-quantization

- gpt-oss

- openai

- moe

- llama-cpp

- quantized

library_name: gguf

pipeline_tag: text-generation

---

> [!IMPORTANT]

> Rebuilt 2026-07-07: the original upload was a broken container (see discussion #1 on the Q3_K_M repo) and has been replaced with a rebuilt, parse-verified GGUF. Actual file size: 22.26 GB. Note that openai/gpt-oss-20b ships MXFP4-native (~13.8 GB source), so requantized sizes differ substantially from typical BF16-ladder estimates — treat size figures elsewhere on this card as superseded.

<!-- rebuild-note -->

> [!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_0 with OLLAMA_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.

<!-- kv-upstream-note -->

gpt-oss-20b-RotorQuant-GGUF-Q8_0

GGUF Q8_0 weight-quantized variant of openai/gpt-oss-20b optimised for use with RotorQuant KV cache compression via a dedicated llama.cpp fork.

> 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.).

Hardware compatibility

| Device | VRAM / RAM | Recommendation |

| --- | --- | --- |

| CPU host with ≥22 GB RAM | ~22.0 GB | works via llama.cpp; slower than GPU but no accelerator required |

| Apple Silicon (Metal) | ~24.0 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 |

Overview

This model combines two independent compression techniques:

| Technique | What it does | Requirement |

|-----------|-------------|-------------|

| GGUF Q8_0 weight quantization | Reduces model size from ~40 GB (BF16) to ~20.0 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 |

Quickstart

Option A — RotorQuant KV cache (experimental fork — not required)

You must build from the RotorQuant-enabled llama.cpp fork:

# Clone and build the fork
git clone https://github.com/johndpope/llama-cpp-turboquant.git
cd llama-cpp-turboquant && git checkout feature/planarquant-kv-cache

# CUDA (Windows/Linux)
cmake -B build -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release && cmake --build build -j

# Metal (Apple Silicon)
cmake -B build -DGGML_METAL=ON -DGGML_METAL_EMBED_LIBRARY=ON -DCMAKE_BUILD_TYPE=Release && cmake --build build -j

# Run with RotorQuant KV cache
./build/bin/llama-cli -m gpt-oss-20b-RotorQuant-GGUF-Q8_0.gguf \
  --cache-type-k iso3 --cache-type-v iso3 \
  -ngl 99 -fa \
  -p "Explain quantum computing"

# Or run as a server
./build/bin/llama-server -m gpt-oss-20b-RotorQuant-GGUF-Q8_0.gguf \
  --cache-type-k iso3 --cache-type-v iso3 \
  -ngl 99 -fa --jinja

Option B — With standard llama.cpp / LM Studio / Ollama

The GGUF works as a normal quantised model. You won't get RotorQuant-specific KV cache benefits, but standard KV cache quantization (q8_0, q4_0) still reduces VRAM significantly.

llama.cpp (upstream)

llama-cli -m gpt-oss-20b-RotorQuant-GGUF-Q8_0.gguf \
  --cache-type-k q8_0 --cache-type-v q8_0 \
  -ngl 99 -fa \
  -p "Explain quantum computing"

LM Studio

  1. Download the GGUF file and load in LM Studio.
  2. Enable Developer Mode (Settings → Developer).
  3. In the model loader's advanced settings, set Flash Attention to ON.
  4. Set K Cache Quantization and V Cache Quantization to q8_0 (or q4_0 for more aggressive VRAM savings).
  5. Note: LM Studio does not currently support RotorQuant's iso3 cache types. Track this feature request for updates.

Ollama

# Standard Ollama does not support RotorQuant cache types.
# Use with default or q8_0 KV cache via OLLAMA_KV_CACHE_TYPE=q8_0
OLLAMA_KV_CACHE_TYPE=q8_0 OLLAMA_FLASH_ATTENTION=1 ollama run majentik/gpt-oss-20b-RotorQuant-GGUF-Q8_0

Specifications

| Property | Value |

|----------|-------|

| Base Model | openai/gpt-oss-20b |

| Architecture | Sparse MoE |

| Parameters | 20B total (MoE) |

| Context Length | 128K |

| Weight Quantization | GGUF Q8_0 (near-lossless 8-bit, reference quality) |

| Original Size (BF16) | ~40 GB |

| Quantized File Size | 22.26 GB (rebuilt 2026-07-07) |

| 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 | apache-2.0 |

| Modalities | Text only |

| Compatible Runtimes | llama.cpp, LM Studio, Ollama, koboldcpp |

About the RotorQuant / TurboQuant labels

RotorQuant and TurboQuant are this project's release labels, not distinct

quantization algorithms — for any given tier, both brand repos carry

byte-identical weights produced with the standard MLX / llama.cpp quantizers.

No brand-specific speedup is claimed or measured. The KV-cache fork these

labels originally referred to is legacy; for KV-cache memory savings use the

upstream options described above (-ctk/-ctv q8_0, OLLAMA_KV_CACHE_TYPE).

Current Status of RotorQuant in the Ecosystem

| 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 |

Recommended Settings

For VRAM-constrained setups, standard q8_0 KV cache quantization already halves KV cache memory with negligible quality impact. Flash Attention should always be enabled — it is required for V cache quantization and improves memory efficiency regardless.

| VRAM | Suggested Configuration |

|------|------------------------|

| 24 GB (RTX 4090) | Q8_0 + q8_0 KV cache + Flash Attention, 8K–16K context |

| 16 GB | Q8_0 + q4_0 KV cache + Flash Attention, 4K–8K context |

| 48+ GB | Q8_0 + f16 KV cache, full 32K+ context |

See Also

Quant trade-off (GGUF lane)

| Quant | Approx size | Use case | Recommendation |

|---|---|---|---|

| Q2_K | ~11 GB | Lossy, low-RAM CPU/edge | Resource-constrained inference |

| Q3_K_M | ~12 GB | Smaller-than-Q4, modest quality drop | Edge devices with ~16 GB RAM |

| IQ4_XS | ~10 GB | Importance-quant 4-bit, smaller than Q4_K_M | Best size/quality at 4-bit |

| Q4_K_M | ~15 GB | Balanced default | Recommended for most users |

| Q5_K_M | ~16 GB | Higher fidelity than Q4 | Quality-sensitive applications |

| Q6_K | ~18 GB | Approaching FP16 quality | High-fidelity CPU/edge |

| Q8_0 | ~20 GB | Near-lossless reference | Fidelity-critical work |

| MXFP4_MOE | ~11 GB | Microscaling FP4 (MoE-aware) | vLLM / transformers users |

(Current variant — Q8_0 — is bolded.)

Variants in this family

(Showing 14 sibling variants under majentik/gpt-oss-20b-*. The current variant — RotorQuant-GGUF-Q8_0 — is bolded.)

| Variant | Runtime | Approx size | Use case |

|---|---|---|---|

| RotorQuant-GGUF-IQ4_XS | llama.cpp | ~17 GB | Lossy 4-bit, low-RAM CPU/edge |

| RotorQuant-GGUF-Q2_K | llama.cpp | ~12 GB | Lossy, low-RAM CPU/edge |

| RotorQuant-GGUF-Q3_K_M | llama.cpp | ~16 GB | Smaller 3-bit, CPU-friendly |

| RotorQuant-GGUF-Q4_K_M | llama.cpp | ~22 GB | Balanced default |

| RotorQuant-GGUF-Q5_K_M | llama.cpp | ~26 GB | Higher fidelity, more RAM |

| RotorQuant-GGUF-Q8_0 | llama.cpp | ~42 GB | Near-lossless reference |

| RotorQuant-MLX-2bit | mlx-lm | ~6.4 GB | Apple Silicon, smallest |

| RotorQuant-MLX-4bit | mlx-lm | ~12 GB | Apple Silicon balanced |

| RotorQuant-MLX-8bit | mlx-lm | ~24 GB | Apple Silicon reference |

| TurboQuant-MLX-2bit | mlx-lm | ~6.4 GB | Apple Silicon, smallest |

| TurboQuant-MLX-4bit | mlx-lm | ~12 GB | Apple Silicon balanced |

| TurboQuant-MLX-8bit | mlx-lm | ~24 GB | Apple Silicon reference |

Run majentik/gpt-oss-20b-RotorQuant-GGUF-Q8_0 with guIDE

Download guIDE — the AI-native code editor with local LLM inference and 69 built-in tools.

Download guIDE → · Browse 524k+ models · Compare models

Source: Hugging Face · Compare models