fix(kernel): use Triton FP8 quantization on SM120#646
Merged
lightseek-bot merged 1 commit intoJul 12, 2026
Merged
Conversation
lucifer1004
marked this pull request as ready for review
July 11, 2026 12:03
Signed-off-by: Zihua Wu <13583761+lucifer1004@users.noreply.github.com>
lucifer1004
force-pushed
the
agent/fix-sm120-mxfp8-quantization
branch
from
July 11, 2026 12:13
bb4fa08 to
725b1b0
Compare
lightseek-bot
approved these changes
Jul 12, 2026
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.
Summary
Root cause
The TRT-LLM dynamic FP8 operators bundled in the current environment do not have SM120 kernel images. The 1x128 path also exposes a flat padded scale tensor where the GEMM adapter expects a two-dimensional group-major layout. Selecting it for SM120 therefore fails before the FlashInfer GEMM can run and can leave a delayed
cudaErrorNoKernelImageForDevicein the CUDA context.The existing TokenSpeed Triton quantizer produces the row-major
[tokens, K / 128]scales consumed by the SM120 FlashInfer GEMM. Other architectures keep their existing selection path and priorities.Validation
inferlab run --environment tokenspeed -- pytest tokenspeed/tokenspeed-kernel/test/ops/test_quantization.py tokenspeed/tokenspeed-kernel/test/test_kernel_api_selection.py -q(31 passed, 50 skipped)prek run --all-files