Module mxfp4

Module mxfp4 

Source
Expand description

K3 official MXFP4 names → DeepSeek-V4 E8M0 unpack.

DSV4 native MXFP4: {prefix}.weight (E2M1 packed) + {prefix}.scale (E8M0). K3 official TSV: {prefix}.weight_packed + {prefix}.weight_scale. Math is crate::mxfp4_e8m0; this module only remaps names.

Constants§

PACKED_CLASSES
Official TSV classes that are packed routed-expert MXFP4.

Functions§

allow_mxfp4
Opt-in for CPU from_pretrained packed ingest. Default is refuse.
is_expert_packed
is_expert_scale
scale_name
unpack_expert
Unpack a K3 expert pair through the DSV4 host function.
unpack_expert_bf16
Same unpack as DSV4 GPU-upload host path (BF16 bits).
unpacked_name