Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25339
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Cancelled Job, 1 PendingAs of commit f3a104f with merge base 9f49fe2 ( CANCELLED JOB - The following job was cancelled. Please retry:
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 20m 29s —— View job No confirmed bugs in the new Detailed reviewPR Review: #25339SummaryAdds API Design
Infrastructure
Testing
Performance
Code Quality
RecommendationNeeds Discussion No bug is confirmed. Two contracts should be settled before the upstack kernels depend on them: the fusion design (which fuser the CUDA loader uses, given that this PR contradicts the
|
…code down so A100 CI runs the NVFP4 kernels [ghstack-poisoned]
|
Thanks. Round 6:
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 27m 15s —— View job Nothing blocks. Three minor problems remain: the round-6 check validates a Python-number activation scale only after moving it to the weight's device (so meta and fake weights skip the check and CUDA weights sync), the class docstring no longer defines that scale's value convention, and no test reaches the check's meta branch. Approve. Detailed reviewPR Review: #25339SummaryAdds
The upstack consumers (#25340+) and the torch/torchao sources are not in this checkout, and Python couldn't be run here. Every finding comes from reading the code. Code Quality
API Design
Testing
RecommendationApprove Nothing blocks. The host-side number check is a few lines and finishes the round-6 change. The docstring clause pins the convention down before upstack kernels depend on it.
|
[ghstack-poisoned]
|
Thanks. Round 7:
|
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 21m 23s —— View job Nothing blocks. The only new problems are in the round-7 Detailed reviewPR Review: #25339SummaryAdds
No functional bug was found. The remaining problems are all minor:
The upstack consumers (#25340+) and the torch/torchao sources are not in this checkout, and Python couldn't be run here. Every finding comes from reading the code. Code Quality
Testing
RecommendationApprove Nothing blocks. Each
|
[ghstack-poisoned]
|
CI update: the A10G Authored with Claude Code. |
|
@claude /pr-review |
|
Claude finished @Gasoonjia's task in 20m 17s —— View job Nothing blocks. The one new problem is in the latest commit: its Detailed reviewPR Review: #25339SummaryAdds Since the last review, only
The upstack PRs (#25340+, including the #25437 CI job) and the torch/torchao sources are not in this checkout. Python couldn't be run here, so every finding comes from reading the code. Code Quality
Infrastructure
Testing
RecommendationApprove Nothing blocks. Settle the switch name before the upstack tests and the #25437 job depend on it. Each round-7 item is a fix of a line or two.
|
[ghstack-poisoned]
|
Moved. Authored with Claude Code. |
Stack from ghstack (oldest at bottom):
Adds
CudaNVFP4Tensorfor byte-packed E2M1 weights and N-major K16 E4M3 block scales. Supports scalar or per-output-row global scales, lossless output-channel fusion, device/dtype conversion, and serializable unit-scale metadata.The portable
fuse_along_outputstill rejects NVFP4 weights with differing global scales; CUDA fuses those after packing withCudaNVFP4Tensor.fuse_along_output, which keeps one global scale per output row.unit_scaleasserts that the global scale is 1 (the multiply can be skipped) and that every scale byte is a non-negative finite E4M3 value (each E2M1 x E4M3 product is exact in BF16);from_exportablesets it. A scalar global scale is stored as a 2-D(1, 1)tensor: Inductor inlines 1-D constants of up to 8 elements as fill kernels that run on every call, which end-to-end profiling of Muse Glimmer showed as one extra kernel per NVFP4 weight per decode token. The optional static activation scale (act_per_tensor_scale) is a float32(1, 1)tensor field rather than a Python float, so kernels read it from memory and layers with different calibrated scales share one compiled kernel and one tuning per shape; the constructor takes a Python number or a one-element float32 tensor on the weight's device and rejects non-finite or non-positive values: a number is checked on the host against the normal float32 range (so meta and fake weights are checked and nothing is read back from the device), a real tensor's value on construction (fake and meta tensors carry none). Its value keeps the portableinput_scaleconvention,amax / (6 * 448), andNonemeans dynamic per-row scaling. The constructor rejects a non-float32 global scale, a non-floating output dtype and fields on different devices;dequantizereuses torchao's FP4 unpacking.test_nvfp4_tensor.pyis CPU-only and is now collected by the CPU pytest job.CPU tests cover the packed layout, validation, dequantization against the portable reference, fusion, fake-tensor reconstruction, and serialization.
Authored with Claude Code.
Differential Revision: D131418679