Skip to content

Conversation

@AdrianLundell
Copy link
Collaborator

@AdrianLundell AdrianLundell commented Nov 18, 2025

This patch reworks how ops w/o rescaling are handled. Instead of not annotating them and counting on the retracing to make them get correct dtype, they must now be annotated by the SharedQspecQuantizer.

The reason for this is that it simplifies ensuring that non-rescaling with multiple inputs has the same scale on both inputs. It also becomes easier to tell which dtype each op will receive before folding.

cc @freddan80 @per @zingo @oscarandersson8218 @digantdesai

This patch reworks how ops w/o rescaling are handled. Instead of
not annotating them and counting on the retracing to make them
get correct dtype, they must now be annotated by the
SharedQspecQuantizer.

The reason for this is that it simplifies ensuring that non-rescaling
with multiple inputs has the same scale on both inputs. It also
becomes easier to tell which dtype each op will receive before folding.

Signed-off-by: Adrian Lundell <[email protected]>
Change-Id: I99c9e8b11fbb278e50c90ec4915b1347337efafa
@AdrianLundell AdrianLundell added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Nov 18, 2025
@AdrianLundell AdrianLundell added the release notes: none Do not include this in the release notes label Nov 18, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 18, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15872

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit 01f7e97 with merge base 2f9e574 (image):

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.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 18, 2025
Copy link
Collaborator

@zingo zingo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@AdrianLundell AdrianLundell merged commit 6e4e8fa into pytorch:main Nov 19, 2025
144 of 147 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants