Expand description
2026-09-25: Host launch of the Kimi K3 packed LatentMoE experts on the MXFP4 E8M0 pointer-table GEMM, PTRTABLE_E8M0 in PTX module MODULE.
A failed kernel lookup or a missing expert projection is an error: packed experts have no host fallback.
Owner: model-arch, Kimi K3. Invariants:
- Every device buffer a launch allocates gets a
freecall before it returns, on success and on error; a failedfreeis ignored.
Structs§
Constants§
- E8M0_
ENTRY - MODULE
- 2026-09-25: The gb10 and b300 kimi-k3
KERNEL.tomlfiles build this module fromdeepseek-v4-flash/nvfp4/moe_w4a16_grouped_gemm.cu([sources] use, renamed by[modules]). - PTRTABLE_
E8M0
Functions§
- launch_
k3_ latent_ moe_ experts - 2026-09-25: Computes what
mix_routed_expertscomputes,sum_e mix_w[e] * w2(SiTU(w1 x, w3 x))overids, from the packed experts, with BF16 GEMM inputs and outputs. Emptyidsreturns zeros without a launch. - launch_
k3_ moe_ e8m0_ ptrtable - 2026-09-25: One grouped E8M0 GEMM,
C[M, N] = A[M, K] @ B_packed[N, K/2], with one pointer-table entry per expert inpacked. The launch covers one M tile per expert;gemm_rowsgives every expert exactly one row.