Skip to content

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

[intel-npu] Removing NPU_DPU_GROUPS private property (#30377)

Attila Csok03ed89ef6a0a
diff --git a/src/plugins/intel_npu/README.md b/src/plugins/intel_npu/README.md
index e39e7833435..bd7aaf920d7 100644
--- a/src/plugins/intel_npu/README.md
+++ b/src/plugins/intel_npu/README.md
@@ -118,7 +118,7 @@ Once the inference request is created and input/output tensors are prepared for
inferRequest.wait(); // optional, in case user callback is not provided
```
-Multiple inferences can be executed in parallel, either from the same application thread through the use of asynchronous methods or from multiple threads with any of the available methods (synchronous or asynchronous). There is an optimal number of inference requests to be executed in parallel that would yield the best throughput without impacting the latency observed for each inference. This optimal number of requests is different for each model and depends on the ratio between the duration of the model execution on the DPU HW and the rest of the latency required to pass the request through the entire software stack. The NPU plugin returns the optimal number of inference requests through a dedicated property (`ov::optimal_number_of_infer_requests`).
+Multiple inferences can be executed in parallel, either from the same application thread through the use of asynchronous methods or from multiple threads with any of the available methods (synchronous or asynchronous). There is an optimal number of inference requests to be executed in parallel that would yield the best throughput without impacting the latency observed for each inference. This optimal number of requests is different for each model and depends on the ratio between the duration of the model execution on the DPU HW (Tiles) and the rest of the latency required to pass the request through the entire software stack. The NPU plugin returns the optimal number of inference requests through a dedicated property (`ov::optimal_number_of_infer_requests`).
Note: the current implementation of this property does not estimate or check the duration of the model execution. A fixed number of recommended inference requests is currently returned based on the existing performance data gathered from a reduced set of models with different topologies.
@@ -153,7 +153,7 @@ The following properties are supported:
| `ov::range_for_async_infer_requests`/</br>`RANGE_FOR_ASYNC_INFER_REQUESTS` | RO | Returns a tuple (bottom, top, step). </br> Not used by the NPU plugin. | `N/A` | `N/A` |
| `ov::range_for_streams`/</br>`RANGE_FOR_STREAMS` | RO | Returns a tuple (bottom, top).</br> Not used by the NPU plugin. | `N/A`| `N/A` |
| `ov::enable_profiling`/</br>`PERF_COUNT` | RW | Enables or disables performance counters. | `YES`/ `NO` | `NO` |
-| `ov::hint::performance_mode`/</br>`PERFORMANCE_HINT` | RW | Sets the performance profile used to determine default values of DPUs/DMAs/NIREQs.</br>Default values for each profile are documented below. | `THROUGHPUT`/</br>`LATENCY`/</br>`UNDEFINED` | `UNDEFINED` |
+| `ov::hint::performance_mode`/</br>`PERFORMANCE_HINT` | RW | Sets the performance profile used to determine default values of Tiles/DMAs/NIREQs.</br>Default values for each profile are documented below. | `THROUGHPUT`/</br>`LATENCY`/</br>`UNDEFINED` | `UNDEFINED` |
| `ov::hint::num_requests`/</br>`PERFORMANCE_HINT_NUM_REQUESTS` | RW | Sets the number of outstanding inference requests. | `[0-]` | `1` |
| `ov::hint::model_priority`/</br>`MODEL_PRIORITY` | RW | Assigns a priority for the model execution. | `LOW`/</br>`MEDIUM`/</br>`HIGH` | `MEDIUM` |
| `ov::hint::enable_cpu_pinning`/</br>`ENABLE_CPU_PINNING` | RW | Allows CPU threads pinning during inference. | `YES`/ `NO` /</br>`NO`
@@ -183,11 +183,11 @@ The following properties are supported:
| `ov::intel_npu::run_inferences_sequentially`/</br>`NPU_RUN_INFERENCES_SEQUENTIALLY` | RW | Run inferences in async mode sequentially in the order in which they are started to optimize host scheduling. | `YES`/ `NO`| `NO` |
&nbsp;
-### Performance Hint: Default Number of DPU Groups / DMA Engines
+### Performance Hint: Default Number of Tiles / DMA Engines
-The following table shows the default values for the number of DPU Groups (Tiles) and DMA Engines selected by the plugin based on the performance mode (THROUGHPUT/LATENCY) and based on the platform:
+The following table shows the default values for the number of Tiles and DMA Engines selected by the plugin based on the performance mode (THROUGHPUT/LATENCY) and based on the platform:
-| Performance hint | NPU Platform | Number of DPU Groups | Number of DMA Engines |
+| Performance hint | NPU Platform | Number of Tiles | Number of DMA Engines |
| :--- | :--- | :--- | :--- |
| THROUGHPUT | 3720 | 2 (all of them) | 2 (all of them) |
| THROUGHPUT | 4000 | 2 (out of 5/6) | 2 (all of them) |
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
index 0ecd186c05d..fd7ad682290 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
@@ -985,42 +985,6 @@ struct COMPILATION_MODE_PARAMS final : OptionBase<COMPILATION_MODE_PARAMS, std::
}
};
-//
-// DPU_GROUPS
-//
-
-struct DPU_GROUPS final : OptionBase<DPU_GROUPS, int64_t> {
- static std::string_view key() {
- return ov::intel_npu::dpu_groups.name();
- }
-
- static std::vector<std::string_view> deprecatedKeys() {
- return {};
- }
-
- static int64_t defaultValue() {
- return -1;
- }
-
- static OptionMode mode() {
- return OptionMode::CompileTime;
- }
-
- static bool isPublic() {
- return false;
- }
-
- static ov::PropertyMutability mutability() {
- return ov::PropertyMutability::RW;
- }
-
-#ifdef NPU_PLUGIN_DEVELOPER_BUILD
- static std::string_view envVar() {
- return "IE_NPU_DPU_GROUPS";
- }
-#endif
-};
-
//
// TILES
//
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/npu_private_properties.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/npu_private_properties.hpp
index 835f73c9558..33cb6d49013 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/npu_private_properties.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/npu_private_properties.hpp
@@ -256,13 +256,6 @@ static constexpr ov::Property<CompilerType> compiler_type{"NPU_COMPILER_TYPE"};
*/
static constexpr ov::Property<std::string> compilation_mode{"NPU_COMPILATION_MODE"};
-/**
- * @brief [Only for NPU Plugin]
- * Type: integer, default is None
- * Number of DPU groups
- */
-static constexpr ov::Property<int64_t> dpu_groups{"NPU_DPU_GROUPS"};
-
/**
* @brief [Only for NPU Plugin]
* Type: integer, default is -1
diff --git a/src/plugins/intel_npu/src/plugin/include/properties.hpp b/src/plugins/intel_npu/src/plugin/include/properties.hpp
index b75bb6ef45e..71be2ba08b7 100644
--- a/src/plugins/intel_npu/src/plugin/include/properties.hpp
+++ b/src/plugins/intel_npu/src/plugin/include/properties.hpp
@@ -69,7 +69,6 @@ private:
ov::intel_npu::compilation_mode_params.name(),
ov::intel_npu::compiler_dynamic_quantization.name(),
ov::intel_npu::tiles.name(),
- ov::intel_npu::dpu_groups.name(),
ov::intel_npu::dma_engines.name(),
ov::intel_npu::compilation_mode.name(),
ov::intel_npu::driver_version.name(),
diff --git a/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp b/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp
index de0d4f5109f..a946d32bdff 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/llm_compiled_model.cpp
@@ -525,7 +525,7 @@ ov::AnyMap get_default_prefill_config(const std::shared_ptr<ov::Model>& model,
}
}
if (npudesc.has_value() && npudesc->arch == "4000" && npudesc->max_tiles != -1) {
- config.emplace("NPU_DPU_GROUPS", npudesc->max_tiles);
+ config.emplace("NPU_TILES", npudesc->max_tiles);
}
// Specify NPUW DQ if Compiler DQ is not enabled
if (!npudesc.has_value() || !npudesc->compiler_dq) {
@@ -546,7 +546,7 @@ ov::AnyMap get_default_generate_config(const std::shared_ptr<ov::Model>& model,
config.emplace("NPUW_ONLINE_PIPELINE", "NONE");
}
if (npudesc.has_value() && npudesc->arch == "4000") {
- config.emplace("NPU_DPU_GROUPS", 4);
+ config.emplace("NPU_TILES", 4);
}
if (hint == ::intel_npu::npuw::llm::GenerateHint::FAST_COMPILE) {
config.emplace("NPUW_UNFOLD_IREQS", "YES");
diff --git a/src/plugins/intel_npu/src/plugin/src/plugin.cpp b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
index 1f8e9c87321..a984ce25d7f 100644
--- a/src/plugins/intel_npu/src/plugin/src/plugin.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
@@ -195,7 +195,6 @@ void Plugin::init_options() {
REGISTER_OPTION(COMPILATION_MODE_PARAMS);
REGISTER_OPTION(DMA_ENGINES);
REGISTER_OPTION(TILES);
- REGISTER_OPTION(DPU_GROUPS);
REGISTER_OPTION(COMPILATION_MODE);
REGISTER_OPTION(COMPILER_TYPE);
REGISTER_OPTION(PLATFORM);
diff --git a/src/plugins/intel_npu/src/plugin/src/properties.cpp b/src/plugins/intel_npu/src/plugin/src/properties.cpp
index cf9f68f5709..5da92d7fb59 100644
--- a/src/plugins/intel_npu/src/plugin/src/properties.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/properties.cpp
@@ -358,7 +358,6 @@ void Properties::registerPluginProperties() {
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::compilation_mode_params, COMPILATION_MODE_PARAMS);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::dma_engines, DMA_ENGINES);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::tiles, TILES);
- TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::dpu_groups, DPU_GROUPS);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::compilation_mode, COMPILATION_MODE);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::compiler_type, COMPILER_TYPE);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::platform, PLATFORM);
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp
index 3a00029e979..92a9af9c2a4 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/property.cpp
@@ -46,7 +46,6 @@ std::vector<std::pair<std::string, ov::Any>> compat_plugin_internal_mutable_prop
{ov::intel_npu::dma_engines.name(), ov::Any(1)},
{ov::intel_npu::platform.name(), ov::Any(ov::intel_npu::Platform::AUTO_DETECT)},
{ov::intel_npu::compilation_mode.name(), ov::Any("DefaultHW")},
- {ov::intel_npu::dpu_groups.name(), ov::Any(2)},
{ov::intel_npu::defer_weights_load.name(), ov::Any(true)},
};
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
index 68a391b17c5..a09f8df6eab 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
@@ -139,7 +139,6 @@ TEST_P(OVCheckSetSupportedRWMetricsPropsTestsNPU, ChangeCorrectProperties) {
const std::vector<ov::AnyMap> compat_CorrectPluginMutableProperties = {
{{ov::internal::exclusive_async_requests.name(), true}},
- {{ov::intel_npu::dpu_groups.name(), 1}},
{{ov::intel_npu::dma_engines.name(), 1}},
{{ov::intel_npu::compilation_mode.name(), "DefaultHW"}},
{{ov::intel_npu::platform.name(),