openvino/tools/pot
Jan Iwaszkiewicz 583939b828
[PyOV] Aliases and namespace redesign (#18157)
* Remove inits, update main one

* Fix stacklevel

* Testing wrong solution

* Testing test test

* Fix test test test test

* mo modules mo problems

* Xfail test that check stdout/err?

* not so correct solution to circular imports

* Fix or not to fix

* CMake magic, co-authors: my best team

* Fix package imports

* Fix tools inits

* Fix ovc tf

* Fix Q000

* Fix F401

* Fix linters

* Add save_model

* Remove LayoutMap

* Move test_utils to 'internal modules'

* First testing

* Missing Type

* Expand main namespace

* Change some more tests

* Add OVAny to namespace

* Add Constant and Parameter to namespace

* More tests changes

* Fix inits

* Add layout_helpers to main namespace

* Revert CMake and linux.yml with ovc

* Update main inits

* Remove MO from tools inits

* changes to init files

* Fix tests

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2023-07-28 11:52:21 +04:00
..
compression POT is depricated (#16758) 2023-04-24 09:37:57 +04:00
configs DOCS Update optimization docs with NNCF PTQ changes and deprecation of POT (#17398) 2023-05-19 14:36:22 +00:00
docs [DOCS] Code block update for master (#18437) 2023-07-11 10:43:54 +02:00
openvino [PyOV] Aliases and namespace redesign (#18157) 2023-07-28 11:52:21 +04:00
tests remove quantization config for vpu (#17507) 2023-06-05 13:14:48 +03:00
tools Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
.gitignore Includes in frontends (#9378) 2021-12-23 11:37:06 +03:00
.pylintrc Moved Post-training Optimization Tool to open-source (#7940) 2021-10-15 16:35:35 +03:00
CODEOWNERS Moved Post-training Optimization Tool to open-source (#7940) 2021-10-15 16:35:35 +03:00
README.md [DOCS] Link adjustment for dev docs + fix to build.md CPU link for master (#17744) 2023-05-31 13:27:20 +04:00
README_dev.md [DOCS] `convert_model()` as a default conversion path (#17454) 2023-05-31 17:53:22 +02:00
__init__.py Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
main.py Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
requirements.txt Moved Post-training Optimization Tool to open-source (#7940) 2021-10-15 16:35:35 +03:00
setup.py Restrict scipy module version for POT (#18237) 2023-06-27 12:59:45 +02:00

README.md

Post-Training Optimization Tool

Introduction

Post-training Optimization Tool (POT) is designed to accelerate the inference of deep learning models by applying special methods without model retraining or fine-tuning, for example, post-training 8-bit quantization. Therefore, the tool does not require a training dataset or a pipeline. To apply post-training algorithms from the POT, you need:

  • A floating-point precision model, FP32 or FP16, converted into the OpenVINO™ Intermediate Representation (IR) format and run on CPU with the OpenVINO™.
  • A representative calibration dataset representing a use case scenario, for example, 300 samples.

Figure below shows the optimization workflow:

To get started with POT tool refer to the corresponding OpenVINO™ documentation.

Installation

From PyPI

POT is distributed as a part of OpenVINO™ Development Tools package. For installation instruction please refer to this document.

From GitHub

As prerequisites, you should install OpenVINO™ Runtime and other dependencies such as Model Optimizer and Accuracy Checker.

To install POT from source:

  • Clone OpenVINO repository
    git clone --recusive https://github.com/openvinotoolkit/openvino.git
    
  • Navigate to openvino/tools/pot/ folder
  • Install POT package:
    python3 setup.py install
    

After installation POT is available as a Python library under openvino.tools.pot.* and in the command line by the pot alias. To verify it, run pot -h.

Examples

OpenVINO provides several examples to demonstrate the POT optimization workflow:

See Also