Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[intel-npu] Additional documentation for NPU_MAX_TILES property's usa… (#26435)

Karol Blaszczak485431fba14a
diff --git a/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.rst b/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.rst
index 5ab52f70b15..d9f5e25c332 100644
--- a/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.rst
+++ b/docs/articles_en/openvino-workflow/running-inference/inference-devices-and-modes/npu-device.rst
@@ -246,6 +246,21 @@ or
core.compile_model(ov_model, "NPU", {ov::intel_npu::turbo(true)});
+**ov::intel_npu::max_tiles and ov::intel_npu::tiles**
+
+the ``max_tiles`` property is read-write to enable compiling models off-device.
+When on NPU, ``max_tiles`` will return the number of tiles the device has.
+Setting the number of tiles to compile for (via ``intel_npu::tiles``), when on device,
+must be preceded by reading ``intel_npu::max_tiles`` first, to make sure that
+``ov::intel_npu::tiles`` <= ``ov::intel_npu::max_tiles``
+to avoid exceptions from the compiler.
+
+.. note::
+
+ ``ov::intel_npu::tiles`` overrides the default number of tiles selected by the compiler based on performance hints
+ (``ov::hint::performance_mode``).
+ Any tile number other than 1 may be a problem for cross platform compatibility,
+ if not tested explicitly versus the max_tiles value.
Limitations
#############################
diff --git a/src/plugins/intel_npu/README.md b/src/plugins/intel_npu/README.md
index 7ec91eda4bf..5fc880314da 100644
--- a/src/plugins/intel_npu/README.md
+++ b/src/plugins/intel_npu/README.md
@@ -236,6 +236,19 @@ Supported values:
compile_model(model, config);
```
+### ov::intel_npu::max_tiles and ov::intel_npu::tiles
+
+The max_tiles property is read-write to enable compiling models off-device.
+When on NPU, max_tiles will return the number of tiles the device has.
+Setting the number of tiles to compile for (via intel_npu::tiles), when on device,
+must be preceded by reading intel_npu::max_tiles first, to make sure that
+``ov::intel_npu::tiles`` <= ``ov::intel_npu::max_tiles``
+to avoid exceptions from the compiler.
+
+ Note that ``ov::intel_npu::tiles`` overrides the default number of tiles selected by the compiler based on performance hints
+ (``ov::hint::performance_mode``).
+ Any tile number other than 1 may be a problem for cross platform compatibility,
+ if not tested explicitly versus the max_tiles value.
&nbsp;
## Stateful models