Repository navigation
[VR] Add NVFP4 token staging for MegaMoE - #132
andrewbriand wants to merge 1 commit into
Conversation
Pipeline NVFP4 activation pulls through shared-memory stages for native and TRT-LLM weight layouts, retaining the baseline fallback for unsupported pull shapes. Extend the existing SGL MoE benchmark and NVFP4 regression tests for staging, localization, and post-expert normalization.
|
Thanks for the PR. We compared the staged TMA pull against the existing SIMT dispatch pull (#126), which today is gated to FP8 x FP4, by relaxing that gate for FP4 activations on top of this PR's head. On VR, at this PR's benchmark shape (EP4, hidden/intermediate 4096, 256 experts, top-8, max 8192 tokens/rank), the SIMT pull was equal to or faster than staging in every cell we reran: NVFP4 (TRT-LLM layout, x-scales, post-expert norm) and MXFP4 at 256 / 512 / 2048 tokens per rank, 6 runs per arm, two separate launches. Against the baseline TMA pull, SIMT was 4-27% faster for NVFP4 at 1024+ tokens per rank, where staging was 10-23% faster. Staging reproduced your numbers in our runs. Two more points:
#135 enables the SIMT pull for NVFP4/MXFP4 (default on CC 10.7, opt-in elsewhere) with a bitwise SIMT-vs-TMA test. Did you compare against the SIMT pull before adding staging? If there is a regime where staging wins that we did not cover (localization, other shapes), we'd like to know. Two correctness notes if this lands anyway:
|
Pipeline NVFP4 activation pulls through shared-memory stages to improve performance at higher token counts on VR.
Extend the existing SGL MoE benchmark and NVFP4 regression tests for staging, localization, and post-expert normalization.
Benchmark
Vera Rubin @ EP4
Unlocalized
Localized
Test