unstale

pypi / nncf

nncf

What changed in nncf 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

36 breaking7 deprecations27 new APIs and options4 performance8 behavior and defaults1 tooling21 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

nncf 359 changes

Breaking changes 22

  • Removed the unused PyTorch CompressionParameter class.

    3.3.0release notes

  • Removed the unused NNCFDataLoader class.

    3.3.0release notes

  • Removed the unused PyTorch patch_torch_operators function.

    3.3.0release notes

  • Removed the unused PyTorch PTInitializingDataLoader.

    3.3.0release notes

  • Removed the unused QuantizationStatistics class.

    3.3.0release notes

  • Removed the unused QuantizersCounter class.

    3.3.0release notes

  • Removed the unused PyTorch register_module function.

    3.3.0release notes

  • Removed the unused Statistics class.

    3.3.0release notes

  • The deprecated INT8 mode has been removed; use INT8_SYM or INT8_ASYM instead.

    3.2.0release notes

  • PyTorch PTQ and Weight Compression algorithms remove no-op operations such as to and dropout from the inference graph.

    3.2.0release notes

  • The unused example_input parameter has been removed.

    3.2.0release notes

  • OVQuantizer has been removed from NNCF; use it from the executorch package instead.

    3.2.0release notes

  • The unused ProgressBar class has been removed.

    3.2.0release notes

  • pandas is now an optional dependency.

    3.1.0release notes

  • The unused pillow dependency was removed.

    3.1.0release notes

  • PyTorch support migrated to torchao instead of deprecated torch.ao.

    3.1.0release notes

  • The legacy PyTorch API, previously marked as deprecated, has been removed.

    3.0.0release notes

  • Hardware configuration now uses Python-style definitions instead of JSON files.

    3.0.0release notes

  • Removed legacy PyTorch algorithms based on NNCFNetwork: NAS, Structural Pruning, AutoML, Knowledge Distillation, Mixed-Precision Quantization, and Movement Sparsity.

    3.0.0release notes

  • The compression mode previously named CB4_F8E4M3 is now named CB4.

    3.0.0release notes

  • This mode option was renamed to CB4.

    3.0.0release notes

  • Support for the TensorFlow backend has been removed.

    3.0.0release notes

New APIs and options 15

  • AWQ and Scale Estimation support GroupedMatMul, enabling data-aware weight compression of grouped_mm-based MoE models.

    3.4.0release notes

  • Added OpenVINO GroupedMatMul operation support for data-free weight compression.

    3.3.0release notes

  • Added INT2 symmetric compression type support for OpenVINO.

    3.3.0release notes

  • Added INT3 symmetric compression type support for OpenVINO.

    3.3.0release notes

  • Can now ignore specific weight nodes by constant node name in nncf.compress_weights and nncf.prune.

    3.2.0release notes

  • The Scale Estimation algorithm supports the transpose_a attribute in ONNX and OpenVINO backends.

    3.2.0release notes

  • FP compression formats can use a backup FP format for first and last layers instead of INT8.

    3.1.0release notes

  • Weight Compression adds NVFP4 as a compression data type, using group size 16 and scales compressed to f8e4m3.

    3.1.0release notes

  • TorchFX backend graph building supports TopK operations, enabling correct graph building for models such as YOLO26.

    3.1.0release notes

  • AWQ, Scale Estimation, and GPTQ now support compression of 3D weights, enabling data-aware compression of models with MoE.

    3.0.0release notes

  • OpenVINO adds an experimental compression data type that calculates a unique codebook for each MatMul or block of identical MatMuls, reducing quality degradation with per-channel weight compression.

    3.0.0release notes

  • Preview support enables quantization of torch.fx.GraphModule models with OpenVINOQuantizer, including ExecuTorch models for the OpenVINO backend using Scale Estimation and AWQ.

    3.0.0release notes

  • The PyTorch algorithm now supports linear functions to improve model accuracy after quantization.

    3.0.0release notes

  • Builds an NNCFGraph from a model, allowing developers to inspect and define the ignored scope.

    3.0.0release notes

  • A unified API for pruning algorithms is available for the PyTorch backend and currently supports Magnitude Pruning.

    3.0.0release notes

Performance 1

  • The nncf.torch module is imported lazily to reduce startup import time.

    3.1.0release notes

Behavior and default changes 4

  • The ignored pattern recognizes the matmul → transpose → cos/sin structure used by models such as GPT-OSS.

    3.4.0release notes

  • AWQ, GPTQ, Scale Estimation, and LoRA Correction are enabled for all bit widths below 4, including INT2 and INT3.

    3.3.0release notes

  • Added FP8 support for the ONNX backend.

    3.3.0release notes

  • Data-free Weight Compression and data-aware AWQ now support models containing MatMul operations with transposed activation inputs.

    3.0.0release notes

Tooling 1

  • An OpenVINO tool is available to collect and visualize tensor statistics.

    3.0.0release notes

Fixes and other changes 16

  • Fixes a KeyError when resolving a bias attribute for a tensor that is a model input and has no parent node.

    3.4.0release notes

  • The node following split-like operations such as chunk is removed from the TorchFX inference graph, fixing statistic collection errors for models such as YOLO11.

    3.4.0release notes

  • Fixes squeeze axis determination for ONNXEmbeddingMetatype nodes.

    3.4.0release notes

  • Fixed the compression range when all weight values are positive or all are negative.

    3.3.0release notes

  • Fixed the aggregator formula used in mixed-precision weight compression.

    3.3.0release notes

  • Weight serialization supports safetensors >= 0.8.0 by converting NumPy scalars to arrays before saving.

    3.3.0release notes

  • Scale Estimation now properly handles zero initial_steps and scale_steps.

    3.2.0release notes

  • Serialized config now saves the module path, improving load_from_config reliability.

    3.2.0release notes

  • Fixed unexpected behavior when loading quantization constraints from a config dictionary.

    3.2.0release notes

  • Prevents capture of nodes that do not affect target outputs.

    3.2.0release notes

  • Scale estimation for Adaptive Codebook weight compression is fixed.

    3.1.0release notes

  • Fixed an ONNX error reporting that there is no tensor with the specified name.

    3.1.0release notes

  • NNCFGraph supports models with parallel or multi-edges, enabling correct quantization of complex graph structures.

    3.1.0release notes

  • The ignored pattern handles RoPe operations without a preceding transpose, including the pattern in Phi-3.5-MoE-instruct.

    3.1.0release notes

  • The transformation no longer leaves names of deleted initializers in graph inputs.

    3.0.0release notes

  • Fixed incorrect insertion of MatMulNBits nodes in ONNX.

    3.0.0release notes

nncf 245 changes

Breaking changes 14

  • Weight compression now raises an error when a layer's channel size is not divisible by group size; users can choose another group size or use GroupSizeFallbackMode.ADJUST.

    2.19.0release notes

  • The OpenVINO compression mode previously named E2M1 is now named MXFP4.

    2.19.0release notes

  • The ONNX backend parameter now defaults to True, enabling folding QuantizeLinear nodes with constant inputs into precomputed quantized initializers.

    2.19.0release notes

  • Support for Python 3.9 has been dropped.

    2.19.0release notes

  • The updated PyTorch requirement is 2.9.0.

    2.19.0release notes

  • The updated Torchvision requirement is 0.24.0.

    2.19.0release notes

  • CompressionLevel has been renamed to CompressionStage.

    2.0.0release notes

  • ignored_scopes no longer supports prefix matching; use regular expressions when matching beyond exact names.

    2.0.0release notes

  • The batchnorm adaptation forgetting step and its num_bn_forget_steps configuration parameter have been removed because the step was observed to degrade accuracy.

    2.0.0release notes

  • Installing nncf no longer installs framework-specific requirements; install them with pip extras such as nncf[tf] or nncf[torch].

    2.0.0release notes

  • Installing with setup.py no longer installs framework-specific requirements; these are assumed to be present in the environment.

    2.0.0release notes

  • The quantizable_subgraph_patterns NNCF configuration option has been removed.

    2.0.0release notes

  • PyTorch configs can no longer use the version-agnostic all-caps RELU operation name; specify an exact function name such as relu or relu_.

    2.0.0release notes

  • target_scopes no longer supports prefix matching; use regular expressions when matching beyond exact names.

    2.0.0release notes

Deprecations 7

  • The experimental AutoML method is deprecated and will be removed in future releases.

    2.19.0release notes

  • The experimental Knowledge Distillation method is deprecated and will be removed in future releases.

    2.19.0release notes

  • The experimental Mixed-Precision Quantization method is deprecated and will be removed in future releases.

    2.19.0release notes

  • The experimental Movement Sparsity method is deprecated and will be removed in future releases.

    2.19.0release notes

  • The experimental NAS method is deprecated and will be removed in future releases.

    2.19.0release notes

  • The experimental Structural Pruning method is deprecated and will be removed in future releases.

    2.19.0release notes

  • The TensorFlow backend is deprecated and will be removed in future releases; the notes recommend PyTorch, OpenVINO IR, and ONNX alternatives for the specified optimization methods.

    2.19.0release notes

New APIs and options 12

  • Adds experimental OpenVINO compression modes for MXFP8, FP8, and FP4 precisions.

    2.19.0release notes

  • Activates a histogram-based range estimator that minimizes L2 error of histogram bin quantization.

    2.19.0release notes

  • The ONNX backend now supports SmoothQuant for INT8 quantization.

    2.19.0release notes

  • Accuracy-aware training is available for filter pruning and sparsity to automate compression within a specified accuracy-drop threshold.

    2.0.0release notes

  • Compression methods now have a common interface across the PyTorch and TensorFlow backends.

    2.0.0release notes

  • PyTorch NNCF configuration can specify an effective learning-rate multiplier for trainable compression-algorithm parameters, controlling their tuning rate relative to FP32 model weights.

    2.0.0release notes

  • Compressed TensorFlow models can be exported in Frozen Graph format for use with OpenVINO.

    2.0.0release notes

  • Experimental PyTorch knowledge distillation can be combined with any compression algorithm to add a loss source against the uncompressed model.

    2.0.0release notes

  • An experimental PyTorch filter-pruning mechanism aims for better pruning ratios with less accuracy drop across a broad range of models.

    2.0.0release notes

  • Compressed TensorFlow models can be exported in SavedModel format for use with OpenVINO.

    2.0.0release notes

  • NNCF can now compress supported Keras Sequential and Functional models with quantization, sparsity, and filter pruning, and transform their graphs automatically.

    2.0.0release notes

  • TensorFlow compression supports distributed training across multiple GPUs on one machine using MirroredStrategy.

    2.0.0release notes

Performance 3

  • Peak memory footprint has been reduced.

    2.19.0release notes

  • OpenVINO model compression to MXFP4 is up to 3x faster and uses up to 1.5x less memory.

    2.19.0release notes

  • Maximum memory consumption is reduced by releasing model output memory before the next statistic collection inference call.

    2.19.0release notes

Behavior and default changes 4

  • The ONNX algorithm now applies to MatMul + Add subgraphs when one Add input is constant.

    2.19.0release notes

  • For StripFormat.IN_PLACE, example_input is no longer required.

    2.19.0release notes

  • The table now displays the group size for each compression data type.

    2.19.0release notes

  • NNCF checkpoints now include compression state, allowing the exact compressed model state to be restored without the original NNCF config file.

    2.0.0release notes

Fixes and other changes 5

  • Fixed ONNX INT4 weight compression when transB=1.

    2.19.0release notes

  • Fixed incorrect ONNX input handling that could cause graph breaks.

    2.19.0release notes

  • Fixed a hang when applying batchnorm adaptation in PyTorch DDP mode.

    2.0.0release notes

  • PyTorch per-tensor quantizers affecting concat operations now use identical scales, allowing concatenated tensors to represent their subcomponents without accuracy loss.

    2.0.0release notes

  • Fixed tracing of operations that return NotImplemented in PyTorch.

    2.0.0release notes