Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25343
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit e0c2a71 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]
Pull Request resolved: #25343 Adds fused NVFP4 gate/up GEMM with a SiLU/multiply epilogue, split-K reduction, and scalar/per-row global-scale support. Registers the gated-linear custom op and eager/export-time auto-dispatch helpers. Serialized PTE tests cover all six split-K choices, scalar/per-row scales, and dynamic input sizes. Authored with AI assistance (agentcloud). ghstack-source-id: 480369812 @exported-using-ghexport Differential Revision: [D132997716](https://our.internmc.facebook.com/intern/diff/D132997716/)
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 27m 48s —— View job Adds a fused NVFP4 gate/up Triton GEMM and the Detailed reviewPR Review: #25343SummaryThe PR adds Three independent reviewers traced the kernel's indexing, masks, grid, int64 offsets, split-K partial layout and reduction, and BF16 rounding, and found no correctness bugs. The problems are:
I didn't run anything: the runner has no GPU and doesn't allow Python execution. Every finding below comes from reading the code. Code Quality
Infrastructure
Testing
API Design
RecommendationRequest Changes Two things block approval:
To unblock, add coverage for Review steps
|
|
Thanks. Round 6: |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 18m 37s —— View job Approve: no reviewer found a bug in the kernels, the dispatch or the round-6 changes. Three minor findings remain: no CPU test checks that Detailed reviewPR Review: #25343SummaryThe PR adds:
No reviewer found a bug in the kernels, the dispatch, or the round-6 changes (the autouse policy fixture and the static-scale check). Three minor findings remain. I didn't run anything because the runner has no GPU, so every finding comes from reading the code. Testing
Code Quality
RecommendationApprove Nothing blocks approval, and each finding is a small fix. The first is the most useful, because CI can run it on CPU. The gap you deferred in round 5, a second N tile and Review steps
|
[ghstack-poisoned]
|
Thanks. Round 7:
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 30m 52s —— View job Approve: no kernel or dispatch bug found, but two minor test gaps remain: the round-7 changes have no test, and no test exports the Detailed reviewPR Review: #25343SummaryThe PR adds a fused NVFP4 gate/up GEMM with a SiLU·mul epilogue and split-K. It also adds a Testing
RecommendationApprove Neither finding blocks approval. The test gap you deferred in round 5 is still open: no test reaches a second N tile or the small-M configs of Review steps
|
[ghstack-poisoned]
[ghstack-poisoned]
Stack from ghstack (oldest at bottom):
Adds fused NVFP4 gate/up GEMM with a SiLU/multiply epilogue, split-K reduction, and scalar/per-row global-scale support. Registers the gated-linear custom op for
CudaNVFP4Tensorweights (rows are[gate; up]fromfuse_along_output, N even; fused prefill kernels with native FP4 and BF16 activations, or FP32 activations when the FP32 prefill policy applies, i.e. at prefill size, as in_linear; otherwise NVFP4F.linear+ SiLU-gating) and eager/export-time auto-dispatch helpers. Plain weights raise; the op,nvfp4_w4a4_gate_up(including the static activation scale's value in eager calls) and the epilogue validate their operands likenvfp4_w4a4, and the fused kernel uses int64 weight offsets. The autotuned gate/up launches get the traced M's bound for their split-K workspace check, and take the static activation scale as the weight's(1, 1)tensor (orNone), so their launch keys see only static versus dynamic.nvfp4_auto_gate_up_prefillvalidates its operands and scale once at entry; its W4A4 candidates call the unchecked launch and raiseInvalidLaunchParamwithout native FP4, so tuning skips them.Serialized PTE tests cover all six split-K choices with random block scales, scalar/per-row scales, and dynamic input sizes, plus a module that calls the op on an NVFP4 parameter. The op's fused W4A4 branch (2-D/3-D inputs, static activation scale, FP32 prefill output),
autoeager and autotuned prefill, and split-K autotuning are checked against W4A4/W4A16 references; these need native FP4 and run on an RTX 5090 (SM120). The weight-only path, CPU fallback and epilogue run on SM89+ here and on A100 from the software E4M3 decode later in the stack.Authored with Claude Code.
Differential Revision: D132997716