openvinotoolkit / openvinotoolkit/nncf

[quantize_pt2e] Support batched statistics

Open
#3,576 3 comments 0 reactions 1 assignee View on GitHub

@daniil-lyakhov is already working on this.

Since Jul 7, 2025.

enhancement
Dominant language
Python
Stars
1.2k
Forks
305
Avg merge
1d 9h
Merged PRs (30d)
27

Description

🚀 Feature request

External quantizers could mark a multiply node as quantizable (see https://github.com/openvinotoolkit/nncf/pull/3558). NNCF is hardcoded the weight nodes via the weight_port_id parameter in metatypies, so the logic of the quantization is leaked to the metatypes.

The task is to figure out a way to correctly identify weight of a node without hardcoded parameter. For example, NNCF should identify which kind of multiply is present: activations x activations, weights x activations or activations x weights
The batched statistics should be enabled and tested for a custom quantizers (like x86)

Feature Use Case

Quantization with quantize_pt2e + custom quantizers with batch size > 1

Are you going to submit a PR?
  • Yes I'd like to help by submitting a PR!

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.