[LD] full-attention layer forward (3-query mix, dyn ShortConv, tau, global attn)
- ld::layer: FullLayerWeights + load_full_layer + layer_forward_full +
load_sconv_transposed (the full-attn k/v_sconv.static_w tensor is [4,C],
transposed to the kernel's [C,4] layout). The full-attn layer step:
mx3 = attn_res_mix(blocks, cur, attn_queries[ip-1] (3 queries)) -> split
in0/in1/in2 = rms_norm(mx3[j], q/k/v_input_norm.weight) (separate norms)
q/r/gate/sink from in0; k from in1; v from in2 (distinct inputs)
k_dyn/v_dyn = in1/in2 @ k/v_sconv.weight_proj; dyn ShortConv4 K/V (1/3)
Q/R L2-clip with tau (full-attn), K clip without; relpos bias; KV store
global flash attention (window=0); O-proj + attn ShortConv; block cadence
MoE sublayer identical to SWA.
- full_attn_layer_end_to_end test: layer 5 on real weights, seeded with one
depth block; finite residual + correct cadence (ip=5 %6!=0 -> no snapshot).
Smoke-verified composition (all constituent kernels are individually
parity-verified); a full CPU-oracle parity of the full-attn wiring is a
follow-up refinement.
Verified: RUSTFLAGS="-D warnings" cargo test --workspace = 97/97 PASS;
lean proofs (5 files) green; full-attn layer end-to-end PASS
(--features hip, --ignored).