<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2026-10-15

Reasoning: low

# Valid channels: analysis, commentary, final. Channel must be included for every message.<|end|><|start|>developer<|message|># Instructions

Answer concisely.<|end|><|start|>user<|message|>Summarize the results in these notes.

# Integrated-GPU prefill (STRA-219) — experimental

Status: **experimental, off by default, not wired into the worker yet.** Crates: `leleka-igpu` (WGSL kernels on
`wgpu`, Vulkan or DX12), `leleka-gptoss-igpu` (the layer driver, implements `leleka_gptoss::PrefillAccelerator`).
Production serving stays Python-free and works without a GPU; the GPU path is an optional accelerator for the
prompt-processing phase only.

## What runs where

* Prefill of a long prompt: all layers on the GPU, layer after layer. One layer's weights are repacked
  (threaded) and uploaded, every batch of up to 512 tokens runs through it, and the layer's keys and values are
  read back as half-precision rows into the CPU decoder's cache (`State::store_kv`). Only one layer of weights is
  on the GPU at a time; the hidden states of the prompt stay there between layers.
* The output projection of the last token and all decoding stay on the CPU (decode is memory-bandwidth bound and
  the iGPU shares that bandwidth: ~40 GB/s measured on both sides, see `experiments/igpu-spike`).
* Prompts shorter than the threshold passed to `Model::prefill_reuse_accelerated` and prefix-cache hits take the
  CPU path (the cached prefix is uploaded to the GPU per layer when the GPU continues a prompt).

## Kernels (all tested against the CPU decoder's own functions, `crates/igpu/tests`)

int8 `dot4I8Packed` GEMM over Q8_0 and MXFP4 weights with bias and residual-accumulate epilogues, grouped MoE
GEMM with a tile table and row gather, RMSNorm+Q8_0 quantize, Q8_0 quantize, SwiGLU-OAI+quantize, RoPE (the
decoder's own rotation table), half-precision KV store, grouped-query attention with sinks (full and sliding),
router logits + top-4 + softmax, slot-ordered expert combine.

Two findings worth keeping: the compiler folds `unpack2x16float(pack2x16float(x))` to `x`, so Q8_0 block scales
are rounded to half with an explicit bit-level round-to-nearest-even (`f16_round`); and dynamically indexed
private arrays spill, so the generated GEMM code uses named scalars.

## Numerics and quality gate

Not bit-identical to the CPU path: activations are quantized to int8 with the same rule (scales rounded to half
exactly like ggml), but the GPU sums in other orders and its division/inverse square root are not exactly
rounded, so about 0.04% of quantized values land one step away. Teacher-forced comparison on the 383-token gate
text (`benchmarks/quality/gpt-oss-20b-teacher-forced`, 2026-10-15, Core Ultra 7 265U, Intel iGPU via Vulkan,
batch 512). Two GPU runs are shown because they differ only by the attention kernel (a rew<|end|><|start|>assistant<|channel|>final<|message|>