b70-optimization-lab

Long-Output Sustained Decode Benchmark

Date: 2026-06-23 Owner/agent: Codex GPU / port: GPU0 / 18260

Hypothesis

The default p512/o512 prompt lets Gemma stop naturally around 140-160 output tokens, which mixes decode speed with stop behavior and TTFT amortization. A short deterministic “continue until token limit” prompt should force full 512-token completions and give a cleaner sustained-decode measurement for the current best llama.cpp/SYCL runtime.

Run Identity

LABEL=gemma4-q8-gpu0-currentbest-longprompt-deep-20260623T0945 \
GPU_INDEX=0 PORT=18260 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 \
GGML_SYCL_DISABLE_OPT=0 CANARY_REPEATS=96 BENCH_REPEATS=8 \
BENCH_PROMPT_MODE=long \
EXTRA_LLAMA_ARGS='--parallel 1 --cache-ram 0' \
scripts/run-gemma4-26b-first-baseline.sh

Result

Decision

Win for sustained decode: this breaks the previous promoted 42.1539 tok/s single-B70 Q8 result when measuring after-TTFT decode on a fixed 512-token output. It is not a direct replacement for the natural-stop/default-prompt record because the prompt/output shape changed.

Queued for LocalMaxxing as a separate short-prompt sustained-decode record.

Artifacts

Follow-Up

The long mode is a short instruction prompt. For future 512-input / 512-output comparisons, use the new filled-long prompt mode added to scripts/bench-openai-single-decode.py, which also records prompt hash/preview and usage-derived prompt/completion token stats.