A chunked run's error is the relative L1 of the sums over its chunks (the worst
7-row chunk said more about one token than about the kernel); the forcing copy
waits for its DMA (the prompt stream is non-blocking); a router rank swap is
allowed only where the oracle's own softmax puts the two experts within 2e-3
(the prompt path's router multiplies BF16-rounded activations: every swap seen
is a near tie of 2e-5 to 1.3e-3); the post-attention norm's gate is the
mixer's error passing through (2e-3); the Q8 oracle's numbers are reported
beside the F32 oracle's. The fixture's router runs at half the toy's gain so
the renormalisation rival is visible (5.7 %, was 1.3 %). The attention
branch's kernels are in the tree, so the pending-attention skip is gone.
4090: gdn3 and full4 pass, one chunk of 40 and chunks of 7.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
The attention layer of a model without an indexer takes the cherry-picked
kernels as the attention branch defines them: the shapes zero the three indexer
widths (qsa_dense), the capacity is qsa_selection_cap (every cell), no ids are
carved or passed (a null is the identity), the group G comes from the geometry
and any other ratio is refused by name before a launch. The own dense_ids
kernel goes (qsa_identity_ids is the explicit form). A model with no attention
layer at all (the harness's gdn3 fixture) has no primary attention state: the
reads of it are guarded. STRATA_PREFILL_ALLOC_TRACE=1 names the allocation
that did not fit.
tests/python/qwen36_prefill_fixture.py writes the synthetic model at the real
per-layer widths (gdn3: three DeltaNet layers; full4: plus the attention layer;
Q8_0 projections and experts, BF16-exact routers) and the oracle's dumps for 40
tokens, faithful, --act-quant q8, and the rival readings.
tests/cuda/prefill_qwen36_test.cpp runs the prompt path on them as one chunk
and in chunks of 7 with every layer's input teacher-forced to the oracle's
l_out, holds each seam to the dumps, checks the router's top-k, the negative
controls and the geometry refusals; CTest: prefill_qwen36_fixtures,
prefill_qwen36_test, prefill_qwen36_attn_test.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr