Repository navigation
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25432
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 2 Cancelled Jobs, 3 Pending, 1 Unrelated FailureAs of commit 915a7be with merge base 9f49fe2 ( NEW FAILURE - The following job has failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 22m 11s —— View job Request Changes: this PR makes Detailed reviewPR Review: #25432SummaryThe PR adds Problems found:
I did not run the tests because this runner has no GPU. All findings come from reading the code. Code Quality
Testing
Backward Compatibility
RecommendationRequest Changes: the new default decode path for A100/A10G-class GPUs has no test that runs it through the op or AOTI. Whether
|
[ghstack-poisoned]
|
CI note (A10G
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 25m 21s —— View job Approve: nothing blocks this W4A8 dp4a decode GEMV for NVIDIA GPUs without native FP4. Three minor items remain: two docs misdescribe where W4A8 runs and what affects it, the unchecked launcher has a public name, and no test checks that non-native PR Review: #25432 (detailed findings)SummaryThis PR adds an NVFP4 W4A8 decode GEMV (int8 activations per 16 elements, PRMT unpack, API Design
Testing
Code Quality
RecommendationApprove. None of the three items blocks merging.
|
[ghstack-poisoned]
|
CI update: the A10G Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 39m 22s —— View job Approve with three minor items: two docstrings still say W4A8 is timed whenever native FP4 is missing (ROCm included), no test checks the dynamic-M bound the W4A8 op forwards, and the unchecked launcher has a public name and a dead PR Review: #25432 (detailed findings)SummaryThis PR adds an NVFP4 W4A8 decode GEMV: per-16 int8 activations, E2M1 unpacked with PRMT, and dp4a accumulation. Code Quality
Testing
API Design
RecommendationApprove. Nothing blocks. All three items are minor and can go in this PR or a follow-up. |
[ghstack-poisoned]
|
Follow-up: the exhaustive switch is now the directory's existing Authored with Claude Code. |
|
Rebased onto main. Upstream (#24937) already switched the two CUDA pass tests to Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 28m 12s —— View job Approve: nothing blocks this W4A8 dp4a decode GEMV; the two minor items are that the W4A8 mode of PR Review: #25432 (detailed findings)SummaryThis PR adds an NVFP4 W4A8 decode GEMV (per-16 int8 activations, PRMT unpack, dp4a).
API Design
Code Quality
RecommendationApprove. Neither finding blocks merging.
|
Stack from ghstack (oldest at bottom):
Without FP4 tensor cores the W4A16 decode GEMV is ALU bound: every weight is decoded to floating point and multiplied in FP32.
nvfp4_w4a8_gemv.pyquantizes activations to int8 per 16-element block (amax / 127, the NVFP4 block size), turns each 32-bit word of eight E2M1 codes into two words of int8 (2 x value) with three PRMT byte permutes, and accumulates exact integer dot products with dp4a; each block's sum is scaled by its E4M3 weight scale and activation scale in FP32. Weights are unchanged; only activation precision differs from W4A16.Without native FP4,
triton::nvfp4_auto_decode(M <= 4 inautomode) now times it as activation mode 2 against the W4A16 GEMV (both with split-K) at AOTI compile time and keeps the faster; with native FP4 the mode is rejected, so SM120 behavior is unchanged, and on ROCm too (its asm is NVIDIA PTX; forcedw4a8raises there). Int8 activations are higher precision than the NVFP4 activationsautoalready allows.ET_CUDA_NVFP4_ACT=w4a8forces it through the newtriton::nvfp4_w4a8_gemvop (other M run W4A16), andw4a16keeps the W4A16 GEMV. The op keeps thenvfp4_gemvcontract: at most 65535 rows, split-K workspace checked against M's upper bound (_decodemode 2 passes the bound of its own input, as mode 1 does, so for a directnvfp4_auto_decodecall with a large dynamic bound only the traced call sees it), int64 row and column offsets in both kernels, and a clear error on ROCm; NaN activations quantize to 0 as in the W4A4 quantizer. The muse-glimmer--nvfp4-actflag acceptsw4a8; the docs say W4A8 is NVIDIA-only (on ROCmautodecode stays W4A16 andw4a8raises), and the op documents its finite-scale precondition.Authored with Claude Code.
Differential Revision: D131418685
NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!