GdnGeom::gate is kernels::GdnGate (the GDN branch's enum, cherry-picked with
its geometry accessor); Geom::of reads g.gdn_gate(), so the prompt path and
the decode path pick the gate from the same place. 4090: gdn_rec_parity,
gdn_parity and both harness cases pass.
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
The file-wide constants N, HC, D, LR, K, NE, C, ZV, HV become a Geom built from
the ModelGeometry (Geom::of), used by every buffer count and launch; init
accepts Flash-Next's geometry as before and qwen35moe at hc 1 with the GDN
geometries the kernels are built for, and refuses top-k beyond n_expert. At
hc 1 the layer loop is x = rms_norm(R, attn_norm) -> mixer -> R += out;
x = rms_norm(R, post_attention_norm) -> MoE -> R += out, with none of the
hyper-connection buffers carved. The attention layer of a model without an
indexer skips the indexer and writes the dense selection (cap = max_cells,
behind a TODO for the attention branch's bounded scratch); the G = 12 kernels
refuse 16 heads, so that layer returns an error until the G = 8 kernels land.
The MTP draft_kv pass stays Flash-Next's (step 4). on_seam: a test's view of
the layer loop by llama.cpp's seam names, and its teacher-forcing seam (l_in).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
GU_ROWS_K 2560 / D_ROWS_K 640 and the 1280 / 2560 weight-row counts become the
geometry's n_embd / n_ff (2048 / 512 for Qwen3.6), loop bounds rather than
constants; a width that does not tile the work item is refused by name.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
The GDN kernels (gates, conv, l2, the three recurrences, the output norm) become
templates on <HV, HK, C> with the output gate (sigmoid for Flash-Next, SiLU for
Qwen3.6) a bool parameter, dispatched from a GdnGeom through gdn_dispatch at the
two geometries 48/16/10240 and 32/16/8192 (any other stops the process, and
gdn_geometry_supported lets Prefill::init refuse it first). route() takes k,
moe_combine the width and k, the SwiGLU kernels n_ff, split_q and gate_attn
n_head. New: rms_norm_images and residual_add (the plain block at hc = 1),
dense_ids (every cell up to the query's own, for the dense model).
Study section 3.6 and 6 (step 3, the prefill bullet).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017tPVMg2wGSNR1KANEiUtwr
Source: https://github.com/Niko1221/Strata, commit 6f32ec070f23ced9f50e704d854d775da52591ab
(engine 0.1.39, MIT). Every file is as upstream published it; later commits
show exactly what this fork changes.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>