Repository navigation
[None][fix] Gate MoE BF16 to FP8 conversion on compiler support - #15934
Open
waynehacking8 wants to merge 1 commit into
Open
waynehacking8 wants to merge 1 commit into
waynehacking8 wants to merge 1 commit into
Conversation
Contributor
waynehacking8
force-pushed
the
wayne/fix-sm120-moe-a2a-cvt-build
branch
from
August 25, 2026 01:57
113a838 to
eab3a90
Compare
Contributor
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
Use the existing float conversion before CUDA 13.1 and for targets without architecture or family features. Keep the packed conversion on supported Blackwell targets. Signed-off-by: WEI CHENG CHIU <[email protected]>
Author
|
Rebuilt this on current main in 337e9dd. CUDA 13.0 also rejects this instruction on SM100f, so the guard now checks CUDA 13.1 and target features instead of permanently excluding SM12x. The current translation unit builds for SM100f and SM120f with CUDA 13.0, while SM120f with CUDA 13.1 retains the packed conversion. |
waynehacking8
force-pushed
the
wayne/fix-sm120-moe-a2a-cvt-build
branch
from
September 20, 2026 11:19
eab3a90 to
337e9dd
Compare
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
CUDA 13.0 rejects the packed BF16 to FP8 conversion in
moeAlltoAllKernels.cuwithUnexpected instruction types specified for cvt. The instruction was introduced in PTX 9.1, so an architecture check alone is insufficient.Require CUDA 13.1 and an architecture or family specific Blackwell target for this specialization. Other builds use the existing conversion through float. This also preserves the packed conversion on SM120f with CUDA 13.1.
Test Coverage
Compiled the current translation unit with its current headers and explicit family code generation flags:
The patched translation unit also compiles for SM100f with CUDA 13.0.88. The CUDA 13.1 SM120f PTX retains the packed BF16 conversion.
These checks cover compilation and specialization selection. Full library linking and distributed inference were not rerun.
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
If PR introduces API changes, an appropriate PR label is added - either
api-compatibleorapi-breaking. Forapi-breaking, includeBREAKINGin the PR title.Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.Dev Engineer Review
The packed BF16-to-FP8 conversion now requires CUDA 13.1 and the required Blackwell target features. CUDA 13.0 builds use the existing float-path conversion, preventing
ptxasfailures on SM100f and SM120f. No API changes were made.QA Engineer Review
No test changes.
Per-File QA Perspective
cpp/tensorrt_llm/kernels/moe/communication/moeAlltoAllKernels.cu: Verify CUDA 13.0 compilation on SM100f and SM120f, and CUDA 13.1 compilation on SM120f. Full library linking and distributed inference were not rerun.