Views
No views yet
google/gemma-4-E2B-it-assistant MTP (Multi-Token Prediction) drafter, for use with llama.cpp speculative decoding.gemma4_assistant (underscore) instead of upstream llama.cpp's gemma4-assistant (hyphen) — which makes them fail to load on any modern llama.cpp build. Byte-patching the arch string only surfaces the next problem: metadata keys are all namespaced under the wrong architecture prefix.convert_hf_to_gguf.py (b10215 / commit eb41d503b), so every metadata key is correctly namespaced and it loads cleanly on upstream llama.cpp.gemma4-assistant architecture was already merged upstream by that build1llama-server \
2 -m gemma-4-E2B_q4_0-it.gguf \
3 --model-draft gemma-4-E2B-it-assistant-official.bf16.gguf \
4 --spec-type draft-mtp \
5 --spec-draft-n-max 3 \
6 -ngl 99 -c 8192 -fa on -ub 2048 -b 2048 \
7 --jinja --reasoning off \
8 --host 0.0.0.0 --port 8000--spec-type draft-mtp — use the MTP-native speculative decode path (not the classic n-gram draft)--spec-draft-n-max 3 — Google's recommended draft length for Gemma 4 assistants--reasoning off — required for structured-JSON workflows on Gemma 4 (otherwise output routes to reasoning_content)| Metric | Value |
|---|---|
| Decode | 138.8 tok/s |
| MTP acceptance rate | 67.8% |
| Prefill @ 2K tokens | 3,681 tok/s |
| VRAM (target + drafter, Q4_0 target + BF16 drafter) | 4.5 GiB |
1# Prerequisites: llama.cpp b10215 or newer, torch installed
2git clone https://github.com/ggml-org/llama.cpp
3cd llama.cpp && git checkout b10215
4pip install --index-url https://download.pytorch.org/whl/cpu torch
5
6hf download google/gemma-4-E2B-it-assistant --local-dir gemma-4-E2B-it-assistant-hf
7python convert_hf_to_gguf.py gemma-4-E2B-it-assistant-hf/ \
8 --outfile gemma-4-E2B-it-assistant-official.bf16.gguf \
9 --outtype bf16gemma-4-E2B-it-assistant-official.bf16.gguf — 170 MB, BF16google/gemma-4-E2B-it-assistantconvert_hf_to_gguf.py at commit eb41d503b (b10215)