nncf 3.2.0__tar.gz → 3.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nncf-3.2.0/src/nncf.egg-info → nncf-3.3.0}/PKG-INFO +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/README.md +0 -3
- nncf-3.3.0/pyproject.toml +293 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/factory.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/operator_metatypes.py +20 -19
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/patterns/manager.py +6 -18
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/transformations/commands.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/insertion_point_graph.py +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/config_assignment.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/initialization/range.py +5 -5
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_propagation/graph.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/stateful_classes_registry.py +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/aggregator.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/collectors.py +7 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/statistic_point.py +8 -6
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/statistics.py +11 -11
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/api_marker.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/backend.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/os.py +1 -1
- nncf-3.3.0/src/nncf/common/utils/registry.py +97 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/engine.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/metatypes/onnx_metatypes.py +3 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/model_transformer.py +7 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/onnx_helper.py +6 -6
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/transformations/command_creation.py +6 -4
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/transformations/commands.py +4 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/hardware/fused_patterns.py +3 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/quantization/ignored_patterns.py +3 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/quantization/quantize_model.py +7 -5
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/quantization/quantizer_parameters.py +36 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/cpu_info.py +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/engine.py +4 -6
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/layout.py +7 -5
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/metatypes/groups.py +1 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/metatypes/openvino_metatypes.py +9 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/model_builder.py +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/nncf_graph_builder.py +5 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/node_utils.py +4 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/transformations/commands.py +6 -6
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/hardware/fused_patterns.py +4 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/optimized_functions/models.py +3 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/quantization/backend_parameters.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/quantization/default_quantization.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/quantization/ignored_patterns.py +6 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/rt_info.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/parameters.py +6 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/pruning/prune_model.py +5 -5
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/algorithm.py +8 -7
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/backend.py +9 -13
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/onnx_backend.py +10 -9
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/openvino_backend.py +12 -10
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/algorithm.py +1 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/bias_correction/algorithm.py +57 -45
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/bias_correction/backend.py +5 -4
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/bias_correction/onnx_backend.py +4 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/bias_correction/openvino_backend.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/fast_bias_correction/algorithm.py +4 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/fast_bias_correction/backend.py +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/min_max/algorithm.py +4 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/min_max/backend.py +4 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/min_max/onnx_backend.py +14 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/min_max/openvino_backend.py +2 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/min_max/torch_backend.py +2 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/min_max/torch_fx_backend.py +2 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/algorithm.py +4 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/awq.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/config.py +37 -13
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/gptq.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/lora_correction.py +7 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/onnx_backend.py +14 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/openvino_backend.py +13 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/scale_estimation.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/weight_lowering.py +6 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/quantize_model.py +3 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/telemetry/decorator.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/definitions.py +4 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/numpy_io.py +11 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/openvino_numeric.py +4 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/__init__.py +0 -31
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/__init__.py +28 -13
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/rb/schedulers.py +1 -3
- {nncf-3.2.0/src/nncf/torch → nncf-3.3.0/src/nncf/torch/function_hook}/quantization/quantize_model.py +8 -10
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/statistics/aggregator.py +3 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/graph/graph.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/graph/operator_metatypes.py +3 -3
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/hardware/fused_patterns.py +3 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/layer_utils.py +0 -28
- nncf-3.3.0/src/nncf/torch/quantization/default_quantization.py +91 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/extensions.py +6 -5
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/ignored_patterns.py +23 -17
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/layers.py +6 -45
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/utils.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/version.py +1 -1
- {nncf-3.2.0 → nncf-3.3.0/src/nncf.egg-info}/PKG-INFO +2 -2
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf.egg-info/SOURCES.txt +0 -7
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf.egg-info/requires.txt +1 -1
- nncf-3.2.0/pyproject.toml +0 -211
- nncf-3.2.0/src/nncf/api/statistics.py +0 -29
- nncf-3.2.0/src/nncf/common/initialization/__init__.py +0 -13
- nncf-3.2.0/src/nncf/common/initialization/dataloader.py +0 -42
- nncf-3.2.0/src/nncf/common/quantization/statistics.py +0 -193
- nncf-3.2.0/src/nncf/common/utils/registry.py +0 -60
- nncf-3.2.0/src/nncf/torch/function_hook/quantization/quantize_model.py +0 -76
- nncf-3.2.0/src/nncf/torch/hardware/__init__.py +0 -10
- nncf-3.2.0/src/nncf/torch/initialization.py +0 -57
- nncf-3.2.0/src/nncf/torch/quantization/default_quantization.py +0 -92
- {nncf-3.2.0 → nncf-3.3.0}/LICENSE +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/MANIFEST.in +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/docs/PyPiPublishing.md +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/licensing/third-party-programs.txt +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/setup.cfg +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/custom_version.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/deprecation.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/engine.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/definitions.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/graph.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/graph_matching.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/layer_attributes.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/model_transformer.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/patterns/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/patterns/patterns.py +0 -0
- {nncf-3.2.0/src/nncf/api → nncf-3.3.0/src/nncf/common/graph/transformations}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/transformations/command_creation.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/transformations/layout.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/graph/utils.py +0 -0
- {nncf-3.2.0/src/nncf/common/graph/transformations → nncf-3.3.0/src/nncf/common/hardware}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/config.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/defines.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/opset.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/qspaces.py +0 -0
- {nncf-3.2.0/src/nncf/common/hardware → nncf-3.3.0/src/nncf/common/hardware/setups}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/setups/cpu.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/setups/gpu.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/hardware/setups/npu.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/logging/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/logging/logger.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/logging/track_progress.py +0 -0
- {nncf-3.2.0/src/nncf/common/hardware/setups → nncf-3.3.0/src/nncf/common/quantization}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/defaults.py +0 -0
- {nncf-3.2.0/src/nncf/common/quantization → nncf-3.3.0/src/nncf/common/quantization/initialization}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/common/quantization/initialization → nncf-3.3.0/src/nncf/common/quantization/quantizer_propagation}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_propagation/grouping.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_propagation/solver.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_propagation/structs.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_propagation/visualizer.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_removal.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizer_setup.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/quantizers.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/quantization/structs.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/scopes.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/strip.py +0 -0
- {nncf-3.2.0/src/nncf/common/quantization/quantizer_propagation → nncf-3.3.0/src/nncf/common/tensor_statistics}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/builders.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/statistical_functions.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/statistics_serializer.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/tensor_statistics/statistics_validator.py +0 -0
- {nncf-3.2.0/src/nncf/common/tensor_statistics → nncf-3.3.0/src/nncf/common/utils}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/caching.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/debug.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/decorators.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/dot_file_rw.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/helpers.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/logger/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/patcher.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/common/utils/timer.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/data/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/data/dataset.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/data/generators.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/definitions.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/errors.py +0 -0
- {nncf-3.2.0/src/nncf/common/utils → nncf-3.3.0/src/nncf/experimental}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/experimental → nncf-3.3.0/src/nncf/experimental/common}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/common → nncf-3.3.0/src/nncf/experimental/common/graph}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/common/graph/netron.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/common/graph → nncf-3.3.0/src/nncf/experimental/quantization}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/quantization → nncf-3.3.0/src/nncf/experimental/quantization/algorithms}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/quantization/algorithms → nncf-3.3.0/src/nncf/experimental/quantization/algorithms/post_training}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/quantization/algorithms/post_training/algorithm.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/quantization/algorithms/post_training/pipeline.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/quantization/algorithms/post_training → nncf-3.3.0/src/nncf/experimental/quantization/algorithms/range_estimator}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/quantization/algorithms/range_estimator/algorithm.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/quantization/algorithms/range_estimator → nncf-3.3.0/src/nncf/experimental/quantization/algorithms/weight_compression}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/quantization/algorithms/weight_compression/algorithm.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/quantization/algorithms/weight_compression/codebook_estimation.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/quantization/quantizer.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/quantization/algorithms/weight_compression → nncf-3.3.0/src/nncf/experimental/torch}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/commands.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/constant_folding.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/groups.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/model_transformer.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/model_utils.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/nncf_graph_builder.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/node_utils.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/torch → nncf-3.3.0/src/nncf/experimental/torch/fx/quantization}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/quantization/backend_parameters.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/quantization/quantize_model.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/quantization/quantize_pt2e.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/torch/fx/quantization → nncf-3.3.0/src/nncf/experimental/torch/fx/quantization/quantizer}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/quantization/quantizer/openvino_adapter.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/quantization/quantizer/torch_ao_adapter.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/torch/fx/quantization/quantizer → nncf-3.3.0/src/nncf/experimental/torch/fx/statistics}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/statistics/aggregator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/fx/transformations.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/torch/fx/statistics → nncf-3.3.0/src/nncf/experimental/torch/gptqmodel}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/gptqmodel/convertor.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/sparsify_activations/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/sparsify_activations/sparsify_activations_impl.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/sparsify_activations/target_scope.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/experimental/torch/sparsify_activations/torch_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/experimental/torch/gptqmodel → nncf-3.3.0/src/nncf/onnx/graph}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/onnx/graph → nncf-3.3.0/src/nncf/onnx/graph/metatypes}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/metatypes/groups.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/model_metadata.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/model_utils.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/nncf_graph_builder.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/node_utils.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/graph/passes.py +0 -0
- {nncf-3.2.0/src/nncf/onnx/graph/metatypes → nncf-3.3.0/src/nncf/onnx/graph/transformations}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/onnx/graph/transformations → nncf-3.3.0/src/nncf/onnx/hardware}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/hardware/config.py +0 -0
- {nncf-3.2.0/src/nncf/onnx/hardware → nncf-3.3.0/src/nncf/onnx/quantization}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/quantization/backend_parameters.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/quantization/default_quantization.py +0 -0
- {nncf-3.2.0/src/nncf/onnx/quantization → nncf-3.3.0/src/nncf/onnx/statistics}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/onnx/statistics/aggregator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/onnx/statistics → nncf-3.3.0/src/nncf/openvino/graph}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/layer_attributes.py +0 -0
- {nncf-3.2.0/src/nncf/openvino/graph → nncf-3.3.0/src/nncf/openvino/graph/metatypes}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/model_transformer.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/model_utils.py +0 -0
- {nncf-3.2.0/src/nncf/openvino/graph/metatypes → nncf-3.3.0/src/nncf/openvino/graph/transformations}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/graph/transformations/command_creation.py +0 -0
- {nncf-3.2.0/src/nncf/openvino/graph/transformations → nncf-3.3.0/src/nncf/openvino/hardware}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/hardware/config.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/optimized_functions/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/optimized_functions/functions.py +0 -0
- {nncf-3.2.0/src/nncf/openvino/hardware → nncf-3.3.0/src/nncf/openvino/quantization}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/quantization/quantize_ifmodel.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/quantization/quantize_model.py +0 -0
- {nncf-3.2.0/src/nncf/openvino/quantization → nncf-3.3.0/src/nncf/openvino/statistics}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/statistics/aggregator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/statistics/builders.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/openvino/statistics/collectors.py +0 -0
- {nncf-3.2.0/src/nncf/openvino/statistics → nncf-3.3.0/src/nncf/pruning}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/advanced_parameters.py +0 -0
- {nncf-3.2.0/src/nncf/pruning → nncf-3.3.0/src/nncf/quantization/algorithms}/__init__.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms → nncf-3.3.0/src/nncf/quantization/algorithms/accuracy_control}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/evaluator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/rank_functions.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/ranker.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/accuracy_control/subset_selection.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/accuracy_control → nncf-3.3.0/src/nncf/quantization/algorithms/bias_correction}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/bias_correction/torch_fx_backend.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/bias_correction → nncf-3.3.0/src/nncf/quantization/algorithms/channel_alignment}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/channel_alignment/algorithm.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/channel_alignment/backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/channel_alignment/openvino_backend.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/channel_alignment → nncf-3.3.0/src/nncf/quantization/algorithms/fast_bias_correction}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/fast_bias_correction/onnx_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/fast_bias_correction/openvino_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/fast_bias_correction/torch_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/fast_bias_correction/torch_fx_backend.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/fast_bias_correction → nncf-3.3.0/src/nncf/quantization/algorithms/hyperparameter_tuner}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/hyperparameter_tuner/algorithm.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/hyperparameter_tuner/param_grid.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/hyperparameter_tuner → nncf-3.3.0/src/nncf/quantization/algorithms/layerwise}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/layerwise/backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/layerwise/engine.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/layerwise/iterator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/layerwise/openvino_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/layerwise/openvino_iterator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/layerwise/scheduler.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/layerwise → nncf-3.3.0/src/nncf/quantization/algorithms/min_max}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/pipeline.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/min_max → nncf-3.3.0/src/nncf/quantization/algorithms/post_training}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/post_training/algorithm.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/post_training/pipeline.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/post_training → nncf-3.3.0/src/nncf/quantization/algorithms/smooth_quant}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/smooth_quant/algorithm.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/smooth_quant/backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/smooth_quant/onnx_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/smooth_quant/openvino_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/smooth_quant/torch_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/smooth_quant/torch_fx_backend.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/smooth_quant → nncf-3.3.0/src/nncf/quantization/algorithms/weight_compression}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/activation_stats.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/awq_patterns.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/constants.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/fp8_conversion.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/mixed_precision.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/parameters.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/torch_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/algorithms/weight_compression/torch_fx_backend.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/fake_quantize.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/passes.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/range_estimator.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/statistics_caching.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/quantization/telemetry_extractors.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/scopes.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/telemetry/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/telemetry/events.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/telemetry/extractors.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/telemetry/wrapper.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/dispatcher.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/io.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/linalg.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/numeric.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/numpy_linalg.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/numpy_numeric.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/torch_io.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/torch_linalg.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/functions/torch_numeric.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/tensor/tensor.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/engine.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/include/common_cpu_funcs.h +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/include/common_cuda_defs.cuh +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/include/common_cuda_funcs.cuh +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/include/common_defs.h +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/include/dispatch.h +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/include/quantization/functions_cuda_impl.h +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/src/common/cpu/tensor_funcs.cpp +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/src/quantization/cpu/functions_cpu.cpp +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/src/quantization/cuda/functions_cuda.cpp +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/extensions/src/quantization/cuda/functions_cuda_impl.cu +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/commands.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/extractor.py +0 -0
- {nncf-3.2.0/src/nncf/quantization/algorithms/weight_compression → nncf-3.3.0/src/nncf/torch/function_hook/graph}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/graph/build_graph_mode.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/graph/graph_utils.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/graph/graph_visualization.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/handle_inner_functions.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/hook_executor_mode.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/hook_storage.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/model_transformer.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/graph → nncf-3.3.0/src/nncf/torch/function_hook/nncf_graph}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/nncf_graph/layer_attributes.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/nncf_graph/nncf_graph_builder.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/nncf_graph → nncf-3.3.0/src/nncf/torch/function_hook/pruning}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/batch_norm_adaptation.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/pruning → nncf-3.3.0/src/nncf/torch/function_hook/pruning/magnitude}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/magnitude/algo.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/magnitude/modules.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/magnitude/schedulers.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/prune_model.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/pruning/magnitude → nncf-3.3.0/src/nncf/torch/function_hook/pruning/rb}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/rb/algo.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/rb/losses.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/rb/modules.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/scheduler_fns.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/pruning/statistics.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/pruning/rb → nncf-3.3.0/src/nncf/torch/function_hook/quantization}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/serialization.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/quantization → nncf-3.3.0/src/nncf/torch/function_hook/statistics}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/strip.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/weak_map.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/function_hook/wrapper.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/functions.py +0 -0
- {nncf-3.2.0/src/nncf/torch/function_hook/statistics → nncf-3.3.0/src/nncf/torch/graph}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/graph/pattern_operations.py +0 -0
- {nncf-3.2.0/src/nncf/torch/graph → nncf-3.3.0/src/nncf/torch/graph/transformations}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/graph/transformations/command_creation.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/graph/transformations/commands.py +0 -0
- {nncf-3.2.0/src/nncf/torch/graph/transformations → nncf-3.3.0/src/nncf/torch/hardware}/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/hardware/config.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/model_creation.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/model_graph_manager.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/node_utils.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/__init__.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/quantize_functions.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/reference.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/quantization/strip.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/return_types.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf/torch/strip.py +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf.egg-info/dependency_links.txt +0 -0
- {nncf-3.2.0 → nncf-3.3.0}/src/nncf.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nncf
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Summary: Neural Networks Compression Framework
|
|
5
5
|
Author: Intel
|
|
6
6
|
Author-email: maksim.proshin@intel.com
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: networkx
|
|
15
|
+
Requires-Dist: networkx<=3.6.1,>=2.6
|
|
16
16
|
Requires-Dist: ninja<1.14,>=1.10.0.post2
|
|
17
17
|
Requires-Dist: numpy<2.5.0,>=1.24.0
|
|
18
18
|
Requires-Dist: openvino-telemetry>=2023.2.0
|
|
@@ -279,9 +279,6 @@ A list of notebooks demonstrating OpenVINO conversion and inference together wit
|
|
|
279
279
|
|
|
280
280
|
| Demo Model | Compression Algorithm | Backend | Domain |
|
|
281
281
|
|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------:|:---------:|:--------------------------------------------------------------------:|
|
|
282
|
-
| [YOLOv8](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/yolov8-optimization)<br>[](https://colab.research.google.com/github/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/yolov8-optimization/yolov8-object-detection.ipynb) | Post-Training Quantization | OpenVINO | Object Detection,<br>KeyPoint Detection,<br>Instance Segmentation |
|
|
283
|
-
| [EfficientSAM](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/efficient-sam) | Post-Training Quantization | OpenVINO | Image Segmentation |
|
|
284
|
-
| [Segment Anything Model](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/segment-anything) | Post-Training Quantization | OpenVINO | Image Segmentation |
|
|
285
282
|
| [OneFormer](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/oneformer-segmentation) | Post-Training Quantization | OpenVINO | Image Segmentation |
|
|
286
283
|
| [CLIP](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/clip-zero-shot-image-classification) | Post-Training Quantization | OpenVINO | Image-to-Text |
|
|
287
284
|
| [BLIP](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/blip-visual-language-processing) | Post-Training Quantization | OpenVINO | Image-to-Text |
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "nncf"
|
|
7
|
+
description = "Neural Networks Compression Framework"
|
|
8
|
+
readme = "docs/PyPiPublishing.md"
|
|
9
|
+
license = "Apache-2.0"
|
|
10
|
+
authors = [{ name = "Intel" }, { email = "maksim.proshin@intel.com" }]
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dynamic = ["version"]
|
|
13
|
+
keywords = [
|
|
14
|
+
"bert",
|
|
15
|
+
"classification",
|
|
16
|
+
"compression",
|
|
17
|
+
"hawq",
|
|
18
|
+
"mixed-precision-training",
|
|
19
|
+
"mmdetection",
|
|
20
|
+
"nas",
|
|
21
|
+
"nlp",
|
|
22
|
+
"object-detection",
|
|
23
|
+
"pruning",
|
|
24
|
+
"quantization",
|
|
25
|
+
"quantization-aware-training",
|
|
26
|
+
"semantic-segmentation",
|
|
27
|
+
"sparsity",
|
|
28
|
+
"transformers",
|
|
29
|
+
]
|
|
30
|
+
classifiers = [
|
|
31
|
+
"Operating System :: OS Independent",
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
]
|
|
34
|
+
dependencies = [
|
|
35
|
+
"networkx>=2.6, <=3.6.1",
|
|
36
|
+
"ninja>=1.10.0.post2, <1.14",
|
|
37
|
+
"numpy>=1.24.0, <2.5.0",
|
|
38
|
+
"openvino-telemetry>=2023.2.0",
|
|
39
|
+
"packaging>=20.0",
|
|
40
|
+
"psutil",
|
|
41
|
+
"pydot>=1.4.1, <=3.0.4",
|
|
42
|
+
"rich>=13.5.2",
|
|
43
|
+
"safetensors>=0.4.1",
|
|
44
|
+
"scikit-learn>=0.24.0",
|
|
45
|
+
"scipy>=1.3.2",
|
|
46
|
+
"tabulate>=0.9.0",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[project.optional-dependencies]
|
|
50
|
+
plots = [
|
|
51
|
+
"kaleido>=0.2.1",
|
|
52
|
+
"matplotlib>=3.3.4",
|
|
53
|
+
"pandas>=1.1.5,<2.4",
|
|
54
|
+
"pillow>=9.0.0",
|
|
55
|
+
"plotly-express>=0.4.1",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
[project.urls]
|
|
59
|
+
Homepage = "https://github.com/openvinotoolkit/nncf"
|
|
60
|
+
|
|
61
|
+
[tool.uv]
|
|
62
|
+
extra-index-url = ["https://storage.openvinotoolkit.org/simple/wheels/nightly"]
|
|
63
|
+
prerelease = "allow"
|
|
64
|
+
index-strategy = "unsafe-best-match"
|
|
65
|
+
|
|
66
|
+
[tool.setuptools.dynamic]
|
|
67
|
+
version = { attr = "custom_version.version" }
|
|
68
|
+
|
|
69
|
+
[tool.setuptools.packages.find]
|
|
70
|
+
where = ["src"]
|
|
71
|
+
namespaces = false
|
|
72
|
+
|
|
73
|
+
[tool.md_dead_link_check]
|
|
74
|
+
exclude_files = ["ReleaseNotes.md"]
|
|
75
|
+
|
|
76
|
+
[tool.mypy]
|
|
77
|
+
follow_imports = "silent"
|
|
78
|
+
strict = true
|
|
79
|
+
files = ["src"]
|
|
80
|
+
exclude = [
|
|
81
|
+
"src/nncf/experimental/*",
|
|
82
|
+
"src/nncf/onnx/graph/metatypes/onnx_metatypes.py",
|
|
83
|
+
"src/nncf/onnx/graph/model_transformer.py",
|
|
84
|
+
"src/nncf/onnx/graph/model_utils.py",
|
|
85
|
+
"src/nncf/onnx/graph/nncf_graph_builder.py",
|
|
86
|
+
"src/nncf/onnx/graph/node_utils.py",
|
|
87
|
+
"src/nncf/onnx/graph/onnx_helper.py",
|
|
88
|
+
"src/nncf/onnx/graph/passes.py",
|
|
89
|
+
"src/nncf/onnx/graph/transformations/command_creation.py",
|
|
90
|
+
"src/nncf/onnx/graph/transformations/commands.py",
|
|
91
|
+
"src/nncf/onnx/quantization/backend_parameters.py",
|
|
92
|
+
"src/nncf/onnx/quantization/quantize_model.py",
|
|
93
|
+
"src/nncf/onnx/quantization/quantizer_parameters.py",
|
|
94
|
+
"src/nncf/onnx/statistics/aggregator.py",
|
|
95
|
+
"src/nncf/openvino/graph/layout.py",
|
|
96
|
+
"src/nncf/openvino/graph/metatypes/openvino_metatypes.py",
|
|
97
|
+
"src/nncf/openvino/graph/model_transformer.py",
|
|
98
|
+
"src/nncf/openvino/graph/nncf_graph_builder.py",
|
|
99
|
+
"src/nncf/openvino/graph/node_utils.py",
|
|
100
|
+
"src/nncf/openvino/graph/transformations/command_creation.py",
|
|
101
|
+
"src/nncf/openvino/optimized_functions/functions.py",
|
|
102
|
+
"src/nncf/openvino/optimized_functions/models.py",
|
|
103
|
+
"src/nncf/openvino/quantization/backend_parameters.py",
|
|
104
|
+
"src/nncf/openvino/quantization/default_quantization.py",
|
|
105
|
+
"src/nncf/openvino/quantization/quantize_ifmodel.py",
|
|
106
|
+
"src/nncf/openvino/quantization/quantize_model.py",
|
|
107
|
+
"src/nncf/openvino/statistics/aggregator.py",
|
|
108
|
+
"src/nncf/openvino/statistics/builders.py",
|
|
109
|
+
"src/nncf/openvino/statistics/collectors.py",
|
|
110
|
+
"src/nncf/quantization/algorithms/accuracy_control/algorithm.py",
|
|
111
|
+
"src/nncf/quantization/algorithms/accuracy_control/backend.py",
|
|
112
|
+
"src/nncf/quantization/algorithms/accuracy_control/evaluator.py",
|
|
113
|
+
"src/nncf/quantization/algorithms/accuracy_control/onnx_backend.py",
|
|
114
|
+
"src/nncf/quantization/algorithms/accuracy_control/openvino_backend.py",
|
|
115
|
+
"src/nncf/quantization/algorithms/accuracy_control/rank_functions.py",
|
|
116
|
+
"src/nncf/quantization/algorithms/accuracy_control/ranker.py",
|
|
117
|
+
"src/nncf/quantization/algorithms/accuracy_control/subset_selection.py",
|
|
118
|
+
"src/nncf/quantization/algorithms/bias_correction/algorithm.py",
|
|
119
|
+
"src/nncf/quantization/algorithms/bias_correction/onnx_backend.py",
|
|
120
|
+
"src/nncf/quantization/algorithms/bias_correction/openvino_backend.py",
|
|
121
|
+
"src/nncf/quantization/algorithms/bias_correction/torch_fx_backend.py",
|
|
122
|
+
"src/nncf/quantization/algorithms/channel_alignment/algorithm.py",
|
|
123
|
+
"src/nncf/quantization/algorithms/channel_alignment/backend.py",
|
|
124
|
+
"src/nncf/quantization/algorithms/channel_alignment/openvino_backend.py",
|
|
125
|
+
"src/nncf/quantization/algorithms/fast_bias_correction/algorithm.py",
|
|
126
|
+
"src/nncf/quantization/algorithms/fast_bias_correction/backend.py",
|
|
127
|
+
"src/nncf/quantization/algorithms/fast_bias_correction/onnx_backend.py",
|
|
128
|
+
"src/nncf/quantization/algorithms/fast_bias_correction/openvino_backend.py",
|
|
129
|
+
"src/nncf/quantization/algorithms/fast_bias_correction/torch_backend.py",
|
|
130
|
+
"src/nncf/quantization/algorithms/fast_bias_correction/torch_fx_backend.py",
|
|
131
|
+
"src/nncf/quantization/algorithms/hyperparameter_tuner/algorithm.py",
|
|
132
|
+
"src/nncf/quantization/algorithms/hyperparameter_tuner/param_grid.py",
|
|
133
|
+
"src/nncf/quantization/algorithms/layerwise/backend.py",
|
|
134
|
+
"src/nncf/quantization/algorithms/layerwise/engine.py",
|
|
135
|
+
"src/nncf/quantization/algorithms/layerwise/iterator.py",
|
|
136
|
+
"src/nncf/quantization/algorithms/layerwise/openvino_backend.py",
|
|
137
|
+
"src/nncf/quantization/algorithms/layerwise/openvino_iterator.py",
|
|
138
|
+
"src/nncf/quantization/algorithms/layerwise/scheduler.py",
|
|
139
|
+
"src/nncf/quantization/algorithms/min_max/algorithm.py",
|
|
140
|
+
"src/nncf/quantization/algorithms/min_max/backend.py",
|
|
141
|
+
"src/nncf/quantization/algorithms/min_max/onnx_backend.py",
|
|
142
|
+
"src/nncf/quantization/algorithms/min_max/openvino_backend.py",
|
|
143
|
+
"src/nncf/quantization/algorithms/min_max/torch_backend.py",
|
|
144
|
+
"src/nncf/quantization/algorithms/min_max/torch_fx_backend.py",
|
|
145
|
+
"src/nncf/quantization/algorithms/pipeline.py",
|
|
146
|
+
"src/nncf/quantization/algorithms/post_training/algorithm.py",
|
|
147
|
+
"src/nncf/quantization/algorithms/post_training/pipeline.py",
|
|
148
|
+
"src/nncf/quantization/algorithms/smooth_quant/algorithm.py",
|
|
149
|
+
"src/nncf/quantization/algorithms/smooth_quant/backend.py",
|
|
150
|
+
"src/nncf/quantization/algorithms/smooth_quant/onnx_backend.py",
|
|
151
|
+
"src/nncf/quantization/algorithms/smooth_quant/openvino_backend.py",
|
|
152
|
+
"src/nncf/quantization/algorithms/smooth_quant/torch_backend.py",
|
|
153
|
+
"src/nncf/quantization/algorithms/smooth_quant/torch_fx_backend.py",
|
|
154
|
+
"src/nncf/quantization/algorithms/weight_compression/activation_stats.py",
|
|
155
|
+
"src/nncf/quantization/algorithms/weight_compression/algorithm.py",
|
|
156
|
+
"src/nncf/quantization/algorithms/weight_compression/awq.py",
|
|
157
|
+
"src/nncf/quantization/algorithms/weight_compression/awq_patterns.py",
|
|
158
|
+
"src/nncf/quantization/algorithms/weight_compression/backend.py",
|
|
159
|
+
"src/nncf/quantization/algorithms/weight_compression/fp8_conversion.py",
|
|
160
|
+
"src/nncf/quantization/algorithms/weight_compression/gptq.py",
|
|
161
|
+
"src/nncf/quantization/algorithms/weight_compression/lora_correction.py",
|
|
162
|
+
"src/nncf/quantization/algorithms/weight_compression/mixed_precision.py",
|
|
163
|
+
"src/nncf/quantization/algorithms/weight_compression/onnx_backend.py",
|
|
164
|
+
"src/nncf/quantization/algorithms/weight_compression/openvino_backend.py",
|
|
165
|
+
"src/nncf/quantization/algorithms/weight_compression/parameters.py",
|
|
166
|
+
"src/nncf/quantization/algorithms/weight_compression/scale_estimation.py",
|
|
167
|
+
"src/nncf/quantization/algorithms/weight_compression/torch_backend.py",
|
|
168
|
+
"src/nncf/quantization/algorithms/weight_compression/torch_fx_backend.py",
|
|
169
|
+
"src/nncf/quantization/algorithms/weight_compression/weight_lowering.py",
|
|
170
|
+
"src/nncf/torch/__init__.py",
|
|
171
|
+
"src/nncf/torch/graph/operator_metatypes.py",
|
|
172
|
+
"src/nncf/torch/graph/transformations/commands.py",
|
|
173
|
+
"src/nncf/torch/initialization.py",
|
|
174
|
+
"src/nncf/torch/model_graph_manager.py",
|
|
175
|
+
"src/nncf/torch/quantization/layers.py",
|
|
176
|
+
"src/nncf/torch/quantization/quantize_functions.py",
|
|
177
|
+
"src/nncf/torch/quantization/reference.py",
|
|
178
|
+
"src/nncf/torch/quantization/strip.py",
|
|
179
|
+
"src/nncf/torch/return_types.py",
|
|
180
|
+
]
|
|
181
|
+
disable_error_code = ["import-untyped"]
|
|
182
|
+
|
|
183
|
+
[[tool.mypy.overrides]]
|
|
184
|
+
module = "nncf.tensor.functions.*"
|
|
185
|
+
disable_error_code = ["empty-body", "no-any-return"]
|
|
186
|
+
|
|
187
|
+
[[tool.mypy.overrides]]
|
|
188
|
+
module = ["transformers.*"]
|
|
189
|
+
ignore_missing_imports = true
|
|
190
|
+
|
|
191
|
+
[tool.ruff]
|
|
192
|
+
line-length = 120
|
|
193
|
+
exclude = ["src/nncf/torch/function_hook/handle_inner_functions.py"]
|
|
194
|
+
|
|
195
|
+
[tool.ruff.lint]
|
|
196
|
+
preview = true
|
|
197
|
+
ignore = [
|
|
198
|
+
"E203", # whitespace-before-punctuation
|
|
199
|
+
"E251", # unexpected-spaces-around-keyword-parameter-equals
|
|
200
|
+
"E731", # lambda-assignment
|
|
201
|
+
"SIM108", # if-else-block-instead-of-if-exp
|
|
202
|
+
"SIM110", # reimplemented-builtin
|
|
203
|
+
"SIM117", # multiple-with-statements
|
|
204
|
+
"SIM103", # needless-bool
|
|
205
|
+
"NPY002", # numpy-legacy-random
|
|
206
|
+
"UP035", # deprecated-import
|
|
207
|
+
"D100", # undocumented-public-module
|
|
208
|
+
"D101", # undocumented-public-class
|
|
209
|
+
"D102", # undocumented-public-method
|
|
210
|
+
"D103", # undocumented-public-function
|
|
211
|
+
"D104", # undocumented-public-package
|
|
212
|
+
"D105", # undocumented-magic-method
|
|
213
|
+
"D106", # undocumented-public-nested-class
|
|
214
|
+
"D107", # undocumented-public-init
|
|
215
|
+
"D200", # unnecessary-multiline-docstring
|
|
216
|
+
"D203", # incorrect-blank-line-before-class
|
|
217
|
+
"D205", # missing-blank-line-after-summary
|
|
218
|
+
"D212", # multi-line-summary-first-line
|
|
219
|
+
"D400", # missing-trailing-period
|
|
220
|
+
"D401", # non-imperative-mood
|
|
221
|
+
"D402", # signature-in-docstring
|
|
222
|
+
"D404", # docstring-starts-with-this
|
|
223
|
+
"D413", # missing-blank-line-after-last-section
|
|
224
|
+
"D415", # missing-terminal-punctuation
|
|
225
|
+
"D417", # undocumented-param
|
|
226
|
+
"PERF203", # try-except-in-loop
|
|
227
|
+
"PERF401", # manual-list-comprehension
|
|
228
|
+
"PERF403", # manual-dict-comprehension
|
|
229
|
+
"B905", # zip-without-explicit-strict
|
|
230
|
+
"RET502", # implicit-return-value
|
|
231
|
+
"RET503", # implicit-return
|
|
232
|
+
"RET504", # unnecessary-assign
|
|
233
|
+
"TD003", # todo-missing-issue
|
|
234
|
+
]
|
|
235
|
+
select = [
|
|
236
|
+
"CPY001", # copyright check
|
|
237
|
+
"D", # pydocstyle
|
|
238
|
+
"E", # pycodestyle rules
|
|
239
|
+
"EM", # flake8-errmsg
|
|
240
|
+
"F", # pyflakes rules
|
|
241
|
+
"I", # isort
|
|
242
|
+
"INP", # flake8-no-pep420
|
|
243
|
+
"ISC", # flake8-implicit-str-concat
|
|
244
|
+
"NPY", # numpy rules
|
|
245
|
+
"UP", # pyupgrade
|
|
246
|
+
"PERF", # perflint
|
|
247
|
+
"B", # flake8-bugbear
|
|
248
|
+
"RET", # flake8-return
|
|
249
|
+
"PTH", # flake8-use-pathlib
|
|
250
|
+
"TD", # flake8-todos
|
|
251
|
+
]
|
|
252
|
+
extend-select = [
|
|
253
|
+
"SIM", # https://pypi.org/project/flake8-simplify
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
[tool.ruff.lint.per-file-ignores]
|
|
257
|
+
"src/nncf/torch/__init__.py" = ["F401", "E402"]
|
|
258
|
+
"tests/**/*.py" = ["F403"]
|
|
259
|
+
"tests/**/__init__.py" = ["F401"]
|
|
260
|
+
"examples/**/*.py" = ["F403"]
|
|
261
|
+
"!src/nncf/**.py" = ["INP", "D", "B", "PTH"]
|
|
262
|
+
"*.ipynb" = ["CPY001"]
|
|
263
|
+
|
|
264
|
+
[tool.ruff.lint.flake8-copyright]
|
|
265
|
+
notice-rgx = """\
|
|
266
|
+
# Copyright \\(c\\) (202[6,7]) Intel Corporation
|
|
267
|
+
# Licensed under the Apache License, Version 2.0 \\(the "License"\\);
|
|
268
|
+
# you may not use this file except in compliance with the License.
|
|
269
|
+
# You may obtain a copy of the License at
|
|
270
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
271
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
272
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
273
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
274
|
+
# See the License for the specific language governing permissions and
|
|
275
|
+
# limitations under the License.
|
|
276
|
+
"""
|
|
277
|
+
|
|
278
|
+
[tool.ruff.lint.isort]
|
|
279
|
+
force-single-line = true
|
|
280
|
+
known-third-party = ["datasets"]
|
|
281
|
+
single-line-exclusions = ["typing"]
|
|
282
|
+
|
|
283
|
+
[tool.pytest.ini_options]
|
|
284
|
+
pythonpath = "."
|
|
285
|
+
|
|
286
|
+
[tool.bandit]
|
|
287
|
+
exclude_dirs = ["tools", "tests", "**/venv*", "build"]
|
|
288
|
+
skips = [
|
|
289
|
+
"B101", # assert_used
|
|
290
|
+
"B404", # import_subprocess
|
|
291
|
+
"B614", # pytorch_load
|
|
292
|
+
"B615", # huggingface_unsafe_download
|
|
293
|
+
]
|
|
@@ -39,7 +39,7 @@ def build_graph(model: TModel, *, example_input: Any = None) -> NNCFGraph:
|
|
|
39
39
|
"""
|
|
40
40
|
model_backend = get_backend(model)
|
|
41
41
|
if model_backend == BackendType.ONNX:
|
|
42
|
-
from onnx import ModelProto
|
|
42
|
+
from onnx import ModelProto
|
|
43
43
|
|
|
44
44
|
from nncf.onnx.graph.nncf_graph_builder import GraphConverter as ONNXGraphConverter
|
|
45
45
|
|
|
@@ -65,10 +65,10 @@ class OperatorMetatype:
|
|
|
65
65
|
return any(subtype.subtype_check(metatype) for subtype in subtypes)
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
TRegisterObject = TypeVar("TRegisterObject", bound=type[OperatorMetatype])
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
class OperatorMetatypeRegistry(Registry):
|
|
71
|
+
class OperatorMetatypeRegistry(Registry[str, type[OperatorMetatype]]):
|
|
72
72
|
"""
|
|
73
73
|
Operator Metatypes Registry.
|
|
74
74
|
"""
|
|
@@ -82,18 +82,19 @@ class OperatorMetatypeRegistry(Registry):
|
|
|
82
82
|
super().__init__(name)
|
|
83
83
|
self._op_name_to_op_meta_dict: dict[str, type[OperatorMetatype]] = {}
|
|
84
84
|
|
|
85
|
-
def register(
|
|
85
|
+
def register( # type: ignore[override]
|
|
86
|
+
self, name: str | None = None
|
|
87
|
+
) -> Callable[[TRegisterObject], TRegisterObject]:
|
|
86
88
|
"""
|
|
87
89
|
Decorator for registering operator metatypes.
|
|
88
90
|
|
|
89
91
|
:param name: The registration name.
|
|
90
|
-
:param is_subtype: Whether the decorated metatype is a subtype of another registered operator.
|
|
91
92
|
:return: The inner function for registering operator metatypes.
|
|
92
93
|
"""
|
|
93
94
|
name_ = name
|
|
94
95
|
super_register = super()._register
|
|
95
96
|
|
|
96
|
-
def wrap(obj:
|
|
97
|
+
def wrap(obj: TRegisterObject) -> TRegisterObject:
|
|
97
98
|
"""
|
|
98
99
|
Inner function for registering operator metatypes.
|
|
99
100
|
|
|
@@ -104,16 +105,16 @@ class OperatorMetatypeRegistry(Registry):
|
|
|
104
105
|
if cls_name is None:
|
|
105
106
|
cls_name = obj.__name__
|
|
106
107
|
super_register(obj, cls_name)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
op_names = obj.get_all_aliases()
|
|
109
|
+
for name in op_names:
|
|
110
|
+
if name in self._op_name_to_op_meta_dict and not obj.subtype_check(self._op_name_to_op_meta_dict[name]):
|
|
111
|
+
msg = (
|
|
112
|
+
"Inconsistent operator metatype registry - single patched "
|
|
113
|
+
f"op name `{name}` maps to multiple metatypes!"
|
|
114
|
+
)
|
|
115
|
+
raise nncf.InternalError(msg)
|
|
116
|
+
|
|
117
|
+
self._op_name_to_op_meta_dict[name] = obj
|
|
117
118
|
return obj
|
|
118
119
|
|
|
119
120
|
return wrap
|
|
@@ -130,10 +131,10 @@ class OperatorMetatypeRegistry(Registry):
|
|
|
130
131
|
return self._op_name_to_op_meta_dict[op_name]
|
|
131
132
|
|
|
132
133
|
|
|
133
|
-
NOOP_METATYPES = Registry("noop_metatypes")
|
|
134
|
-
INPUT_NOOP_METATYPES = Registry("input_noop_metatypes")
|
|
135
|
-
OUTPUT_NOOP_METATYPES = Registry("output_noop_metatypes")
|
|
136
|
-
CONST_NOOP_METATYPES = Registry("const_noop_metatypes")
|
|
134
|
+
NOOP_METATYPES = Registry[str, type[OperatorMetatype]]("noop_metatypes")
|
|
135
|
+
INPUT_NOOP_METATYPES = Registry[str, type[OperatorMetatype]]("input_noop_metatypes")
|
|
136
|
+
OUTPUT_NOOP_METATYPES = Registry[str, type[OperatorMetatype]]("output_noop_metatypes")
|
|
137
|
+
CONST_NOOP_METATYPES = Registry[str, type[OperatorMetatype]]("const_noop_metatypes")
|
|
137
138
|
|
|
138
139
|
|
|
139
140
|
class UnknownMetatype(OperatorMetatype):
|
|
@@ -34,24 +34,18 @@ class PatternsManager:
|
|
|
34
34
|
:param backend: BackendType instance.
|
|
35
35
|
:return: Dictionary with the HWFusedPatternNames instance as keys and creator function as a value.
|
|
36
36
|
"""
|
|
37
|
-
registry: dict[HWFusedPatternNames, Callable[[], GraphPattern]] = {}
|
|
38
37
|
if backend == BackendType.ONNX:
|
|
39
38
|
from nncf.onnx.hardware.fused_patterns import ONNX_HW_FUSED_PATTERNS
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
return registry
|
|
40
|
+
return ONNX_HW_FUSED_PATTERNS.registry_dict
|
|
43
41
|
if backend == BackendType.OPENVINO:
|
|
44
42
|
from nncf.openvino.hardware.fused_patterns import OPENVINO_HW_FUSED_PATTERNS
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
dict[HWFusedPatternNames, Callable[[], GraphPattern]], OPENVINO_HW_FUSED_PATTERNS.registry_dict
|
|
48
|
-
)
|
|
49
|
-
return registry
|
|
44
|
+
return OPENVINO_HW_FUSED_PATTERNS.registry_dict
|
|
50
45
|
if backend in (BackendType.TORCH, BackendType.TORCH_FX):
|
|
51
46
|
from nncf.torch.hardware.fused_patterns import PT_HW_FUSED_PATTERNS
|
|
52
47
|
|
|
53
|
-
|
|
54
|
-
return registry
|
|
48
|
+
return PT_HW_FUSED_PATTERNS.registry_dict
|
|
55
49
|
msg = f"Hardware-fused patterns not implemented for {backend} backend."
|
|
56
50
|
raise ValueError(msg)
|
|
57
51
|
|
|
@@ -65,24 +59,18 @@ class PatternsManager:
|
|
|
65
59
|
:param backend: BackendType instance.
|
|
66
60
|
:return: Dictionary with the HWFusedPatternNames instance as keys and creator function as a value.
|
|
67
61
|
"""
|
|
68
|
-
registry: dict[IgnoredPatternNames, Callable[[], GraphPattern]] = {}
|
|
69
62
|
if backend == BackendType.ONNX:
|
|
70
63
|
from nncf.onnx.quantization.ignored_patterns import ONNX_IGNORED_PATTERNS
|
|
71
64
|
|
|
72
|
-
|
|
73
|
-
return registry
|
|
65
|
+
return ONNX_IGNORED_PATTERNS.registry_dict
|
|
74
66
|
if backend == BackendType.OPENVINO:
|
|
75
67
|
from nncf.openvino.quantization.ignored_patterns import OPENVINO_IGNORED_PATTERNS
|
|
76
68
|
|
|
77
|
-
|
|
78
|
-
dict[IgnoredPatternNames, Callable[[], GraphPattern]], OPENVINO_IGNORED_PATTERNS.registry_dict
|
|
79
|
-
)
|
|
80
|
-
return registry
|
|
69
|
+
return OPENVINO_IGNORED_PATTERNS.registry_dict
|
|
81
70
|
if backend in (BackendType.TORCH, BackendType.TORCH_FX):
|
|
82
71
|
from nncf.torch.quantization.ignored_patterns import PT_IGNORED_PATTERNS
|
|
83
72
|
|
|
84
|
-
|
|
85
|
-
return registry
|
|
73
|
+
return PT_IGNORED_PATTERNS.registry_dict
|
|
86
74
|
msg = f"Ignored patterns not implemented for {backend} backend."
|
|
87
75
|
raise ValueError(msg)
|
|
88
76
|
|
|
@@ -139,7 +139,7 @@ class TargetPoint:
|
|
|
139
139
|
def type(self) -> TargetType:
|
|
140
140
|
return self._target_type
|
|
141
141
|
|
|
142
|
-
def __eq__(self, other:
|
|
142
|
+
def __eq__(self, other: object) -> bool:
|
|
143
143
|
return isinstance(other, TargetPoint) and self.type == other.type
|
|
144
144
|
|
|
145
145
|
def __str__(self) -> str:
|
|
@@ -70,8 +70,8 @@ class InsertionPointGraph(nx.MultiDiGraph): # type: ignore
|
|
|
70
70
|
def __init__(
|
|
71
71
|
self,
|
|
72
72
|
nncf_graph: NNCFGraph,
|
|
73
|
-
allowed_pre_hook_insertion_points: list[PreHookInsertionPoint] = None,
|
|
74
|
-
allowed_post_hook_insertion_points: list[PostHookInsertionPoint] = None,
|
|
73
|
+
allowed_pre_hook_insertion_points: list[PreHookInsertionPoint] | None = None,
|
|
74
|
+
allowed_post_hook_insertion_points: list[PostHookInsertionPoint] | None = None,
|
|
75
75
|
):
|
|
76
76
|
"""
|
|
77
77
|
Initializes the insertion point graph.
|
|
@@ -55,7 +55,7 @@ def get_scoped_quantizer_config(
|
|
|
55
55
|
def assign_qconfig_lists_to_modules(
|
|
56
56
|
nodes_with_weights: list[NNCFNode],
|
|
57
57
|
default_weight_qconfig: QuantizerConfig,
|
|
58
|
-
global_weight_constraints: QuantizationConstraints = None,
|
|
58
|
+
global_weight_constraints: QuantizationConstraints | None = None,
|
|
59
59
|
scope_overrides_dict: dict[str, Any] | None = None,
|
|
60
60
|
hw_config: HWConfig | None = None,
|
|
61
61
|
) -> dict[NNCFNode, list[QuantizerConfig]]:
|
|
@@ -36,7 +36,7 @@ class RangeInitCollectorParams:
|
|
|
36
36
|
@property
|
|
37
37
|
def is_weights(self) -> bool:
|
|
38
38
|
"""
|
|
39
|
-
|
|
39
|
+
Defines tensor type.
|
|
40
40
|
True for Weights, False for Activations.
|
|
41
41
|
"""
|
|
42
42
|
return self._is_weights
|
|
@@ -44,14 +44,14 @@ class RangeInitCollectorParams:
|
|
|
44
44
|
@property
|
|
45
45
|
def scheme(self) -> QuantizationScheme:
|
|
46
46
|
"""
|
|
47
|
-
|
|
47
|
+
Quantization scheme: symmetric or asymmetric.
|
|
48
48
|
"""
|
|
49
49
|
return self._scheme
|
|
50
50
|
|
|
51
51
|
@property
|
|
52
52
|
def is_per_channel(self) -> bool:
|
|
53
53
|
"""
|
|
54
|
-
|
|
54
|
+
Quantization granularity.
|
|
55
55
|
"""
|
|
56
56
|
return self._is_per_channel
|
|
57
57
|
|
|
@@ -85,7 +85,7 @@ class RangeInitCollectorParams:
|
|
|
85
85
|
aggregation_axes: tuple[int, ...] | list[int],
|
|
86
86
|
) -> tuple[int, ...]:
|
|
87
87
|
"""
|
|
88
|
-
|
|
88
|
+
Axes for a reducer regarding aggregation axes. As aggregator takes axes counting from stacked tensors,
|
|
89
89
|
from these axes only tensor related axes should be used for reducer.
|
|
90
90
|
|
|
91
91
|
:param shape_to_reduce: Shape of a reduced tensor.
|
|
@@ -99,7 +99,7 @@ class RangeInitCollectorParams:
|
|
|
99
99
|
|
|
100
100
|
def _get_aggregation_axes(self, batchwise_statistics: bool) -> tuple[int, ...]:
|
|
101
101
|
"""
|
|
102
|
-
|
|
102
|
+
Axes for aggregator.
|
|
103
103
|
|
|
104
104
|
:param batchwise_statistics: Determines whether quantizer statistics should be calculated
|
|
105
105
|
for each item of the batch or for the entire batch.
|
|
@@ -77,7 +77,7 @@ class QuantizerPropagationStateGraph(nx.DiGraph): # type: ignore[misc]
|
|
|
77
77
|
self,
|
|
78
78
|
ip_graph: InsertionPointGraph,
|
|
79
79
|
ignored_scopes: dict[str, IgnoreReason] | None = None,
|
|
80
|
-
target_scopes: list[str] = None,
|
|
80
|
+
target_scopes: list[str] | None = None,
|
|
81
81
|
):
|
|
82
82
|
super().__init__()
|
|
83
83
|
ip_graph = deepcopy(ip_graph)
|
|
@@ -26,7 +26,7 @@ class StatefulClassesRegistry:
|
|
|
26
26
|
self._name_vs_class_map: dict[str, type] = {}
|
|
27
27
|
self._class_vs_name_map: dict[type, str] = {}
|
|
28
28
|
|
|
29
|
-
def register(self, name: str = None) -> Callable[[TObj], TObj]:
|
|
29
|
+
def register(self, name: str | None = None) -> Callable[[TObj], TObj]:
|
|
30
30
|
"""
|
|
31
31
|
Decorator to map class with some name - specified in the argument or name of the class.
|
|
32
32
|
|
|
@@ -90,7 +90,7 @@ class CommonStatefulClassesRegistry:
|
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
92
|
@staticmethod
|
|
93
|
-
def register(name: str = None) -> Callable[[TObj], TObj]:
|
|
93
|
+
def register(name: str | None = None) -> Callable[[TObj], TObj]:
|
|
94
94
|
"""
|
|
95
95
|
Decorator to map class with some name - specified in the argument or name of the class.
|
|
96
96
|
|
|
@@ -47,7 +47,7 @@ class StatisticsAggregator(ABC):
|
|
|
47
47
|
|
|
48
48
|
def __init__(self, dataset: Dataset):
|
|
49
49
|
self.dataset = dataset
|
|
50
|
-
self.stat_subset_size = None
|
|
50
|
+
self.stat_subset_size: int | None = None
|
|
51
51
|
self.statistic_points = StatisticPointsContainer()
|
|
52
52
|
|
|
53
53
|
def _get_iterations_number(self) -> int | None:
|
|
@@ -928,9 +928,13 @@ class HAWQAggregator(AggregatorBase):
|
|
|
928
928
|
|
|
929
929
|
def _register_reduced_input_impl(self, x: Tensor) -> None:
|
|
930
930
|
trace = fns.sum(fns.multiply(x, x))
|
|
931
|
-
#
|
|
932
|
-
#
|
|
933
|
-
self._container
|
|
931
|
+
# We normalize the trace by the number of elements in the tensor so that larger matrices do not dominate
|
|
932
|
+
# the sensitivity scores
|
|
933
|
+
self._container += trace / x.size
|
|
934
|
+
|
|
935
|
+
def reset(self) -> None:
|
|
936
|
+
self._collected_samples = 0
|
|
937
|
+
self._container = Tensor(0.0)
|
|
934
938
|
|
|
935
939
|
def _aggregate_impl(self) -> Tensor:
|
|
936
940
|
return self._container * 2 / self._collected_samples
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# limitations under the License.
|
|
11
11
|
|
|
12
12
|
from collections import UserDict
|
|
13
|
-
from typing import
|
|
13
|
+
from typing import Callable, Generator
|
|
14
14
|
|
|
15
15
|
from nncf.common.graph.transformations.commands import TargetPoint
|
|
16
16
|
from nncf.common.tensor_statistics.collectors import TensorCollector
|
|
@@ -28,15 +28,17 @@ class StatisticPoint:
|
|
|
28
28
|
self.target_point = target_point
|
|
29
29
|
self.algorithm_to_tensor_collectors = {algorithm: [tensor_collector]}
|
|
30
30
|
|
|
31
|
-
def __eq__(self, other:
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
def __eq__(self, other: object) -> bool:
|
|
32
|
+
if not isinstance(other, StatisticPoint):
|
|
33
|
+
raise NotImplementedError
|
|
34
|
+
|
|
35
|
+
return (
|
|
34
36
|
self.target_point == other.target_point
|
|
35
|
-
and self.algorithm_to_tensor_collectors == other.
|
|
37
|
+
and self.algorithm_to_tensor_collectors == other.algorithm_to_tensor_collectors
|
|
36
38
|
)
|
|
37
39
|
|
|
38
40
|
|
|
39
|
-
class StatisticPointsContainer(UserDict):
|
|
41
|
+
class StatisticPointsContainer(UserDict[str, list[StatisticPoint]]):
|
|
40
42
|
"""
|
|
41
43
|
Container with iteration interface for handling a composition of StatisticPoint.
|
|
42
44
|
"""
|