pytorch / pytorch/executorch

CORTEX_M: Quantization configuration

Open
#16,040 0 comments 0 reactions 1 assignee View on GitHub

@AdrianLundell is already working on this.

Since Jan 15, 2026.

Dominant language
Python
Stars
5k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
581

Description

The current quantizer only quantizes to int8 and does not allow any customization. The composable quantizer pattern used is already quite easy to modify and use, so one suggestion is to add a thin layer of configuration when initalizing the cortex_m_quantizer which allows the user to easily select common quantization strategies, and leave it to advanced users to directly build their own composable quantizer which can do whatever they want to.

Deciding the exact API is part of the ticket, but it will likely include a quantization config similar to the arm backend, so that when you create the quantizer it is configured like this:

int8_quantizer= CortexMQuantizer(int8_quant_config)
int16_quantizer=CortexMQuantizer(int16_quant_config)

And all ops would use either dtype where supported.

Ideally this would be coordinated with an upgrade to the arm quantizer to unify these two to be more similar in general.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.