Skip to content

v3.5.0

Latest

Choose a tag to compare

@AlexanderDokuchaev AlexanderDokuchaev released this 01 Dec 06:56
· 3124 commits to develop since this release
  • Breaking changes:
    • Dropped support for Python 3.10; the minimum supported version is now Python 3.11 (#4242).
  • Features:
    • Added Quantization Aware Distillation (QAD) with absorbable LoRA workflows and model exporting for accurate 3-bit weight compression. It also includes the following NNCF changes:
      • (PyTorch) Added the INT2_SYM and INT3_SYM modes to LoRA-QAT (#4158).
      • (PyTorch) Added the GroupedMatMul operation support for data-free weight compression (#4241).
      • (PyTorch) Layers with a dimension smaller than lora_rank are now compressed with the backup mode instead of the LoRA low-rank scope in QAD (#4287).
      • (PyTorch) Added a register_parametrization-based representation of the compressed model on strip and enabled the export of image-text-to-text models after 2-3 bit QAD (#4288).
      • (PyTorch) Added the 2/3-bit LLM compression example.
    • Introduced the nncf.Scope class, which generalizes nncf.IgnoredScope for selecting nodes by names, patterns, types, and subgraphs; nncf.IgnoredScope is kept as an alias (#4236).
    • Per-layer compression settings: added nncf.ScopedConfig to control how individual parts of a model are compressed in nncf.compress_weights. Now the precision and group size can be chosen for the layers that matter most, which makes it easier to get a good balance between model size and accuracy. For example, in a Mixture-of-Experts LLM you can compress the large expert layers to INT4 to save memory, and keep the small but accuracy-critical attention and router layers in INT8.
      • Introduced nncf.ScopedConfig and the scoped_configs parameter of nncf.compress_weights. Each scoped config selects layers the same way as nncf.Scope and sets their compression mode and group size. You can pass several scoped configs in one call to build a mixed-precision recipe (#4171).
      • Added the Scoped Config guide (#4299) and the TinyLlama scoped config example, which keeps attention layers in INT8 and compresses the rest of the model to INT4 (#4290).
    • (OpenVINO) Added the group_size parameter support for INT8 weight compression modes (#4278).
  • Fixes:
    • (ONNX) Fixed the incorrect scale shape for the Conv layer when grouping is disabled (#4265).
    • (PyTorch) Fixed the TorchFX TinyLlama weight compression example for transformers 5.5 (#4289).
  • Improvements:
    • (PyTorch) Migrated the TorchFX model extraction to the FXModelExtractionCommand instead of PyTorch commands (#4183).
  • New Tutorials with NNCF:
  • Deprecations/Removals:
    • Removed the deprecated nncf.common.utils.logger module (#4244).
    • Removed the anomaly_stfpm_quantize_with_accuracy_control example (#4199).
  • Requirements:
    • Updated torch to 2.14.0 (#4230).
    • Updated onnx to 1.23.0 (#4229).
    • Updated the numpy upper bound to < 2.6.0 (#4111).
    • Updated optimum-intel to 2.2.0 (#4225) and accelerate to 1.15.0 (#4234).
    • Removed the tabulate dependency; tables are rendered with rich (#4243).