Views
No views yet
google/gemma-4-31B-it-assistant — the official Gemma 4
Multi-Token Prediction (MTP) drafter for
google/gemma-4-31B-it. Use it as a speculative-decoding
draft model alongside the matching Gemma 4 target to get a meaningful decoding
speedup at zero quality loss.[!IMPORTANT] These GGUFs use the customgemma4_assistantarchitecture and will not load in stockllama.cpp. They require theatomic-llama-cpp-turboquantfork, which adds:
- the
gemma4_assistantMTP drafter arch (incl. the centroid LM head for E2B/E4B),- TurboQuant KV-cache quantization (
-ctk turbo3 -ctv turbo3),- the
--mtp-head/--spec-type mtpruntime flags.Loading these files in upstreamggml-org/llama.cppwill fail with an unknown architecture error.
| File | Quant | Size | Notes |
|---|---|---|---|
gemma-4-31B-it-assistant.F16.gguf | F16 | 910.6 MB | reference (smallest quality loss vs source) |
gemma-4-31B-it-assistant.Q8_0.gguf | Q8_0 | 490.8 MB | near-lossless 8-bit |
gemma-4-31B-it-assistant.Q5_K_M.gguf | Q5_K_M | 359.1 MB | balanced k-quant |
gemma-4-31B-it-assistant.Q4_K_M.gguf | Q4_K_M | 337.1 MB | recommended default for speculative-decoding draft |
gemma-4-31B-it-assistant.Q4_K_S.gguf | Q4_K_S | 333.0 MB | smallest k-quant |
1git clone https://github.com/AtomicBot-ai/atomic-llama-cpp-turboquant
2cd atomic-llama-cpp-turboquant
3# Pick one of the platform-specific configurations:
4cmake -B build -DGGML_METAL=ON # Apple Silicon
5# cmake -B build -DGGML_CUDA=ON # NVIDIA
6# cmake -B build # CPU-only
7cmake --build build --target llama-server llama-cli llama-quantize -j1hf download AtomicChat/gemma-4-31B-it-assistant-GGUF \
2 --include "*Q4_K_M.gguf" --local-dir ./models
3# Any GGUF build of the matching target model works; e.g. unsloth's:
4hf download unsloth/gemma-4-31B-it-GGUF \
5 --include "*Q4_K_M*.gguf" --local-dir ./modelsllama-server with MTP speculative decoding + TurboQuant KV cache:1./build/bin/llama-server \
2 -m ./models/gemma-4-31B-it-Q4_K_M.gguf \
3 --mtp-head ./models/gemma-4-31B-it-assistant.Q4_K_M.gguf \
4 --spec-type mtp \
5 --draft-block-size 3 --draft-max 8 --draft-min 0 \
6 -ngl 99 -ngld 99 \
7 -ctk turbo3 -ctv turbo3 -ctkd turbo3 -ctvd turbo3 \
8 -fa on -c 16384 --host 127.0.0.1 --port 8080scripts/run-gemma4-31b-mtp-server.sh
in the fork (MTP_PRESET=throughput|lift|balanced|quality).atomic-llama-cpp-turboquant it
is loaded as a separate GGUF via --mtp-head and drives a custom speculative
decoder (block_size 3, draft_max 16 for quality preset). The verifier runs the target model in
parallel, guaranteeing the same output distribution as plain greedy/sampled
decoding.turbo3 is the KV-cache quantization scheme used in this fork; it significantly
reduces KV memory and bandwidth at long contexts with no measurable quality
regression on Gemma 4. Apply it to both target and drafter via
-ctk turbo3 -ctv turbo3 -ctkd turbo3 -ctvd turbo3.google/gemma-4-31B-it-assistantgoogle/gemma-4-31B-itggml-org/llama.cpp — upstream inference engine.