Skip to content

Register SingleConfigQuantizationPoint in CommonStatefulClassesRegistry#3978

Open
abhayuvi wants to merge 1 commit intoopenvinotoolkit:developfrom
abhayuvi:fix/register-single-config-quantization-point
Open

Register SingleConfigQuantizationPoint in CommonStatefulClassesRegistry#3978
abhayuvi wants to merge 1 commit intoopenvinotoolkit:developfrom
abhayuvi:fix/register-single-config-quantization-point

Conversation

@abhayuvi
Copy link

Changes

SingleConfigQuantizationPoint is now decorated with
@CommonStatefulClassesRegistry.register(). SingleConfigQuantizerSetup.from_state()
is updated to load SingleConfigQuantizationPoint via the registry instead of calling
it directly. A new test file tests/common/quantization/test_quantizer_setup.py is
added to cover the registry lookup and get_state/from_state round-trips.

Reason for changes

SingleConfigQuantizationPoint had a from_state() method but was missing its
@CommonStatefulClassesRegistry.register() decoration, unlike all other stateful
classes in the same file (WeightQuantizationInsertionPoint,
ActivationQuantizationInsertionPoint, TargetPoint). This made
SingleConfigQuantizerSetup.from_state() bypass the registry and call the class
directly, inconsistent with the established pattern.

Related tickets

#3574

Tests

  • Added tests/common/quantization/test_quantizer_setup.py
  • Covers: registry lookup for SingleConfigQuantizationPoint, get_state/from_state
    round-trip for both weight and activation insertion points, and unified scale group
    preservation across a SingleConfigQuantizerSetup round-trip
  • All 222 existing tests in tests/common/quantization/ continue to pass

@abhayuvi abhayuvi requested a review from a team as a code owner March 12, 2026 12:09
@github-actions github-actions bot added the NNCF Common Pull request that updates NNCF Common label Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NNCF Common Pull request that updates NNCF Common

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants