flashinfer.fused_moe.CakeWarpDecodeRunner¶
- class flashinfer.fused_moe.CakeWarpDecodeRunner(config: MoEConfig, device: device)¶
Exact-SM103 Cake runner for two calibrated NVFP4 decode geometries.
The runner consumes the physical tensor view produced by
TrtllmFp4Config: packed E2M1 weights and activations, E4M3 block scales, and per-expert FP32 epilogue scales. The generated kernel fixes SwiGLUalpha=1andbeta=0; the compatiblegemm1_alphafield in the TRTLLM view is therefore not a launch argument.- __init__(config: MoEConfig, device: device)¶
Methods
__init__(config, device)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)One tactic corresponding to one cuda kernel normally, but how to interpret the meaning of tactic is pure internal details of the runner.
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)Validate and flatten the exact warp-decode TVM-FFI input ABI.
tuning_config_for(inputs)Return the tuning config paired with
inputswhen one is present.Attributes
backend_keysupported_activation_classessupported_activation_classes_by_quantsupported_quant_variantssupported_routing_modessupports_expert_parallelismsupports_fused_shared_expertsconfig