Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25340
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit 9ff8f07 with merge base 9f49fe2 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
[ghstack-poisoned]
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 31m 5s —— View job Request changes: the reference in Full reviewPR Review: #25340SummaryThis PR adds NVFP4 dynamic activation quantization and a Problems found:
All 11 files were reviewed. Nothing was executed, because this job has no GPU, so the runtime claims come from reading the code. Code Quality
Infrastructure
Testing
API Design
Performance
RecommendationRequest Changes
|
…code down so A100 CI runs the NVFP4 kernels [ghstack-poisoned]
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 32m 22s —— View job Requesting changes for one design issue: the new Detailed reviewPR Review: #25340SummaryThis PR adds NVFP4 W4A4 to the CUDA backend: Triton activation quantization (fused native FP4 on SM120, software elsewhere), a API Design
Testing
Code Quality
RecommendationRequest Changes The API Design item is the only blocker. Its fix is small and deletes code, and it should land before other launch functions start relying on
|
[ghstack-poisoned]
|
Thanks. Round 7:
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 34m 32s —— View job Round 8 has no blockers. There are two minor findings: the Buck A100 target's Detailed reviewPR Review: #25340SummaryThis PR adds NVFP4 W4A4 Triton kernels to the CUDA backend:
All 13 changed files were reviewed. Two minor issues remain and neither blocks approval. Nothing could be run in this job (no GPU and no Python), so the findings come from reading the code. Infrastructure
Code Quality
RecommendationApprove Nothing blocks approval. Both findings are small and can be fixed in this round or in a follow-up. Review progress
|
[ghstack-poisoned]
|
CI update: the A10G Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 30m 32s —— View job Claude finished @Gasoonjia's task Approve, with four minor follow-ups: this PR's tests don't call the new Detailed reviewPR Review: #25340SummaryThis PR adds the NVFP4 W4A4 Triton path:
Since the last review, the only change here is the Four minor issues remain, and none blocks. Two of them (the Buck test selection and the capability check) were raised last round and are still open. Nothing was executed, because this job has no GPU and couldn't run Python. Everything below comes from reading the code. Infrastructure1. This PR's tests never call Neither On A100 the W4A4 file skips entirely, because its module gate needs SM89+. The cost falls on SM120 machines, where every default run includes:
Wrap both tests in 2.
Tests are assigned to targets by name, and these are the only Testing3. The W4A4 output checks only verify the config the autotuner picks, and only at M ≤ 37.
The other quantized GEMMs in this directory check each config's output separately through Code Quality4. The software path casts to Add the same kind of check after the existing validation, so the CPU tests that expect RecommendationApprove. None of the four items is a correctness or compatibility problem in the kernels or dispatch, so all of them can be follow-ups. If the
|
[ghstack-poisoned]
|
Rebased onto main. Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 39m 17s —— View job Claude finished @Gasoonjia's task Approve for 9ff8f07 with minor follow-ups, but the rebase described at 18:13 UTC isn't on the branch yet (head is still 9ff8f07 from 14:33 UTC), so its conflict resolution with main's Detailed reviewPR Review: #25340SummaryThis PR adds NVFP4 activation quantization (a fused SM120 kernel and an SM89+ software path), an SM120
Apart from that, the items for 9ff8f07 are minor: a Buck selection gap, untested device checks, and cleanups. Infrastructure
Testing
Code Quality
RecommendationApprove (9ff8f07). None of the findings above blocks merging. The one piece not reviewed is the conflict resolution in the shared timing code:
|
Stack from ghstack (oldest at bottom):
Adds dynamic NVFP4 activation quantization and native W4A4 GEMM using
tl.dot_scaled, with split-K launch selection and tile tuning. Extends the shared autotune timer with optional callbacks and median-of-three cold CUDA-graph means while preserving existing timing defaults; the shared Tritondo_benchtakes the statistic and replay count (NVFP4 uses three means) and no longer swallowsParkedTensorsNotRestored.nvfp4_w4a4rejects malformed operands (K, scale shape, global-scale length/dtype, contiguity, device), a static activation scale that is not a one-element float32 tensor on the activation's device (and, in eager calls on real data, one that is not finite and positive), and targets without native FP4 (SM120+, not ROCm).nvfp4_quantize_activationchecks the scale the same way. Each public op validates once at entry; the launch path, which split-K timing runs on random stand-ins, uses an unchecked private quantizer. The value check is skipped for fake and meta tensors and inside CUDA-graph capture. A split-K candidate must fit its(split_k, M, N)workspace at M's upper bound, not the export hint: the op computes the bound from the traced M and passes it to the autotuned launch, so timing (which runs at hinted sizes) rejects the same splits as the final traced call, and an unbounded dynamic M tunes only split 1. The optional static activation scale is a runtime tensor operand read by the quantizer kernels, and only whether one is present (HAS_STATIC, a constexpr) enters the Triton specialization, the autotune key and the split-K launch key, so layers with different calibrated scales share one compiled kernel and one tuning per shape.Tests cover independent quantization references, rounding boundaries, native GEMM, split-K, 64-bit workspace offsets, and the shared timing/autotune/AOT paths.
Authored with Claude Code.
Differential Revision: D132997450