Overview of NvFP4MoEPluginGeforce
mainThe NvFP4MoEPluginGeforce is a TensorRT plugin designed for SM12x (consumer Blackwell) architectures. It wraps the fused NVFP4 MoE kernel from the CuTeDSL library.
It is the counterpart to Nvfp4MoePlugin (which targets SM110/Thor). While they share the same ONNX input/output surface, they require different weight layouts:
NvFP4MoEPluginGeforce(SM12x): Expects FC1 packed as a plain[up_all, gate_all]concatenation along the M axis.Nvfp4MoePlugin(SM110): Expects FC1 packed with a 64-row up/gate interleave[up_chunk(64), gate_chunk(64), ...].
Python export logic automatically selects the correct plugin and weight repack based on the target architecture.