-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/openvinotoolkit/openvino …
…into at/npuw-extend-transpose-value-tensors-pass
- Loading branch information
Showing
50 changed files
with
1,448 additions
and
1,694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,645 changes: 13 additions & 1,632 deletions
1,645
docs/articles_en/about-openvino/release-notes-openvino.rst
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
Legacy Features and Components | ||
============================== | ||
|
||
.. meta:: | ||
:description: A list of deprecated OpenVINO™ components. | ||
|
||
Since OpenVINO has grown very rapidly in recent years, a number of its features | ||
and components have been replaced by other solutions. Some of them are still | ||
supported to assure OpenVINO users are given enough time to adjust their projects, | ||
before the features are fully discontinued. | ||
|
||
This section will give you an overview of these major changes and tell you how | ||
you can proceed to get the best experience and results with the current OpenVINO | ||
offering. | ||
|
||
|
||
Discontinued: | ||
############# | ||
|
||
.. dropdown:: OpenVINO Development Tools Package | ||
|
||
| *New solution:* OpenVINO Runtime includes all supported components | ||
| *Old solution:* `See how to install Development Tools <https://docs.openvino.ai/2024/documentation/legacy-features/install-dev-tools.html>`__ | ||
| | ||
| OpenVINO Development Tools used to be the OpenVINO package with tools for | ||
advanced operations on models, such as Model conversion API, Benchmark Tool, | ||
Accuracy Checker, Annotation Converter, Post-Training Optimization Tool, | ||
and Open Model Zoo tools. Most of these tools have been either removed, | ||
replaced by other solutions, or moved to the OpenVINO Runtime package. | ||
.. dropdown:: Model Optimizer / Conversion API | ||
|
||
| *New solution:* :doc:`Direct model support and OpenVINO Converter (OVC) <../openvino-workflow/model-preparation>` | ||
| *Old solution:* `Legacy Conversion API <https://docs.openvino.ai/2024/documentation/legacy-features/transition-legacy-conversion-api.html>`__ | ||
| | ||
| The role of Model Optimizer and later the Conversion API was largely reduced | ||
when all major model frameworks became supported directly. For converting model | ||
files explicitly, it has been replaced with a more light-weight and efficient | ||
solution, the OpenVINO Converter (launched with OpenVINO 2023.1). | ||
.. dropdown:: Open Model ZOO | ||
|
||
| *New solution:* users are encouraged to use public model repositories such as `Hugging Face <https://huggingface.co/OpenVINO>`__ | ||
| *Old solution:* `Open Model ZOO <https://docs.openvino.ai/2024/documentation/legacy-features/model-zoo.html>`__ | ||
| | ||
| Open Model ZOO provided a collection of models prepared for use with OpenVINO, | ||
and a small set of tools enabling a level of automation for the process. | ||
Since the tools have been mostly replaced by other solutions and several | ||
other model repositories have recently grown in size and popularity, | ||
Open Model ZOO will no longer be maintained. You may still use its resources | ||
until they are fully removed. `Check the OMZ GitHub project <https://github.com/openvinotoolkit/open_model_zoo>`__ | ||
.. dropdown:: Multi-Device Execution | ||
|
||
| *New solution:* :doc:`Automatic Device Selection <../openvino-workflow/running-inference/inference-devices-and-modes/auto-device-selection>` | ||
| *Old solution:* `Check the legacy solution <https://docs.openvino.ai/2024/documentation/legacy-features/multi-device.html>`__ | ||
| | ||
| The behavior and results of the Multi-Device Execution mode are covered by the ``CUMULATIVE_THROUGHPUT`` | ||
option of the Automatic Device Selection. The only difference is that ``CUMULATIVE_THROUGHPUT`` uses | ||
the devices specified by AUTO, which means that adding devices manually is not mandatory, | ||
while with MULTI, the devices had to be specified before the inference. | ||
.. dropdown:: Caffe, and Kaldi model formats | ||
|
||
| *New solution:* conversion to ONNX via external tools | ||
| *Old solution:* model support discontinued with OpenVINO 2024.0 | ||
| `The last version supporting Apache MXNet, Caffe, and Kaldi model formats <https://docs.openvino.ai/2023.3/mxnet_caffe_kaldi.html>`__ | ||
| :doc:`See the currently supported frameworks <../openvino-workflow/model-preparation>` | ||
.. dropdown:: Post-training Optimization Tool (POT) | ||
|
||
| *New solution:* Neural Network Compression Framework (NNCF) now offers the same functionality | ||
| *Old solution:* POT discontinued with OpenVINO 2024.0 | ||
| :doc:`See how to use NNCF for model optimization <../openvino-workflow/model-optimization>` | ||
| `Check the NNCF GitHub project, including documentation <https://github.com/openvinotoolkit/nncf>`__ | ||
.. dropdown:: Inference API 1.0 | ||
|
||
| *New solution:* API 2.0 launched in OpenVINO 2022.1 | ||
| *Old solution:* discontinued with OpenVINO 2024.0 | ||
| `2023.2 is the last version supporting API 1.0 <https://docs.openvino.ai/archives/index.html#:~:text=2023.2,Release%20Notes>`__ | ||
.. dropdown:: Compile tool | ||
|
||
| *New solution:* the tool is no longer needed | ||
| *Old solution:* discontinued with OpenVINO 2023.0 | ||
| If you need to compile a model for inference on a specific device, use the following script: | ||
.. tab-set:: | ||
|
||
.. tab-item:: Python | ||
:sync: py | ||
|
||
.. doxygensnippet:: docs/articles_en/assets/snippets/export_compiled_model.py | ||
:language: python | ||
:fragment: [export_compiled_model] | ||
|
||
.. tab-item:: C++ | ||
:sync: cpp | ||
|
||
.. doxygensnippet:: docs/articles_en/assets/snippets/export_compiled_model.cpp | ||
:language: cpp | ||
:fragment: [export_compiled_model] | ||
|
||
.. dropdown:: TensorFlow integration (OVTF) | ||
|
||
| *New solution:* Direct model support and OpenVINO Converter (OVC) | ||
| *Old solution:* discontinued in OpenVINO 2023.0 | ||
| | ||
| OpenVINO now features a native TensorFlow support, with no need for explicit model | ||
conversion. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
docs/articles_en/openvino-workflow/model-preparation/convert-model-keras.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
Converting a Keras Model | ||
======================== | ||
|
||
|
||
.. meta:: | ||
:description: Learn how to convert a model from the | ||
Keras format to the OpenVINO Model. | ||
|
||
|
||
This document explains the process of converting Keras 3 models to the OpenVINO Intermediate Representation (IR) format. | ||
For instructions on converting Keras 2 models, refer to :doc:`TensorFlow Model Conversion <convert-model-tensorflow>`. | ||
|
||
To convert a Keras 3 model, first export it to a lightweight TensorFlow SavedModel artifact, | ||
and then convert it to an OpenVINO model, using the ``convert_model`` function. | ||
Here is a code example of how to do this: | ||
|
||
.. code-block:: py | ||
:force: | ||
import keras_hub | ||
import openvino as ov | ||
model = keras_hub.models.BertTextClassifier.from_preset( | ||
"bert_base_en_uncased", | ||
num_classes=4, | ||
preprocessor=None, | ||
) | ||
# export to SavedModel | ||
model.export("bert_base") | ||
# convert to OpenVINO model | ||
ov_model = ov.convert_model("bert_base") | ||
.. note:: | ||
|
||
The resulting OpenVINO IR model can be saved to drive with no additional, Keras-specific steps. | ||
Use the standard ``ov.save_model(ov_model,'model.xml')`` command. | ||
|
||
Alternatively, a model exported to TensorFlow SavedModel format can also be converted to OpenVINO IR using the ``ovc`` tool. Here is an example: | ||
|
||
.. code-block:: sh | ||
:force: | ||
ovc bert_base | ||
Run inference in Keras 3 with the OpenVINO backend | ||
################################################## | ||
|
||
Starting with release 3.8, Keras provides native integration with the OpenVINO backend for accelerated inference. | ||
This integration enables you to leverage OpenVINO performance optimizations directly within the Keras workflow, enabling faster inference on OpenVINO supported hardware. | ||
|
||
To switch to the OpenVINO backend in Keras 3, set the ``KERAS_BACKEND`` environment variable to ``"openvino"`` | ||
or specify the backend in the local configuration file at ``~/.keras/keras.json``. | ||
Here is an example of how to infer a model (trained with PyTorch, JAX, or TensorFlow backends) in Keras 3, using the OpenVINO backend: | ||
|
||
.. code-block:: py | ||
:force: | ||
import os | ||
os.environ["KERAS_BACKEND"] = "openvino" | ||
import numpy as np | ||
import keras | ||
import keras_hub | ||
features = { | ||
"token_ids": np.ones(shape=(2, 12), dtype="int32"), | ||
"segment_ids": np.array([[0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0]] * 2), | ||
"padding_mask": np.array([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0]] * 2), | ||
} | ||
# take a model from KerasHub | ||
bert = keras_hub.models.BertTextClassifier.from_preset( | ||
"bert_base_en_uncased", | ||
num_classes=4, | ||
preprocessor=None, | ||
) | ||
predictions = bert.predict(features) | ||
.. note:: | ||
|
||
The OpenVINO backend may currently lack support for some operations. | ||
This will be addressed in upcoming Keras releases as operation coverage is being expanded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+54 Bytes
(100%)
docs/sphinx_setup/_static/download/GenAI_Quick_Start_Guide.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/bindings/python/src/openvino/properties/intel_npu/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2018-2025 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Properties | ||
import openvino._pyopenvino.properties.intel_npu as __intel_npu | ||
from openvino.properties._properties import __make_properties | ||
|
||
__make_properties(__intel_npu, __name__) |
Oops, something went wrong.