Files
vetta-infer/crates/vetta-infer-ld/src
adm 00a6993c50 [LD] NVFP4 expert packer (amax/denominator scaling) verified on real Inkling weights
- ld::packer: ExpertMatrix + load_expert_matrix(layer, e, "w13"|"w2") loads a
  real NVFP4 expert from safetensors with ZERO requantization — packed E2M1
  [N,K/2] + E4M3 group scales [N,K/16] to device as-is, outer_scale =
  amax[e] / denominator (denominator tensor read, default 2688 = 448*6 when
  absent — exact strata ink_safetensors_loader semantics).
- Real-weight parity test: layer-0 expert-0 w13 [2304,2304] loaded from the
  real archive, nvfp4_gemv on GPU vs a CPU dequant oracle over the real
  packed bytes + scales + outer_scale. max_rel_err 2.8e-4 (f32 accumulation
  order over K=2304; math identical). Confirms the expert scaling + layout
  against real Inkling data — the key brick for the layered MoE forward.

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