Skip to content

vllm.model_executor.layers.fused_moe.experts.trtllm_bf16_moe

Classes:

Functions:

TrtLlmBf16ExpertsBase

BF16 unquantized TRTLLM-Gen MoE kernels. Shared base for modular and monolithic interfaces.

_supports_current_device() staticmethod

Supports only Blackwell-family GPUs.

_supports_no_act_and_mul() staticmethod

BF16 kernels support non-gated MoE via RELU2_NO_MUL.

_supports_quant_scheme(weight_key, activation_key) staticmethod

Supports only unquantized inputs.

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.