Skip to content

vllm.model_executor.layers.quantization.utils.b12x_moe

Weight preparation helpers for b12x MoE kernels.

Functions:

prepare_nvfp4_moe_layer_for_b12x(w13, w13_scale, w13_scale_2, a13_scale, w2, w2_scale, w2_scale_2, a2_scale, is_act_and_mul, reorder_w13=False)

Prepare b12x NVFP4 MoE weights and scales.