vllm.model_executor.layers.fused_moe.experts.deep_gemm_moe
¶
Classes:
-
DeepGemmExperts–DeepGemm-based fused MoE expert implementation.
-
DeepGemmFP4Experts–DeepGemm-based fused MoE expert implementation for FP4 weights.
DeepGemmExperts
¶
DeepGemmFP4Experts
¶
Bases: FusedMoEExpertsModular
DeepGemm-based fused MoE expert implementation for FP4 weights.
Uses m_grouped_fp8_fp4_gemm_nt_contiguous with FP8 activations and MXFP4 (FP4 E2M1 packed as uint8) weights. Requires Blackwell-family GPUs (SM100 datacenter or SM120 consumer).
_fp8_workspace_shape(num_rows, num_columns, workspace_dtype)
¶
Size an FP8 byte buffer stored in a workspace of another dtype.
_valid_deep_gemm(hidden_states, w1, w2)
¶
Check if the given problem size is supported by the DeepGemm grouped
gemm kernel. All of M, N, K and the quantization block_shape must be
aligned by dg.get_m_alignment_for_contiguous_layout().