Skip to content

vllm.model_executor.layers.fused_moe.experts.int4_emulation_moe

Int4 weight-only quantization emulation for MoE.

Weights are dequantized from packed int4 to BF16 once at load time; the forward pass then runs plain TritonExperts in BF16.

Classes:

Int4EmulationTritonExperts

Bases: TritonExperts

Int4 W-only MoE that dequantizes weights to BF16 at load time.

Weights arrive already dequantized (convert_to_wna16_moe_kernel_format does the unpacking); apply() simply forwards to TritonExperts.