Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25033
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 5 Pending, 2 Unrelated Failures, 1 Unclassified FailureAs of commit 1f4b7fd with merge base 765e973 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review this pr. effort:max |
|
Claude finished @digantdesai's task in 4m 37s —— View job No blockers, but the A8 attention policy only exists as a test helper whose behaviour depends on call order. The new Detailed reviewPR Review: #25033SummaryThe PR adds SDPA node finders and a derived INT32 QK accumulator qspec so native SDPA can be quantized as A16 or A8, and adds INT16 storage to API Design
Backward Compatibility
Code Quality
Testing
RecommendationRequest Changes
|
ab23fc2 to
5a0ef12
Compare
|
@claude Thanks for the detailed review. I’ve addressed the concrete issues: documented the node-finder recipe and precedence, clarified the output-qspec factory contract, strengthened accumulator validation, preserved decomposition provenance, corrected the dtype-dependent cache scale, and expanded tests and Buck registration. Coverage now includes non-strict export and INT16 persistent-variable lowering with a compatible Vela build. A few design clarifications:
|
|
Claude finished @xingguo01's task in 5m 46s —— View job Most of the first review is resolved. Three things remain: an SDPA role finder can still turn into a silent no-op, which the new docs say can't happen; the only real INT16 Vela lowering test is always skipped in CI; and a few tests are still weak. Detailed reviewPR Review: #25033 (re-review)SummaryThe PR adds SDPA node finders, an INT32 QK accumulator qspec factory and INT16 The diff was read from API Design
Testing
Code Quality
RecommendationRequest Changes
The rest is minor. |
5a0ef12 to
f41f05c
Compare
|
@claude Thanks for the follow-up. Updated the implementation, documentation and tests:
INT16 default scales are dtype-dependent, accumulator validation checks actual input observers, and the provenance and cache-history tests have been strengthened. |
|
Claude finished @xingguo01's task in 5m 3s —— View job Everything that was blocking in the last round is fixed, so I'd approve this. Five minor points remain; none block the merge. Points you already settled in your replies (keeping the node-finder API, the factory contract, the Cortex-M no-node callers, the Vela 5.2.0 pin, the Detailed reviewPR Review: #25033 (second re-review)SummaryThe PR adds SDPA node finders, an INT32 QK accumulator qspec factory, and INT16 API Design
Code Quality
Testing
RecommendationApprove Nothing blocks the merge. The doc snippet fix and the duplicated default scale are worth a quick follow-up. |
f41f05c to
63d72e1
Compare
|
@claude Thanks for the re-review. Addressed the remaining nits:
|
|
Claude finished @xingguo01's task in 4m 17s —— View job All five nits from the last round are fixed and nothing blocks the merge, so I'd approve this; four minor follow-ups remain, the most useful being a test that runs the A8 QK path on the TOSA reference model. Detailed reviewPR Review: #25033 (third re-review)SummaryThe PR adds SDPA node finders, an INT32 QK accumulator qspec factory, and INT16 Testing
Code Quality
Infrastructure
RecommendationApprove None of these block the merge. The TOSA reference-model case would give real coverage of the new A8 QK path, which today is only checked in eager mode and by dtype. |
63d72e1 to
1df6aa4
Compare
|
@claude Thanks. Added a real TOSA reference-model regression covering INT8 QK, INT32 accumulation, the QK-specific INT16 rescale and masked attention outputs, compared against PT2E and eager. Factory errors now include node names. Per-cache logging is DEBUG and identifies the initial scale. The Buck dependency now uses the narrower custom_kv_cache target. |
|
Claude finished @xingguo01's task in 5m 23s —— View job All four follow-ups from the last round are fixed and nothing blocks the merge, so I'd approve this; two small test issues remain, and the most useful fix is a log test that can no longer fail now that the message is logged at DEBUG. Detailed reviewPR Review: #25033 (fourth re-review)SummaryThe PR adds SDPA node finders, an INT32 QK accumulator qspec factory and INT16
Testing
Code Quality
RecommendationApprove None of these block the merge. The |
1df6aa4 to
a77aba9
Compare
|
@claude Thanks. Fixed the DEBUG logging guard and strengthened the TOSA mask assertions. Both comparisons now explicitly select the TOSA reference artifact and share the comparison callback. I also reproduced the fused CPU SDPA case using real export/decomposition. Groups without explicit matmuls are now skipped, with regressions confirming that incomplete or ambiguous decompositions still fail. |
|
Claude finished @xingguo01's task in 4m 18s —— View job All three items from the last round are fixed and nothing blocks the merge, so I'd approve this. Three minor points remain: some of the TOSA test's tolerance arguments have no effect, one condition in Detailed reviewPR Review: #25033 (fifth re-review)SummaryThe PR adds SDPA node finders, an INT32 QK accumulator qspec factory and INT16
Code Quality
Testing
RecommendationApprove None of these block the merge. The no-softmax condition on the skip is the only one that could change behaviour, and nobody has reproduced it. |
Configure native SDPA through quantizer annotations and decomposition provenance instead of requiring model-specific attention arithmetic. Support A16 attention and experimental A8 QK/AV, deriving INT32 QK scales from symmetric operands and retaining A16 masked softmax. Keep calibrated integer cache storage separate from attention policy. Retain the experimental Vela-specific INT16 variable path without a model-specific SDPA source transform. Cover quantizer selection, masks, GQA, accumulator bounds, and delegated mutable-buffer ownership. AI-assisted-by: Codex Change-Id: Ia0d7d8113e3d0f6aa6b625a121329c86d7b6c539 Signed-off-by: Xingguo Li <xingguo.li@arm.com>
a77aba9 to
1f4b7fd
Compare
|
@claude Thanks, addressed these points.
|
|
Claude finished @xingguo01's task in 3m 52s —— View job All four fixes from the last round are in and nothing blocks the merge, so I'd approve this. Three minor points remain, the most useful being that the second reference-model comparison in the new TOSA test isn't guarded when the TOSA reference model is unavailable. Detailed reviewPR Review: #25033 (sixth re-review)SummaryThe PR adds SDPA node finders, an INT32 QK accumulator qspec factory and INT16
Code Quality
Testing
RecommendationApprove None of these block the merge. The guard on the second comparison is a one-line fix, and moving the no-matmul check above the |
|
@digantdesai I think I have addressed all concerns from Claude, though it is a bit persistent |
Configure native SDPA through quantizer annotations and decomposition provenance instead of requiring model-specific attention arithmetic. Support A16 attention and experimental A8 QK/AV, deriving INT32 QK scales from symmetric operands and retaining A16 masked softmax.
Keep calibrated integer cache storage separate from attention policy. Retain the experimental Vela-specific INT16 variable path without a model-specific SDPA source transform. Cover quantizer selection, masks, GQA, accumulator bounds, and delegated mutable-buffer ownership.
AI-assisted-by: Codex
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani