[dtype] Map FP8 to torch.float8_e4m3fn on RDNA3 - #4764
Merged
Conversation
Signed-off-by: skysnow2001 <skysnow9285@gmail.com>
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
valarLip
approved these changes
Aug 15, 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
Add
gfx1100,gfx1101,gfx1102, andgfx1151to AITER's FP8 dtype map withtorch.float8_e4m3fn.Without these entries, AITER falls back to
torch.uint8. FP8 tensors produced by vLLM are then interpreted as byte tensors, which can produce invalid mixed FP8/uint8 operands in Triton kernels such as the DeepSeek-V4 paged MQA-logits path.This follows the same dtype-map change made for gfx1200/gfx1201 in #3332.
Test
Tested on gfx1100 and gfx1151.
0.03125on gfx1100 and0.25on gfx1151 with threshold5.0pytest -q op_tests/triton_tests/attention/test_fp8_mqa_logits.py144 passedpytest -q op_tests/triton_tests/quant/test_fused_fp8_quant.py393 passedpytest -q op_tests/triton_tests/quant/test_fused_rms_gated_fp8_group_quant.py121 passedIt passed these shapes:
Submission Checklist