b70-optimization-lab

Gemma 4 26B A4B Q8 on 1x B70, 125 tok/s

This is the standalone promoted reproduction packet for the current Gemma 4 26B A4B Q8/INT8-quality short-decode record on one Intel Arc Pro B70.

Use the active script packet for day-to-day reruns:

Headline Result

Record metrics from the evidence JSON:

Metric Value
median tok/s, tokens 1-100 after TTFT 124.97714084813418
p10 tok/s, tokens 1-100 after TTFT 103.83610041293295
mean tok/s, tokens 1-100 after TTFT 122.4743547166875
median TTFT 178.6938319564797 ms
median full512 after-TTFT tok/s 114.87107033590775
median wall full512 tok/s 108.58112847853889

Same-family support rows include 123.67689864739785, 121.59076340768573, 121.41411987308553, 119.94842631460949, 119.26425148518223, and 113.63257982764395 tok/s. This lane has several percent run-to-run variance, so close comparisons require same-window controls.

Latest reproducibility check while creating this packet:

Runtime Identity

Important flags:

GGML_SYCL_ENABLE_VMM=1
FLASH_ATTN=on
CTX_SIZE=32768
UBATCH_SIZE=1024
LLAMA_SYCL_F16_P021_SMALL_NCOLS=1
LLAMA_SPEC_VERIFY_BULK_SAMPLED_IDS=1
LLAMA_MTP_DEFER_TARGET_H_NEXTN=1
LLAMA_MTP_DRAFT_FAST_ARGMAX=1
LLAMA_MTP_DRAFT_DIRECT_ARGMAX_IDS=1
LLAMA_MTP_DRAFT_DIRECT_ARGMAX_UNROLL=7
LLAMA_GEMMA4_MTP_QONLY_ATTN_INPUTS=1
LLAMA_GEMMA4_MTP_FUSED_OUTPUT_ARGMAX=1
LLAMA_GEMMA4_MOE_SELECTED_SOFTMAX=1
LLAMA_GEMMA4_MOE_SELECTED_SOFTMAX_FUSED=1
LLAMA_GEMMA4_MOE_WEIGHTED_SUM=1
LLAMA_GEMMA4_MOE_REUSE_ATTN_RMS=1
LLAMA_GEMMA4_MOE_FUSED_DOWN_WEIGHTED_SUM_REORDER_VDR2=1
LLAMA_GEMMA4_FUSED_FINAL_POST_NORM_RESIDUAL=1
LLAMA_SYCL_MUL_MAT_ID_ROUTE_CACHE=1

Reproduce

The wrapper below runs the strict final gate. Pick a free GPU/port pair.

cd /home/steve/llm-optimizations
GPU_INDEX=0 PORT=19350 \
  CTX_SIZE=32768 FLASH_ATTN=on GGML_SYCL_ENABLE_VMM=1 \
  CANARY_REPEATS=128 MAX_TOKENS=512 \
  REALISTIC_GATE=1 REALISTIC_METRIC_TOKENS=100 \
  LABEL=gemma4-q8-gpu0-125repro-$(date -u +%Y%m%dT%H%M%SZ) \
  bash repro/gemma4-26b-a4b-q8-b70/run-vdr2-selecteddown-record.sh

Equivalent local helper:

GPU_INDEX=0 PORT=19350 bash repro/gemma4-26b-a4b-q8-b70-125tps-20260701/run.sh

The run writes:

Only promote or submit results when realistic_final_gate.passed=true, fresh_response_validity.valid=true, and all cached_tokens values are zero.

What Worked

What Did Not Count As Headline Throughput

Variance And Fairness

The current reliability protocol measured same-GPU full512 repeats under temperature telemetry and found several-percent natural spread without thermal throttling. Active core stayed around 77-78 C, memory around 86-90 C, and frequency stayed near max. The no-spec calibration workflow measured a p90 same-identity pairwise spread around 4.4%; use the no-spec calibration workflow or a four-GPU same-window A/B when a candidate lands inside that range.

See:

Prompt Processing And 32K Context

The short record uses CTX_SIZE=32768, FLASH_ATTN=on, and VMM, but it is still a short-decode headline. The validated service/prompt-processing recipe is tracked separately:

That service recipe uses GGML_SYCL_FATTN_DV512_GQA_NCOLS2=8, SWA left-bound, KQ register/broadcast, phase prefill ubatch 2048, 32K context, FA on, and VMM. It passed exact long-context JSON validation with cached_tokens=0, but it is not a short-decode record replacement.