Repository navigation
Conversation
…code down so A100 CI runs the NVFP4 kernels [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25411
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Cancelled Job, 2 PendingAs of commit ce46f7c with merge base 9f49fe2 ( NEW FAILURES - The following jobs have failed:
CANCELLED JOB - The following job was cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude /pr-review |
This PR needs a
|
|
Claude finished @Gasoonjia's task in 25m 52s —— View job Summary: Requesting changes: Detailed reviewPR Review: #25411SummaryThe PR adds an integer-math E4M3→FP32 scale decode for GPUs below SM89, chosen by a module-level Code Quality
Infrastructure
Testing
Backward Compatibility
RecommendationRequest Changes. Replace the import-time driver query and its |
[ghstack-poisoned]
Pull Request resolved: #25411 Triton has no `float8e4nv` before SM89, so every NVFP4 kernel failed to compile on SM80/SM86. `_e4m3_to_f32` now builds the FP32 bits of each E4M3 scale in integer math there (normal and subnormal, sign included, 0x7F/0xFF as NaN; bit-exact with `torch.float8_e4m3fn`) and keeps the native conversion on SM89+. The path is chosen by an `assume_constant_result` capability predicate passed to the kernels as the `NATIVE_E4M3` constexpr, the same pattern as `NATIVE`, so importing the module does not query the GPU and forked compile workers build exactly what the parent's constants select. The NVFP4 kernel tests no longer skip below SM89; only the activation quantizer (used by native W4A4) still needs native E4M3. Authored with Claude Code. Differential Revision: [D131418682](https://our.internmc.facebook.com/intern/diff/D131418682/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D131418682/)! ghstack-source-id: 480463866
|
Fixed:
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 28m 30s —— View job Summary: I'd approve this. All eight findings are minor, but two should be fixed before landing: the Detailed reviewPR Review: #25411SummaryThe PR adds an integer-math E4M3→FP32 scale decode for GPUs below SM89, selected by a new
Code Quality
Infrastructure
Testing
Performance
RecommendationApprove. Nothing blocks. Before landing, push the |
|
Thanks. Round 7: no changes beyond the rebase. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 17m 39s —— View job Summary: I'd approve this once both A10G Detailed reviewPR Review: #25411SummaryThe PR decodes E4M3 scales with integer math below SM89 (
Code Quality
Infrastructure
Testing
RecommendationApprove, once both |
[ghstack-poisoned]
|
CI update: the A10G Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 23m 9s —— View job Summary: I'd approve this once the A10G Detailed reviewPR Review: #25411SummaryThe PR adds an integer-math E4M3 scale decode (
Testing
Code Quality
RecommendationApprove, once
|
[ghstack-poisoned]
|
Follow-up: the exhaustive switch is now the directory's existing Authored with Claude Code. |
Stack from ghstack (oldest at bottom):
Triton has no
float8e4nvbefore SM89, so every NVFP4 kernel failed to compile on SM80/SM86._e4m3_to_f32now builds the FP32 bits of each E4M3 scale in integer math there (normal and subnormal, sign included, 0x7F/0xFF as NaN; bit-exact withtorch.float8_e4m3fn) and keeps the native conversion on SM89+. The path is chosen by anassume_constant_resultcapability predicate passed to the kernels as theNATIVE_E4M3constexpr, the same pattern asNATIVE, so importing the module does not query the GPU and forked compile workers build exactly what the parent's constants select. It is part of the GEMV/W4A16 autotune keys. The paired W4A16 kernel only runs with native FP4 (SM120) and keeps the native decode.The NVFP4 kernel tests no longer skip below SM89; only the activation quantizer (used by native W4A4) still needs native E4M3.
Authored with Claude Code.
Differential Revision: D131418682
NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!