Skip to content

Arm backend: Remove legacy quantizer - #22838

Open
Sebastian-Larsson wants to merge 3 commits into
pytorch:mainfrom
Sebastian-Larsson:Move_remaining_Arm_quantization_helpers_to_their_consumers
Open

Sebastian-Larsson wants to merge 3 commits into
pytorch:mainfrom
Sebastian-Larsson:Move_remaining_Arm_quantization_helpers_to_their_consumers

Conversation

@Sebastian-Larsson

@Sebastian-Larsson Sebastian-Larsson commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Remove legacy quantizer and remove quantization_annotator.py file. Helper functions inside it that remained are moved closer to their usage (same file).

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @robell @rascani

Remove _TOSAQuantizerV1 and its supporting helpers, deprecated in
ExecuTorch 1.4. Use the composable quantizer for all Arm targets.

Retain use_composable_quantizer for API compatibility and reject
False with a removal message. Update the tests and documentation
for the composable implementation.

Change-Id: I1233ac75ae7371e55757cb2676e2d538225fac51
Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
Move quantization-spec helpers into quantization_config, operator sets
into quantizer_support, and scalar checks into the Cortex-M pattern
matcher. Delete quantization_annotator and its build dependencies.

Change-Id: I5b2db2955f8630ab6c53ab29cca19e44ab8e0220
Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
@Sebastian-Larsson Sebastian-Larsson added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate labels Sep 15, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 4 Unrelated Failures

As of commit 1e361be with merge base 026ca3f (image):

NEW FAILURE - The following job has failed:

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 Sep 15, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Sep 15, 2026
@rascani

rascani commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

We still have some internal usage of the legacy quantizer, I'll look into the what it will take to finish that migration.

"This API is experimental and may change without notice. "
"It is only available when use_composable_quantizer=True."
)
@experimental("This API is experimental and may change without notice.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we're removing the legacy quantizer, can we remove the experimental tag on the new one? Is there any remaining work to mark this as stable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@AdrianLundell what do you think?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I agree, I have no remaining work from my side and I have not seen much issues with it recently.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks @AdrianLundell

@rascani I will wait for furher feedback from you in case I need to change anything else.

@zingo zingo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Whoohoo
(But adress and wait @rascani comments before merge, i was a bit trigger happy on this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants