adm
08514e81b1
[HIP] SiTU interleaved gate/up + F32 router: generation matches reference
Root-cause fixes that make Inkling-2-Mini generation match strata-inkling:
- k_situ: w13 rows are INTERLEAVED gate/up (row 2j=gate[j], 2j+1=up[j]), exact strata k_moe_direct_w13_situ. Was reading block layout gu[j]/gu[inter+j] -> sign-flipped y_part. Now gu[2j]/gu[2j+1].
- k_router_gemv (new): B=1 router reads F32 mlpin @ bf16 gate promoted to f32 (strata launch_f32_linear). bf16-rounding the router input flipped top-k expert selection. Used in both layer_forward_swa/full.
- situ_cpu oracle + situ_parity_vs_cpu updated to interleaved.
- real_full_layer/full_attn CPU oracle: router reads F32 mlpin (was bf16) -> experts now match GPU exactly.
- real_attention_block parity: allclose (atol 2e-3 + rtol 3e-3). Stage bisection proved aout matches CPU to <1e-6 abs; pure-relative metric exploded only at near-cancellation O-proj elements after bf16 cast (benign accumulation artifact).
- gated VETTA_DBG_NORM per-visit norm dumps for future bisection.
Verified: 'The capital of France is' -> ' Paris.' (152717, exact ref). cargo test --workspace green (-D warnings), 17 ld GPU + 17 hip GPU green, 5 Lean files 0 sorryAx.
2026-12-01 16:31:18 +01:00
..
2026-12-01 14:16:04 +01:00
2026-11-30 00:54:00 +01:00
2026-12-01 04:17:12 +01:00
2026-12-01 16:31:18 +01:00
2026-11-30 00:54:00 +01:00
2026-11-30 00:54:00 +01:00
2026-12-01 16:31:18 +01:00
2026-11-30 00:54:00 +01:00
2026-12-01 14:16:04 +01:00
2026-11-30 00:54:00 +01:00
2026-11-30 00:54:00 +01:00