Repository navigation
fix(vllm): support misaligned MXFP8 MoE dimensions - #3630
Conversation
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
de9ab1f to
d2f5f6b
Compare
Signed-off-by: seonjinn <[email protected]>
d2f5f6b to
aabb197
Compare
/review-pr-team self-reviewReviewed tensor/layout correctness, vLLM worker lifecycle, refit behavior, error boundaries, tests, and CI compatibility. Resolved findings:
Validation at
No unresolved high-confidence findings remain from the self-review. |
|
/ok to test aabb197 |
Signed-off-by: seonjinn <[email protected]> # Conflicts: # nemo_rl/models/generation/vllm/vllm_backend.py
|
Contributor self-review refresh for The logical-shape preservation, aligned fast path, misaligned MoE padding, checkpoint-engine behavior, and NCCL lifecycle were rechecked. No new source-level findings were identified. Ruff/format/config checks pass locally; Linux vLLM coverage remains delegated to CI. |
Signed-off-by: Guyue Huang <[email protected]>
|
/ok to test d0ae775 |
|
/ok to test 6ecfdf7 |
|
/ok to test dc01362 |
|
/ok to test cc5b80d |
|
/ok to test 1314083 |
|
@terrykong Could you review this PR ? |
|
/ok to test f3abda6 |
|
/ok to test 0bd1dc8 |
0bd1dc8 to
3240185
Compare
|
/ok to test 3240185 |
|
/ok to test 7f1e1de |
Summary
Enable FlashInfer TRTLLM MXFP8 MoE for models whose dimensions are valid for MXFP8 but do not meet the kernel's stricter alignment requirements.
The key idea is simple: keep checkpoint/refit weights unchanged, and pad only the tensors used by the MoE kernel.
Why this is needed
FlashInfer TRTLLM requires:
Nemotron Nano 3 does not meet either requirement:
Without padding, MXFP8 rollout fails while initializing the MoE kernel.
How it works
For a TP1 Nano expert:
The forward path follows the same rule:
Checkpoint loading and repeated refits still read and write the original 2688/1856 tensors. The padded regions contain zero-valued weights with neutral E8M0 scales, so they do not change the original output.
Implementation
Validation
Scope
This PR only adds FlashInfer TRTLLM MXFP8 MoE dimension padding. Adaptive 8x4/128x4 scale-layout selection, QKVO quantization, and mixed BF16/MXFP8 layerwise reload are outside this PR.