Skip to content

Commit

Permalink
[intel-npu] Additional documentation for NPU_MAX_TILES property's usa… (
Browse files Browse the repository at this point in the history
  • Loading branch information
kblaszczak-intel and csoka authored Sep 5, 2024
1 parent 4127181 commit 485431f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
#############################
Expand Down
13 changes: 13 additions & 0 deletions src/plugins/intel_npu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 485431f

Please sign in to comment.