Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25342
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit c875a5b with merge base 9f49fe2 ( NEW FAILURE - The following job has 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 32m 0s —— View job Request Changes: the new NVFP4 dispatch has no SM89 guard, makes importing PR Review: #25342SummaryThis PR adds eager and export Backward Compatibility
API Design
Infrastructure
Testing
Performance
Code Quality
RecommendationRequest Changes Concrete fixes needed:
Needs discussion:
None of the new GPU tests run in CI, so none of the kernel or dispatch behavior in this PR is checked by automation. Review steps
|
…code down so A100 CI runs the NVFP4 kernels [ghstack-poisoned]
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 31m 8s —— View job Approve: nothing blocks, but two small issues remain. FP32 activations, including ones under a forced PR Review: #25342SummaryThis PR routes
Two minor issues remain and nothing blocks. API Design
Code Quality
RecommendationApprove Both issues are minor. The first affects only FP32 activations, and the second only lowering the auto ops on a device without native FP4. They can land in this PR or a follow-up. Review steps
|
[ghstack-poisoned]
|
Thanks. Round 7:
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 33m 46s —— View job Approve: the NVFP4 dispatch is ready to land, with three minor test gaps left (the CPU routing tests only run in the A100 target, no case covers a forced PR Review: #25342SummaryThe PR sends Infrastructure
Testing
RecommendationApprove. The three items are minor test gaps that can land as follow-ups; none changes an exported program. Review steps
|
[ghstack-poisoned]
|
CI update: the A10G Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 24m 59s —— View job Approve: nothing blocks; the new quick PR Review: #25342SummaryThis PR routes API Design
Infrastructure
Testing
RecommendationApprove. All six items are minor test, CI and docstring fixes. They can land in this PR or in a follow-up. Review steps
|
[ghstack-poisoned]
|
Follow-up: the exhaustive switch is now the directory's existing Authored with Claude Code. |
Stack from ghstack (oldest at bottom):
Adds eager and export-time linear/embedding dispatch for
CudaNVFP4Tensor, compile-time precision and split-K selection, unit-scale integration, and a configurable prefill output dtype. Gemma CUDA weight packers accept NVFP4 tensors. The policy is fixed at export byET_CUDA_NVFP4_ACT(autotimes W4A16 against native W4A4,w4a16forces weight-only) andET_CUDA_NVFP4_PREFILL_OUTPUT, documented innvfp4_dispatch. The non-Triton fallbacks honor the prefill output dtype; the linear fallback dequantizes in N chunks (chunked_dequant_linear) and the embedding fallback only the gathered rows, rejecting ids outside[0, N)withnvfp4_embedding'sIndexErrorinstead of letting indexing wrap negative ids. The Gemma packers share one NVFP4 branch. The autotunedautoprefill gets the traced M's bound like the kernels' split-K launches. Theautoops take the static activation scale as the weight's(1, 1)tensor (orNone), so their mode/split-K launch key, like the kernels', sees only static versus dynamic and layers with different calibrated scales share one tuning per shape. Theautoops validate their operands and the scale once at entry; their W4A4 candidates call the unchecked launch (timing runs them on random stand-ins) and raiseInvalidLaunchParamwithout native FP4, so tuning a program traced on SM120 on another GPU skips them instead of aborting.PTE tests exercise serialized runtime programs, dynamic input sizes, fixed-prefill mode selection, split-K, per-output-row scales, and unit-scale behavior.
Authored with Claude Code.
Differential Revision: D132997584