flashinfer.fused_moe.CudnnGroupedGemmMxfp8Runner¶
- class flashinfer.fused_moe.CudnnGroupedGemmMxfp8Runner(config: MoEConfig, device: device)¶
MXFP8 MoE over
grouped_mm_mxfp8.E4M3 rows with UE8M0
uint8 [M, H // 32]token-major scales; E4M3 weights with UE8M0 block scales per expert. Extra packed inputs:[fc1_weight_scale, fc2_weight_scale, hidden_states_scale].Methods
__init__(config, device)accepts(act, weights)Select candidates with prepared weights and supported input geometry.
build()check_support()forward(inputs[, tactic, do_preparation])Forward pass for tunable runners.
get_cache_key_extras(inputs)Return extra values to include in the autotune cache key.
get_valid_tactics(inputs, _profile)Rank each GEMM's plans on its own (the other GEMM at -1), then pair the top
_num_top_tactics_per_stageof each and add the all-heuristic fallback.launch_kwargs_for(inputs)Return only the launch kwargs required by this packed call.
launch_state_for(inputs)Return immutable per-call launch metadata paired with
inputs.pack_inputs(act, weights)precompile_tactics(inputs, tactics, profile, ...)Optionally perform compile-only work for all tactics before profiling.
supports_quant(quant)Return whether this runner can execute
quant's three format axes.tuning_config_for(inputs)Return the tuning config paired with
inputswhen one is present.Attributes
backend_keysupported_activation_classessupported_activation_classes_by_quantsupported_output_formatssupported_quant_variantssupported_routing_modessupports_expert_parallelismsupports_fused_shared_expertssupports_nvfp4_4over6supports_per_token_scaleweight_view_aliasesconfig