Files
vetta-infer/crates/vetta-infer-ld
adm a5ee804641 [LD] REAL MoE block end-to-end on Inkling weights — verified kernels compose
- real_moe_block_end_to_end test: the MoE half of a real Inkling layer runs
  end-to-end on real layer-0 weights, composing the verified kernels:
  mlp_norm (rms_norm) -> cast f32->bf16 -> router GEMM (gate.weight [128,2304]
  BF16) -> sigmoid top-8 router (gate.bias, route_scale=8) -> 8 real NVFP4
  experts (w13 GEMV -> SiTU beta4/lb25 -> w2 GEMV, outer=amax/denominator) ->
  weighted reduce.
- Parity vs a FULL CPU oracle (rms_norm + bf16-truncate cast + BF16 router GEMM
  + sigmoid top-8 + per-expert NVFP4 dequant GEMV + SiTU + reduce): router ids
  match exactly ([31,124,0,7,69,121,14,2]), output max_rel_err 5.6e-4.
- This is the integration milestone: the individually-verified kernels compose
  into a correct real MoE block on real data, with the bf16 cast boundary
  handled explicitly (the dtype-mismatch bug class). The MoE half of a real
  Inkling layer now runs correctly; the attention half is next.

Verified: RUSTFLAGS="-D warnings" cargo test --workspace = 97/97 PASS;
lean proofs (4 files, 42 theorems) green; real MoE block PASS
(--features hip, --ignored).
2026-12-01 14:33:27 +01:00
..