vllm.model_executor.layers.fused_moe.experts.trtllm_bf16_moe
¶
Classes:
-
TrtLlmBf16ExpertsBase–BF16 unquantized TRTLLM-Gen MoE kernels. Shared base for modular and
-
TrtLlmBf16ExpertsModular–BF16 unquantized TRTLLM-Gen MoE kernels. Supports modular interface.
-
TrtLlmBf16ExpertsMonolithic–BF16 unquantized TRTLLM-Gen MoE kernels. Supports monolithic interface.
Functions:
-
view_as_block_major_k–View packed storage, including legacy 4D IPC cache entries.
TrtLlmBf16ExpertsBase
¶
BF16 unquantized TRTLLM-Gen MoE kernels. Shared base for modular and monolithic interfaces.
TrtLlmBf16ExpertsModular
¶
Bases: TrtLlmBf16ExpertsBase, FusedMoEExpertsModular
BF16 unquantized TRTLLM-Gen MoE kernels. Supports modular interface.
The TRTLLM-Gen kernel skips padding rows at tile granularity, so it can consume the padded contiguous layout produced by DeepEP v2.
Methods:
-
moe_problem_size–Override to handle 4D BlockMajorK weights (E, K/bk, Mn, bk).
moe_problem_size(a1, w1, w2, topk_ids)
¶
Override to handle 4D BlockMajorK weights (E, K/bk, Mn, bk).
TrtLlmBf16ExpertsMonolithic
¶
Bases: TrtLlmBf16ExpertsBase, FusedMoEExpertsMonolithic
BF16 unquantized TRTLLM-Gen MoE kernels. Supports monolithic interface.
_supports_parallel_config(moe_parallel_config)
staticmethod
¶
Monolithic kernel supports no-all2all and AG/RS paths.
view_as_block_major_k(weight)
¶
View packed storage, including legacy 4D IPC cache entries.