b70-optimization-lab

Gemma 4 Q8 Draft-MTP Smoke And Deep Run

Date: 2026-06-23 Owner/agent: Codex GPU / port: four-way smoke on GPUs 0-3, promotion run on GPU 1 / port 18261

Hypothesis

The no-spec sustained-decode best is memory-bandwidth limited at about 42.72 tok/s after TTFT. Gemma 4 ships a small MTP drafter GGUF; llama.cpp can verify drafted tokens with the main Q8 model, so quality should remain equivalent to plain greedy decode when canaries pass. The goal is to raise single-session decode without lowering weight precision below Q8.

Run Identity

Four-Way Smoke

All four smoke runs used CANARY_REPEATS=16 (64/64 chat canary rows) and BENCH_REPEATS=3 with BENCH_PROMPT_MODE=long (actual 75 prompt tokens and 512 output tokens).

Label GPU Draft n-max Canary Tok/s after TTFT Wall tok/s MTP acceptance Decision
gemma4-q8-gpu0-mtp-n2-long-smoke-20260623T1125 0 2 64/64 45.4235 43.8310 len 2.45; rates (0.792, 0.654) win over no-spec, close to n=4
gemma4-q8-gpu1-mtp-n4-long-smoke-20260623T1125 1 4 64/64 45.5175 43.9124 len 3.41; rates (0.812, 0.641, 0.549, 0.413) best smoke, promote
gemma4-q8-gpu2-mtp-n6-long-smoke-20260623T1125 2 6 64/64 38.4094 37.2702 len 3.60; rates (0.776, 0.578, 0.468, 0.331, 0.240, 0.204) loss; draft overhead dominates
gemma4-q8-gpu3-mtp-n8-long-smoke-20260623T1125 3 8 64/64 24.0879 23.6332 len 3.91; rates (0.779, 0.573, 0.479, 0.315, 0.236, 0.212, 0.174, 0.138) loss; too much speculation

The previous queue note that “MTP smokes were slower” is superseded. That was true for an earlier speculative setup, but with the current draft-mtp flags and draft GGUF, n=2 and n=4 beat the no-spec sustained-decode record.

Promotion Run

Command:

cd /home/steve/qwen36-results-main
LLAMA_SERVER=/home/steve/src/llama.cpp/build-sycl-b70/bin/llama-server \
GPU_INDEX=1 PORT=18261 LABEL=gemma4-q8-gpu1-mtp-n4-long-deep-20260623T1140 \
CTX_SIZE=8192 BATCH_SIZE=512 UBATCH_SIZE=64 THREADS=16 \
CACHE_TYPE_K=f16 CACHE_TYPE_V=f16 POLL=50 FLASH_ATTN=off REASONING=off \
EXTRA_LLAMA_ARGS='--parallel 1 --cache-ram 0 --spec-type draft-mtp --spec-draft-model /mnt/fast-ai/llm-models/gemma4-26b-a4b-it-q8-gguf/mtp-gemma-4-26B-A4B-it.gguf --spec-draft-n-max 4 --spec-draft-device SYCL0 --spec-draft-ngl all --spec-draft-type-k f16 --spec-draft-type-v f16' \
GGML_SYCL_DISABLE_OPT=0 CANARY_REPEATS=96 BENCH_PROMPT_MODE=long \
PROMPT_TOKENS=512 MAX_TOKENS=512 BENCH_REPEATS=8 READINESS_TIMEOUT_S=1200 \
scripts/run-gemma4-26b-first-baseline.sh

Result:

Decision: valid new sustained-decode best for the Q8 single-B70 lane. It beats the previous approved sustained-decode record (42.716267799445156 tok/s) by about 4.18%, while keeping Q8 weights, f16 KV, chat mode, and the same promotion-depth canary. Submitted to LocalMaxxing and approved as cmqqblfw30132qo01jbi1svnu.

Artifacts

Follow-Up

Next four-way search should stay near the n=4 optimum instead of pushing much higher. Candidate axes:

External references checked during this lane: