Skip to content

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

[NPUW] Support for kokoro-82m decomposition (#33399)

Sergey Shumihin0f19664fb429
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/config/npuw.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/config/npuw.hpp
index b41f4b7dcff..2f0940891d6 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/config/npuw.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/config/npuw.hpp
@@ -47,6 +47,7 @@ namespace intel_npu {
void registerNPUWOptions(OptionsDesc& desc);
void registerNPUWLLMOptions(OptionsDesc& desc);
+void registerNPUWKokoroOptions(OptionsDesc& desc);
#define DEFINE_OPT(Name, Type, DefaultValue, PropertyKey, Mode) \
struct Name final : OptionBase<Name, Type> { \
@@ -149,6 +150,9 @@ DEFINE_OPT(NPUW_LLM_CACHE_ROPE, bool, true, npuw::llm::cache_rope, RunTime);
DEFINE_OPT(NPUW_LLM_GENERATE_PYRAMID, bool, false, npuw::llm::generate_pyramid, RunTime);
DEFINE_OPT(NPUW_LLM_PREFILL_CHUNK_SIZE, uint64_t, 1024, npuw::llm::prefill_chunk_size, RunTime);
DEFINE_OPT(NPUW_LLM_SHARED_HEAD, bool, true, npuw::llm::shared_lm_head, RunTime);
+DEFINE_OPT(NPUW_KOKORO, bool, false, npuw::kokoro::enabled, RunTime);
+DEFINE_OPT(NPUW_KOKORO_BLOCK_SIZE, uint64_t, 200, npuw::kokoro::block_size, RunTime);
+DEFINE_OPT(NPUW_KOKORO_OVERLAP_SIZE, uint64_t, 20, npuw::kokoro::overlap_size, RunTime);
DEFINE_OPT(NPUW_LLM_MAX_LORA_RANK, uint32_t, 32, npuw::llm::max_lora_rank, RunTime);
DEFINE_OPT(NPUW_LLM_ENABLE_PREFIX_CACHING, bool, false, npuw::llm::enable_prefix_caching, RunTime);
DEFINE_OPT(NPUW_LLM_PREFIX_CACHING_BLOCK_SIZE, uint64_t, 256, npuw::llm::prefix_caching_block_size, RunTime);
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/npuw_private_properties.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/npuw_private_properties.hpp
index 38ad2d7c850..68f8fef9a6e 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/npuw_private_properties.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/npuw_private_properties.hpp
@@ -701,6 +701,32 @@ static constexpr ov::Property<bool> enabled{"NPUW_TEXT_EMBED"};
} // namespace text_embed
+namespace kokoro {
+/**
+ * @brief
+ * Type: bool
+ * Set this option to true to utilize Kokoro pipeline
+ * Default value: false
+ */
+static constexpr ov::Property<bool> enabled{"NPUW_KOKORO"};
+
+/**
+ * @brief
+ * Type: size_t (uint64_t)
+ * Set the block size for Kokoro pipeline
+ * Default value: 200
+ */
+static constexpr ov::Property<uint64_t> block_size{"NPUW_KOKORO_BLOCK_SIZE"};
+
+/**
+ * @brief
+ * Type: size_t (uint64_t)
+ * Set the overlap size for Kokoro pipeline
+ * Default value: 20
+ */
+static constexpr ov::Property<uint64_t> overlap_size{"NPUW_KOKORO_OVERLAP_SIZE"};
+} // namespace kokoro
+
} // namespace npuw
} // namespace intel_npu
} // namespace ov
diff --git a/src/plugins/intel_npu/src/al/src/config/npuw.cpp b/src/plugins/intel_npu/src/al/src/config/npuw.cpp
index 67590bc4444..09f03a73ca3 100644
--- a/src/plugins/intel_npu/src/al/src/config/npuw.cpp
+++ b/src/plugins/intel_npu/src/al/src/config/npuw.cpp
@@ -85,6 +85,12 @@ void intel_npu::registerNPUWLLMOptions(OptionsDesc& desc) {
desc.add<NPUW_TEXT_EMBED>();
}
+void intel_npu::registerNPUWKokoroOptions(OptionsDesc& desc) {
+ desc.add<NPUW_KOKORO>();
+ desc.add<NPUW_KOKORO_BLOCK_SIZE>();
+ desc.add<NPUW_KOKORO_OVERLAP_SIZE>();
+}
+
std::string ov::npuw::s11n::anyToString(const ov::Any& var) {
#define HNDL(anyt, t) \
auto type = static_cast<int>(AnyType::anyt); \
diff --git a/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp b/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp
index 2f1ee116408..0eb53d34e73 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp
@@ -20,6 +20,7 @@
#include "openvino/runtime/properties.hpp"
#include "openvino/util/common_util.hpp"
#include "partitioning/patterns/opt.hpp"
+#include "pipelines/kokoro/kokoro_compiled_model.hpp"
#include "plugin.hpp"
#include "unfold_sync_infer_request.hpp"
#include "util.hpp"
@@ -140,21 +141,22 @@ std::shared_ptr<ov::npuw::ICompiledModel> ov::npuw::ICompiledModel::create(
LOG_BLOCK();
std::shared_ptr<ov::npuw::ICompiledModel> compiled_model;
auto use_llm_key = ov::intel_npu::npuw::llm::enabled.name();
+ auto use_kokoro_key = ov::intel_npu::npuw::kokoro::enabled.name();
+
+ // Drop CACHE_DIR from the config
+ // If it's present we will be utilizing .*CompiledModel's import
+ // and not the underlying models and submodels
+ auto config = properties;
+ config.erase(ov::cache_dir.name());
+
if (properties.count(use_llm_key) && properties.at(use_llm_key).as<bool>() == true) {
LOG_INFO("ov::npuw::LLMCompiledModel will be created.");
- // Drop CACHE_DIR from the config
- // If it's present we will be utilizing LLMCompiledModel's import
- // and not the underlying models and submodels
- auto config = properties;
- config.erase(ov::cache_dir.name());
compiled_model = std::make_shared<ov::npuw::LLMCompiledModel>(model, plugin, config);
+ } else if (properties.count(use_kokoro_key) && properties.at(use_kokoro_key).as<bool>() == true) {
+ LOG_INFO("ov::npuw::KokoroCompiledModel will be created.");
+ compiled_model = std::make_shared<ov::npuw::KokoroCompiledModel>(model, plugin, config);
} else {
LOG_INFO("ov::npuw::CompiledModel will be created.");
- // Drop CACHE_DIR from the config
- // If it's present we will be utilizing LLMCompiledModel's import
- // and not the underlying models and submodels
- auto config = properties;
- config.erase(ov::cache_dir.name());
compiled_model = std::make_shared<ov::npuw::CompiledModel>(model, plugin, config);
}
LOG_INFO("Done");
diff --git a/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.cpp b/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.cpp
index bc0dfb3a839..7a484df9acf 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.cpp
@@ -159,6 +159,20 @@ std::optional<ov::Output<const ov::Node>> ov::npuw::util::find_port_by_name(
return std::make_optional(*it);
}
+std::optional<ov::Output<const ov::Node>> ov::npuw::util::find_port_by_names(
+ const std::vector<ov::Output<const ov::Node>>& ports,
+ const std::unordered_set<std::string>& names) {
+ for (const auto& port : ports) {
+ const auto& port_names = port.get_names();
+ for (const auto& port_name : port_names) {
+ if (names.count(port_name)) {
+ return std::make_optional(port);
+ }
+ }
+ }
+ return std::nullopt;
+}
+
void ov::npuw::util::pad_position_ids(const ov::SoPtr<ov::ITensor>& padded_position_ids,
const ov::SoPtr<ov::ITensor>& position_ids) {
// NB: Regular LLM uses 2D position_ids [BATCH, SEQ_LEN], Qwen2.5 VL/Omni uses 3D position_ids [3, BATCH, SEQ_LEN]
diff --git a/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.hpp b/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.hpp
index 98e08ad47cb..bd1d89ae844 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.hpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/infer_request_utils.hpp
@@ -35,6 +35,11 @@ void copy_tensor_by_dim(ov::SoPtr<ov::ITensor> src_tensor,
std::optional<ov::Output<const ov::Node>> find_port_by_name(const std::vector<ov::Output<const ov::Node>>& ports,
const std::string& name);
+/**
+ * @brief Searches for a port within a collection that matches any of the specified names.
+ */
+std::optional<ov::Output<const ov::Node>> find_port_by_names(const std::vector<ov::Output<const ov::Node>>& ports,
+ const std::unordered_set<std::string>& names);
void pad_position_ids(const ov::SoPtr<ov::ITensor>& padded_position_ids, const ov::SoPtr<ov::ITensor>& position_ids);
diff --git a/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_compiled_model.cpp b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_compiled_model.cpp
new file mode 100644
index 00000000000..58dd86c3447
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_compiled_model.cpp
@@ -0,0 +1,162 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "kokoro_compiled_model.hpp"
+
+#include "intel_npu/config/config.hpp"
+#include "intel_npu/npuw_private_properties.hpp"
+#include "kokoro_infer_request.hpp"
+#include "kokoro_split.hpp"
+#include "npuw/logging.hpp"
+#include "plugin.hpp"
+
+namespace {
+// Remove all options "NPUW_.*"
+ov::AnyMap without_npuw_params(const ov::AnyMap& properties) {
+ ov::AnyMap result;
+ for (const auto& item : properties) {
+ if (item.first.find("NPUW") == std::string::npos) {
+ result.insert(item);
+ }
+ }
+ return result;
+}
+
+// Check properties for NPUW_DEVICES options and return true if only CPU is present
+bool is_cpu_only(const ov::AnyMap& properties) {
+ auto it = properties.find("NPUW_DEVICES");
+ if (it != properties.end()) {
+ return it->second.as<std::string>() == "CPU";
+ }
+ return false;
+}
+
+void split_kokoro_properties(const ov::AnyMap& properties,
+ ov::AnyMap& other_properties,
+ ov::AnyMap& kokoro_properties) {
+ for (auto it = properties.begin(); it != properties.end(); ++it) {
+ if (it->first.find("NPUW_KOKORO") != it->first.npos) {
+ kokoro_properties.insert(*it);
+ } else {
+ other_properties.insert(*it);
+ }
+ }
+}
+
+std::map<std::string, std::string> any_copy(const ov::AnyMap& params) {
+ std::map<std::string, std::string> result;
+ for (auto&& value : params) {
+ if (value.second.is<std::string>()) {
+ result.emplace(value.first, value.second.as<std::string>());
+ } else if (value.second.is<bool>()) {
+ result.emplace(value.first, value.second.as<bool>() ? "YES" : "NO");
+ } else {
+ std::stringstream ss;
+ value.second.print(ss);
+ result.emplace(value.first, ss.str());
+ }
+ }
+ return result;
+}
+} // namespace
+
+ov::npuw::KokoroCompiledModel::KokoroCompiledModel(const std::shared_ptr<ov::Model>& model,
+ const std::shared_ptr<const ov::IPlugin>& plugin,
+ const ov::AnyMap& properties)
+ : ov::npuw::ICompiledModel(model, plugin),
+ m_name(model->get_friendly_name()),
+ m_options_desc(std::make_shared<::intel_npu::OptionsDesc>()),
+ m_cfg(m_options_desc) {
+ LOG_DEBUG("Creating KokoroCompiledModel");
+
+ ::intel_npu::registerNPUWKokoroOptions(*m_options_desc);
+
+ // Split properties to separate Kokoro specific options and NPU plugin options
+ ov::AnyMap npuw_kokoro_props;
+ ov::AnyMap common_props;
+
+ split_kokoro_properties(properties, common_props, npuw_kokoro_props);
+
+ m_cfg.parseEnvVars();
+ m_cfg.update(any_copy(npuw_kokoro_props));
+
+ // Get configuration from m_cfg, which now has defaults, env vars and user properties merged
+ m_kokoro_cfg.block_size = m_cfg.get<::intel_npu::NPUW_KOKORO_BLOCK_SIZE>();
+ m_kokoro_cfg.overlap_size = m_cfg.get<::intel_npu::NPUW_KOKORO_OVERLAP_SIZE>();
+
+ // Decompose kokoro model into two static models
+ KokoroSplitResult split_result = KokoroSplit::split_model(model, m_kokoro_cfg);
+
+ LOG_DEBUG("Compiling kokoro model A...");
+ // Model A doesn't require decomposition, so it should be handled by CPU or NPU plugin
+ if (is_cpu_only(common_props)) {
+ auto core = plugin->get_core();
+ m_model_a_compiled = core->compile_model(split_result.model_a, "CPU", ov::AnyMap{});
+ } else {
+ // Plugin don't have to know about NPUW parameters
+ ov::AnyMap model_a_properties = without_npuw_params(common_props);
+ m_model_a_compiled = plugin->compile_model(split_result.model_a, model_a_properties);
+ }
+
+ LOG_DEBUG("Compiling kokoro model B...");
+ ov::AnyMap properties_model_b = common_props;
+
+ // Enforce offloading to CPU for non-accurate subgraphs
+ if (!properties_model_b.count("NPUW_ONLINE_PIPELINE")) {
+ // REP mode is giving best compile time / stability results
+ properties_model_b["NPUW_ONLINE_PIPELINE"] = "REP";
+ }
+ if (!properties_model_b.count("NPUW_SUBMODEL_DEVICE")) {
+ // 20 & 99 - ISTFT & STFT, 55 & 62 - Not accurate
+ properties_model_b["NPUW_SUBMODEL_DEVICE"] = "20:CPU,99:CPU,55:CPU,62:CPU";
+ }
+ m_model_b_compiled = std::dynamic_pointer_cast<ov::npuw::ICompiledModel>(
+ ov::npuw::ICompiledModel::create(split_result.model_b, plugin, properties_model_b));
+}
+
+void ov::npuw::KokoroCompiledModel::export_model(std::ostream& stream) const {
+ // FIXME Not implemented
+ LOG_DEBUG("Exporting KokoroCompiledModel");
+ OPENVINO_NOT_IMPLEMENTED;
+}
+
+std::shared_ptr<ov::npuw::KokoroCompiledModel> ov::npuw::KokoroCompiledModel::import_model(
+ std::istream& stream,
+ const std::shared_ptr<const ov::IPlugin>& plugin,
+ const ov::AnyMap& properties) {
+ // FIXME Not implemented
+ LOG_DEBUG("Importing KokoroCompiledModel");
+ OPENVINO_NOT_IMPLEMENTED;
+}
+
+std::shared_ptr<const ov::Model> ov::npuw::KokoroCompiledModel::get_runtime_model() const {
+ // FIXME Not implemented
+ LOG_DEBUG("Getting runtime model from KokoroCompiledModel");
+ OPENVINO_NOT_IMPLEMENTED;
+}
+
+void ov::npuw::KokoroCompiledModel::set_property(const ov::AnyMap& properties) {
+ // FIXME Not implemented
+ LOG_DEBUG("Setting properties to KokoroCompiledModel");
+ OPENVINO_NOT_IMPLEMENTED;
+}
+
+ov::Any ov::npuw::KokoroCompiledModel::get_property(const std::string& name) const {
+ OPENVINO_SUPPRESS_DEPRECATED_START
+ if (m_model_b_compiled) {
+ return m_model_b_compiled->get_property(name);
+ }
+ OPENVINO_THROW("Property ", name, " not found");
+ OPENVINO_SUPPRESS_DEPRECATED_END
+}
+
+std::shared_ptr<ov::ISyncInferRequest> ov::npuw::KokoroCompiledModel::create_sync_infer_request() const {
+ auto* non_const_this = const_cast<ov::npuw::KokoroCompiledModel*>(this);
+ return non_const_this->create_kokoro_infer_request();
+}
+
+std::shared_ptr<ov::ISyncInferRequest> ov::npuw::KokoroCompiledModel::create_kokoro_infer_request() {
+ auto this_sptr = std::static_pointer_cast<ov::npuw::KokoroCompiledModel>(shared_from_this());
+ return std::make_shared<ov::npuw::KokoroInferRequest>(this_sptr);
+}
diff --git a/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_compiled_model.hpp b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_compiled_model.hpp
new file mode 100644
index 00000000000..4045f8b20d4
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_compiled_model.hpp
@@ -0,0 +1,71 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include <cstdint>
+
+#include "npuw/compiled_model.hpp"
+
+namespace ov {
+namespace npuw {
+
+class KokoroInferRequest;
+
+struct KokoroSplitResult {
+ std::shared_ptr<ov::Model> model_a;
+ std::shared_ptr<ov::Model> model_b;
+};
+
+struct KokoroConfig {
+ uint64_t block_size = 200;
+ uint64_t overlap_size = 20;
+};
+
+class KokoroCompiledModel : public ov::npuw::ICompiledModel {
+public:
+ KokoroCompiledModel(const std::shared_ptr<ov::Model>& model,
+ const std::shared_ptr<const ov::IPlugin>& plugin,
+ const ov::AnyMap& properties);
+
+ void export_model(std::ostream& model) const override;
+ static std::shared_ptr<KokoroCompiledModel> import_model(std::istream& stream,
+ const std::shared_ptr<const ov::IPlugin>& plugin,
+ const ov::AnyMap& properties);
+
+ std::shared_ptr<const ov::Model> get_runtime_model() const override;
+
+ void set_property(const ov::AnyMap& properties) override;
+ ov::Any get_property(const std::string& name) const override;
+
+ uint64_t block_size() const noexcept {
+ return m_kokoro_cfg.block_size;
+ }
+
+ uint64_t overlap_size() const noexcept {
+ return m_kokoro_cfg.overlap_size;
+ }
+
+ ov::SoPtr<ov::ICompiledModel> model_a() const {
+ return m_model_a_compiled;
+ }
+ std::shared_ptr<ov::npuw::ICompiledModel> model_b() const {
+ return m_model_b_compiled;
+ }
+
+private:
+ KokoroConfig m_kokoro_cfg;
+ std::string m_name;
+ std::shared_ptr<::intel_npu::OptionsDesc> m_options_desc;
+ ::intel_npu::Config m_cfg;
+
+ std::shared_ptr<ov::ISyncInferRequest> create_kokoro_infer_request();
+ std::shared_ptr<ov::ISyncInferRequest> create_sync_infer_request() const override;
+
+ ov::SoPtr<ov::ICompiledModel> m_model_a_compiled;
+ std::shared_ptr<ov::npuw::ICompiledModel> m_model_b_compiled;
+};
+
+} // namespace npuw
+} // namespace ov
diff --git a/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_infer_request.cpp b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_infer_request.cpp
new file mode 100644
index 00000000000..9ba6608c099
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_infer_request.cpp
@@ -0,0 +1,423 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "kokoro_infer_request.hpp"
+
+#include <algorithm>
+#include <cmath>
+#include <cstddef>
+#include <cstdint>
+#include <cstring>
+#include <optional>
+#include <sstream>
+#include <string>
+#include <vector>
+
+#include "npuw/infer_request_utils.hpp"
+#include "npuw/logging.hpp"
+#include "npuw/util.hpp"
+#include "openvino/runtime/make_tensor.hpp"
+
+namespace {
+std::string safe_any_name(const ov::Output<const ov::Node>& port) {
+ const auto& names = port.get_names();
+ if (!names.empty()) {
+ return port.get_any_name();
+ }
+ return {};
+}
+
+void throw_if_missing(const std::vector<std::string>& missing_ports) {
+ if (!missing_ports.empty()) {
+ std::stringstream ss;
+ ss << "Can't match ports: ";
+ for (std::size_t i = 0; i < missing_ports.size(); ++i) {
+ if (i)
+ ss << ", ";
+ ss << (missing_ports[i].empty() ? "<unnamed>" : missing_ports[i]);
+ }
+ OPENVINO_THROW(ss.str());
+ }
+}
+
+/**
+ * @brief Gathers elements from the last dimension of a 3D tensor based on provided indices.
+ *
+ * This function extracts specific elements from the last dimension (L) of a source tensor
+ * with shape [1, C, L] and places them into a destination buffer. The destination buffer
+ * is treated as having a shape of [1, C, block].
+ *
+ * The operation effectively performs:
+ * dst[0, c, t] = src[0, c, idx[t]]
+ *
+ * Source (L=3) Indices (idx) Destination (block=5)
+ * [ A | B | C ] <-- [0, 0, 1, 2, 2] --> [ A | A | B | C | C ]
+ */
+template <typename T>
+void gather_3d_last_dim(const ov::SoPtr<ov::ITensor>& src, T* dst, const std::vector<int64_t>& idx, std::size_t block) {
+ // src: [1, C, L], dst: [1, C, block]
+ const auto& shape = src->get_shape();
+ OPENVINO_ASSERT(shape.size() == 3u);
+ OPENVINO_ASSERT(shape[0] == 1u);
+ const std::size_t channels = shape[1];
+ const std::size_t phonemes_number = shape[2];
+
+ OPENVINO_ASSERT(src->is_continuous());
+ const T* src_p = src->data<const T>();
+
+ // Zero fill destination buffer, as it might be not fully filled, remaining will be 0-padding.
+ std::fill(dst, dst + (channels * block), T{});
+ const std::size_t n = idx.size();
+
+ for (std::size_t c = 0; c < channels; ++c) {
+ const T* row = src_p + c * phonemes_number;
+ T* out = dst + c * block;
+ for (std::size_t t = 0; t < n; ++t) {
+ const auto it = idx[t];
+ OPENVINO_ASSERT(it >= 0);
+ OPENVINO_ASSERT(static_cast<std::size_t>(it) < phonemes_number);
+ out[t] = row[static_cast<std::size_t>(it)];
+ }
+ }
+}
+
+} // namespace
+
+void ov::npuw::KokoroInferRequest::init_tensor(const ov::Output<const ov::Node>& port) {
+ ov::SoPtr<ITensor> tensor;
+ tensor = ov::ISyncInferRequest::get_tensor(port);
+
+ if (!tensor) {
+ const auto& shape = port.get_partial_shape();
+ const bool is_dynamic = shape.is_dynamic();
+ ov::Shape tensor_shape;
+ if (is_dynamic) {
+ for (auto&& item : shape) {
+ tensor_shape.push_back(item.is_static() ? item.get_length() : 0);
+ }
+ } else {
+ tensor_shape = shape.to_shape();
+ }
+
+ tensor = ov::make_tensor(port.get_element_type(), tensor_shape);
+ set_tensor(port, tensor);
+ }
+}
+
+ov::npuw::KokoroInferRequest::KokoroInferRequest(const std::shared_ptr<ov::npuw::KokoroCompiledModel>& compiled_model)
+ : ov::ISyncInferRequest(compiled_model),
+ m_kokoro_compiled_model(compiled_model) {
+ const auto original_inputs = m_kokoro_compiled_model->inputs();
+
+ for (const auto& input_port : original_inputs) {
+ init_tensor(input_port);
+ }
+ for (const auto& output_port : m_kokoro_compiled_model->outputs()) {
+ init_tensor(output_port);
+ }
+
+ OPENVINO_ASSERT(m_kokoro_compiled_model->model_a(), "Kokoro: Model A is not compiled");
+ OPENVINO_ASSERT(m_kokoro_compiled_model->model_b(), "Kokoro: Model B is not compiled");
+ m_model_a_request = m_kokoro_compiled_model->model_a()->create_infer_request();
+ m_model_b_request = m_kokoro_compiled_model->model_b()->create_infer_request();
+
+ // Map Model A inputs
+ const auto a_inputs = m_model_a_request->get_compiled_model()->inputs();
+ std::vector<std::string> missing_ports;
+ for (const auto& a_in : a_inputs) {
+ auto original_port = ov::npuw::util::find_port_by_names(original_inputs, a_in.get_names());
+ if (original_port.has_value()) {
+ m_model_a_in_map.push_back({a_in, original_port.value()});
+ } else {
+ missing_ports.push_back(safe_any_name(a_in));
+ }
+ }
+ throw_if_missing(missing_ports);
+
+ // Map Model A outputs
+ const auto a_outputs = m_model_a_request->get_compiled_model()->outputs();
+ auto pred_dur_port = ov::npuw::util::find_port_by_name(a_outputs, "pred_dur");
+ auto en_left_port = ov::npuw::util::find_port_by_name(a_outputs, "en_left");
+ auto asr_left_port = ov::npuw::util::find_port_by_name(a_outputs, "asr_left");
+ OPENVINO_ASSERT(pred_dur_port.has_value(), "Kokoro Model A output 'pred_dur' not found");
+ OPENVINO_ASSERT(en_left_port.has_value(), "Kokoro Model A output 'en_left' not found");
+ OPENVINO_ASSERT(asr_left_port.has_value(), "Kokoro Model A output 'asr_left' not found");
+ m_a_pred_dur = pred_dur_port.value();
+ m_a_en_left = en_left_port.value();
+ m_a_asr_left = asr_left_port.value();
+
+ // Map Model B inputs
+ const auto b_inputs = m_model_b_request->get_compiled_model()->inputs();
+ std::vector<std::string> b_missing_ports;
+ for (const auto& b_in : b_inputs) {
+ const auto& names = b_in.get_names();
+
+ if (std::count(names.begin(), names.end(), "en_block")) {
+ m_b_en_block = b_in;
+ continue;
+ }
+ if (std::count(names.begin(), names.end(), "asr_block")) {
+ m_b_asr_block = b_in;
+ continue;
+ }
+
+ auto original_port = ov::npuw::util::find_port_by_names(original_inputs, names);
+ if (original_port.has_value()) {
+ m_model_b_in_map.push_back({b_in, original_port.value()});
+ } else {
+ b_missing_ports.push_back(safe_any_name(b_in));
+ }
+ }
+ throw_if_missing(b_missing_ports);
+
+ // Initial setting of tensors for sub-requests
+ for (const auto& item : m_model_a_in_map) {
+ m_model_a_request->set_tensor(item.first, get_tensor(item.second));
+ }
+ // Feed static Model B inputs
+ for (const auto& item : m_model_b_in_map) {
+ m_model_b_request->set_tensor(item.first, get_tensor(item.second));
+ }
+}
+
+void ov::npuw::KokoroInferRequest::set_tensor(const ov::Output<const ov::Node>& port,
+ const ov::SoPtr<ov::ITensor>& tensor) {
+ ov::ISyncInferRequest::set_tensor(port, tensor);
+
+ // If mappings are initialized, update sub-requests
+ // Model A inputs
+ for (const auto& item : m_model_a_in_map) {
+ if (item.second == port) {
+ m_model_a_request->set_tensor(item.first, tensor);
+ }
+ }
+ // Model B inputs
+ for (const auto& item : m_model_b_in_map) {
+ if (item.second == port) {
+ m_model_b_request->set_tensor(item.first, tensor);
+ }
+ }
+}
+
+void ov::npuw::KokoroInferRequest::infer() {
+ OPENVINO_ASSERT(m_model_a_request);
+ OPENVINO_ASSERT(m_model_b_request);
+
+ const auto original_inputs = m_kokoro_compiled_model->inputs();
+ const auto original_outputs = m_kokoro_compiled_model->outputs();
+
+ // 1) Infer Model A
+ m_model_a_request->infer();
+
+ const auto pred_dur_tensor = m_model_a_request->get_tensor(m_a_pred_dur);
+ const auto en_left_tensor = m_model_a_request->get_tensor(m_a_en_left);
+ const auto asr_left_tensor = m_model_a_request->get_tensor(m_a_asr_left);
+ OPENVINO_ASSERT(pred_dur_tensor && en_left_tensor && asr_left_tensor);
+
+ auto orig_pred_dur = ov::npuw::util::find_port_by_name(original_outputs, "pred_dur");
+ set_tensor(orig_pred_dur.value(), pred_dur_tensor);
+
+ // 2) Build repeat-interleave indices
+
+ std::vector<int64_t> pred;
+ pred.resize(pred_dur_tensor->get_size());
+
+ const auto et = pred_dur_tensor->get_element_type();
+ if (et == ov::element::i64) {
+ const auto* p = pred_dur_tensor->data<const int64_t>();
+ std::copy_n(p, pred.size(), pred.data());
+ } else if (et == ov::element::i32) {
+ const auto* p = pred_dur_tensor->data<const int32_t>();
+ std::copy_n(p, pred.size(), pred.data());
+ } else {
+ OPENVINO_THROW("Unexpected element type from pred_dur data, expected i64 or i32, got: ", et.get_type_name());
+ }
+ const std::size_t l_max = pred.size();
+
+ std::size_t total_frames = 0;
+ for (auto token_frames : pred) {
+ if (token_frames > 0)
+ total_frames += static_cast<std::size_t>(token_frames);
+ }
+ if (total_frames == 0) {
+ OPENVINO_THROW("Sum(pred_dur) is zero; cannot generate audio");
+ }
+
+ std::vector<int64_t> idx_all;
+ idx_all.reserve(total_frames);
+ for (std::size_t i = 0; i < l_max; ++i) {
+ const auto reps = pred[i];
+ for (int64_t r = 0; r < reps; ++r) {
+ idx_all.push_back(static_cast<int64_t>(i));
+ }
+ }
+ OPENVINO_ASSERT(idx_all.size() == total_frames);
+
+ // 3) Prepare Model B
+ const auto b_model = m_model_b_request->get_compiled_model();
+ const auto b_inputs = b_model->inputs();
+ const auto b_outputs = b_model->outputs();
+
+ OPENVINO_ASSERT(m_b_en_block.get_node(), "Kokoro Model B input 'en_block' not initialized");
+ OPENVINO_ASSERT(m_b_asr_block.get_node(), "Kokoro Model B input 'asr_block' not initialized");
+
+ // Pick audio output = first floating output (f16/f32)
+ std::optional<ov::Output<const ov::Node>> audio_out;
+ for (const auto& out : b_outputs) {
+ const auto et = out.get_element_type();
+ if (et == ov::element::f16 || et == ov::element::f32) {
+ audio_out = out;
+ break;
+ }
+ }
+
+ if (!audio_out.has_value()) {
+ OPENVINO_THROW("Kokoro Model B: no floating-point outputs found");
+ }
+
+ const size_t overlap_size = m_kokoro_compiled_model->overlap_size();
+ const auto one_side_overlap = static_cast<std::size_t>(overlap_size / 2);
+
+ // Block size will stay the same even if overlap is used, but effective input size per block decrease
+ const std::size_t block = static_cast<std::size_t>(m_kokoro_compiled_model->block_size());
+ OPENVINO_ASSERT(overlap_size < block, "NPUW_KOKORO_OVERLAP_SIZE must be smaller than block size");
+
+ // Effective step size (how much we advance in the original sequence)
+ // We reserve space for overlap on both sides: [overlap | step | overlap]
+ // Total window size is 'block'.
+ OPENVINO_ASSERT(one_side_overlap * 2 < block,
+ "NPUW_KOKORO_OVERLAP_SIZE is too large for the given block size (must be < block)");
+ const std::size_t step = block - 2 * one_side_overlap;
+ OPENVINO_ASSERT(step > 0, "Step size is zero, block size too small for overlap");
+
+ const std::size_t num_blocks = (total_frames + step - 1) / step;
+
+ std::vector<uint8_t> audio_bytes;
+ std::size_t total_samples = 0;
+ double samples_per_frame = 0.0;
+ ov::Shape audio_shape0;
+ ov::element::Type audio_type0;
+
+ for (std::size_t blk = 0; blk < num_blocks; ++blk) {
+ // Logical start of the new data in this block
+ const std::size_t logical_start = blk * step;
+
+ // Calculate input window [t0, t1)
+ // We try to center the window: [logical_start - overlap, logical_start + step + overlap]
+ // But constrained by [0, total_frames] and max length 'block'
+ const std::size_t t0 = (blk == 0) ? 0 : (logical_start - one_side_overlap);
+ std::size_t t1 = t0 + block;
+ if (t1 > total_frames) {
+ t1 = total_frames;
+ }
+
+ std::vector<int64_t> idx_block(idx_all.begin() + t0, idx_all.begin() + t1);
+
+ auto en_in_tensor = m_model_b_request->get_tensor(m_b_en_block);
+ auto asr_in_tensor = m_model_b_request->get_tensor(m_b_asr_block);
+ OPENVINO_ASSERT(en_in_tensor && asr_in_tensor);
+
+ // 3D tensor: [1, number_of_tokens, block_size]
+ OPENVINO_ASSERT(en_in_tensor->get_shape().size() == 3u);
+ OPENVINO_ASSERT(asr_in_tensor->get_shape().size() == 3u);
+ OPENVINO_ASSERT(en_in_tensor->get_shape().back() == block);
+ OPENVINO_ASSERT(asr_in_tensor->get_shape().back() == block);
+
+ const auto en_et = en_in_tensor->get_element_type();
+ const auto asr_et = asr_in_tensor->get_element_type();
+ OPENVINO_ASSERT(en_et == en_left_tensor->get_element_type(), "en_block dtype mismatch with en_left");
+ OPENVINO_ASSERT(asr_et == asr_left_tensor->get_element_type(), "asr_block dtype mismatch with asr_left");
+
+ // Using idx_block fill inputs for model b (aligned feature matrix)
+ if (en_et == ov::element::f16) {
+ gather_3d_last_dim<ov::float16>(en_left_tensor, en_in_tensor->data<ov::float16>(), idx_block, block);
+ } else if (en_et == ov::element::f32) {
+ gather_3d_last_dim<float>(en_left_tensor, en_in_tensor->data<float>(), idx_block, block);
+ } else {
+ OPENVINO_THROW("en_left has unsupported type: ", en_et);
+ }
+
+ if (asr_et == ov::element::f16) {
+ gather_3d_last_dim<ov::float16>(asr_left_tensor, asr_in_tensor->data<ov::float16>(), idx_block, block);
+ } else if (asr_et == ov::element::f32) {
+ gather_3d_last_dim<float>(asr_left_tensor, asr_in_tensor->data<float>(), idx_block, block);
+ } else {
+ OPENVINO_THROW("asr_left has unsupported type: ", asr_et);
+ }
+
+ m_model_b_request->infer();
+ auto audio_tensor = m_model_b_request->get_tensor(audio_out.value());
+ OPENVINO_ASSERT(audio_tensor);
+
+ OPENVINO_ASSERT(!audio_tensor->get_shape().empty());
+ const std::size_t block_samples = audio_tensor->get_shape().back();
+ if (blk == 0) {
+ audio_shape0 = audio_tensor->get_shape();
+ audio_type0 = audio_tensor->get_element_type();
+ if (samples_per_frame == 0.0) {
+ // Estimate samples_per_frame. Model B is static, so it produces block_samples for 'block' input frames,
+ // even if has less input data.
+ samples_per_frame = static_cast<double>(block_samples) / static_cast<double>(block);
+ }
+ }
+
+ // Calculate which part of the output audio is valid
+ // We want to keep the audio corresponding to [logical_start, logical_start + step)
+ // The input started at t0.
+ // So we skip (logical_start - t0) frames.
+ const std::size_t frames_to_skip = logical_start - t0;
+
+ // We keep 'step' frames, but clamped to the end of the sequence
+ std::size_t frames_to_keep = step;
+ if (logical_start + frames_to_keep > total_frames) {
+ frames_to_keep = total_frames - logical_start;
+ }
+
+ // Convert frames to samples
+ const std::size_t skip_samples =
+ static_cast<std::size_t>(std::llround(samples_per_frame * static_cast<double>(frames_to_skip)));
+ std::size_t keep_samples =
+ static_cast<std::size_t>(std::llround(samples_per_frame * static_cast<double>(frames_to_keep)));
+
+ // Safety clamp
+ if (skip_samples >= block_samples) {
+ keep_samples = 0;
+ } else if (skip_samples + keep_samples > block_samples) {
+ keep_samples = block_samples - skip_samples;
+ }
+
+ const std::size_t elem_size = audio_tensor->get_element_type().size();
+ const std::size_t bytes_to_copy = keep_samples * elem_size;
+ const auto* src = static_cast<const uint8_t*>(audio_tensor->data());
+ const auto* start_byte = src + skip_samples * elem_size;
+
+ audio_bytes.insert(audio_bytes.end(), start_byte, start_byte + bytes_to_copy);
+ total_samples += keep_samples;
+ }
+
+ if (original_outputs.empty()) {
+ return;
+ }
+ auto out_shape = audio_shape0;
+ if (!out_shape.empty()) {
+ out_shape.back() = total_samples;
+ } else {
+ out_shape = ov::Shape{total_samples};
+ }
+
+ auto out_tensor = ov::make_tensor(audio_type0, out_shape);
+ OPENVINO_ASSERT(out_tensor->get_byte_size() == audio_bytes.size());
+ std::copy_n(audio_bytes.begin(), audio_bytes.size(), static_cast<uint8_t*>(out_tensor->data()));
+ set_tensor(original_outputs[0], out_tensor);
+}
+
+ov::SoPtr<ov::ITensor> ov::npuw::KokoroInferRequest::get_tensor(const ov::Output<const ov::Node>& port) const {
+ return ov::ISyncInferRequest::get_tensor(port);
+}
+
+std::vector<ov::SoPtr<ov::IVariableState>> ov::npuw::KokoroInferRequest::query_state() const {
+ // FIXME Not implemented
+ // OPENVINO_NOT_IMPLEMENTED;
+ return {};
+}
diff --git a/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_infer_request.hpp b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_infer_request.hpp
new file mode 100644
index 00000000000..d119b33d71f
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_infer_request.hpp
@@ -0,0 +1,55 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include <memory>
+
+#include "kokoro_compiled_model.hpp"
+#include "openvino/core/descriptor/output.hpp"
+#include "openvino/runtime/iasync_infer_request.hpp"
+#include "openvino/runtime/isync_infer_request.hpp"
+
+namespace ov {
+namespace npuw {
+
+class KokoroInferRequest : public ov::ISyncInferRequest {
+public:
+ explicit KokoroInferRequest(const std::shared_ptr<ov::npuw::KokoroCompiledModel>& compiled_model);
+
+ void infer() override;
+
+ void set_tensor(const ov::Output<const ov::Node>& port, const ov::SoPtr<ov::ITensor>& tensor) override;
+
+ ov::SoPtr<ov::ITensor> get_tensor(const ov::Output<const ov::Node>& port) const override;
+
+ void check_tensors() const override {};
+
+ std::vector<ov::ProfilingInfo> get_profiling_info() const override {
+ return {};
+ }
+ std::vector<ov::SoPtr<ov::IVariableState>> query_state() const override;
+
+protected:
+ std::shared_ptr<KokoroCompiledModel> m_kokoro_compiled_model;
+
+ std::shared_ptr<ov::IAsyncInferRequest> m_model_a_request;
+ std::shared_ptr<ov::IAsyncInferRequest> m_model_b_request;
+
+ std::vector<std::pair<ov::Output<const ov::Node>, ov::Output<const ov::Node>>> m_model_a_in_map;
+ std::vector<std::pair<ov::Output<const ov::Node>, ov::Output<const ov::Node>>> m_model_b_in_map;
+
+ ov::Output<const ov::Node> m_a_pred_dur;
+ ov::Output<const ov::Node> m_a_en_left;
+ ov::Output<const ov::Node> m_a_asr_left;
+
+ ov::Output<const ov::Node> m_b_en_block;
+ ov::Output<const ov::Node> m_b_asr_block;
+
+private:
+ void init_tensor(const ov::Output<const ov::Node>& port);
+};
+
+} // namespace npuw
+} // namespace ov
diff --git a/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_split.cpp b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_split.cpp
new file mode 100644
index 00000000000..25f2602f9ec
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_split.cpp
@@ -0,0 +1,182 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "kokoro_split.hpp"
+
+#include <cstddef>
+#include <memory>
+
+#include "npuw/logging.hpp"
+#include "openvino/core/descriptor/tensor.hpp"
+#include "openvino/core/except.hpp"
+#include "openvino/core/model.hpp"
+#include "openvino/core/node.hpp"
+#include "openvino/core/partial_shape.hpp"
+#include "openvino/op/parameter.hpp"
+#include "openvino/op/result.hpp"
+#include "openvino/op/util/node_util.hpp"
+
+namespace ov::npuw {
+
+// Main logic for kokoro model is splitting it into two parts,
+// replacing repeat_interleave with custom processing which would be handled on host side during
+// infer request execution. Part 1 will be named "model_a", part 2 - "model_b".
+KokoroSplitResult KokoroSplit::split_model(const std::shared_ptr<ov::Model>& model, const KokoroConfig& config) {
+ KokoroSplitResult result;
+
+ result.model_a = create_model_a(model, config);
+ result.model_b = create_model_b(model, config);
+
+ return result;
+}
+
+// pred_dur - our prediction of durations, which will be used to generate alignment matrix
+// (we would multiply en and asr blocks with it) on host side and also the data we are going chunking by.
+std::shared_ptr<ov::Node> ov::npuw::KokoroSplit::find_pred_dur_node(const std::shared_ptr<ov::Model>& model) {
+ // TODO Look for pred_dur node name or Sequence Max -> Convert (?) -> Squeeze -> Result
+ for (const auto& op : model->get_results()) {
+ const auto& name = op->get_name();
+ if (name == "pred_dur") {
+ return op;
+ }
+ for (const auto& output_name : op->output(0).get_names()) {
+ if (output_name == "pred_dur") {
+ return op;
+ }
+ }
+ }
+
+ return nullptr;
+}
+
+// en_matmul - left hand side of matmul for encoder block (bert encoder output, contain acoustic features, "how to say")
+std::shared_ptr<ov::Node> ov::npuw::KokoroSplit::find_en_matmul_node(const std::shared_ptr<ov::Model>& model) {
+ // FIXME hardcoded names from kokoro model
+ for (const auto& op : model->get_ops()) {
+ const auto& name = op->get_friendly_name();
+ if (name == "aten::matmul/MatMul") {
+ return op;
+ }
+ }
+
+ return nullptr;
+}
+
+// asr_matmul - left hand side of matmul for asr block (kokoro decoder input, contain text features, asr - automatic
+// speech recognition, "what to say")
+std::shared_ptr<ov::Node> ov::npuw::KokoroSplit::find_asr_matmul_node(const std::shared_ptr<ov::Model>& model) {
+ // FIXME hardcoded names from kokoro model
+ for (const auto& op : model->get_ops()) {
+ const auto& name = op->get_friendly_name();
+ if (name == "aten::matmul/MatMul_1") {
+ return op;
+ }
+ }
+
+ return nullptr;
+}
+
+std::shared_ptr<ov::Model> KokoroSplit::create_model_a(const std::shared_ptr<ov::Model>& model,
+ const KokoroConfig& config) {
+ LOG_DEBUG("Generating Kokoro Model A");
+ OPENVINO_ASSERT(model);
+ auto model_a_source = model->clone();
+
+ // For model A we need to find three outputs
+ std::shared_ptr<ov::Node> pred_dur_node = find_pred_dur_node(model_a_source);
+ std::shared_ptr<ov::Node> en_matmul_node = find_en_matmul_node(model_a_source);
+ std::shared_ptr<ov::Node> asr_matmul_node = find_asr_matmul_node(model_a_source);
+
+ OPENVINO_ASSERT(pred_dur_node, "pred_dur node not found");
+ OPENVINO_ASSERT(en_matmul_node, "en_matmul node not found");
+ OPENVINO_ASSERT(asr_matmul_node, "asr_matmul node not found");
+
+ ov::Output<ov::Node> pred_dur_out;
+ if (auto res = ov::as_type_ptr<ov::op::v0::Result>(pred_dur_node)) {
+ pred_dur_out = res->input_value(0);
+ } else {
+ pred_dur_out = pred_dur_node->output(0);
+ }
+
+ auto en_lhs = en_matmul_node->input_value(0);
+ auto asr_lhs = asr_matmul_node->input_value(0);
+
+ ov::OutputVector outputs = {pred_dur_out, en_lhs, asr_lhs};
+ auto model_a = std::make_shared<ov::Model>(outputs, model_a_source->get_parameters(), "KokoroModelA");
+
+ model_a->validate_nodes_and_infer_types();
+ model_a->output(0).get_tensor().set_names({"pred_dur"});
+ model_a->output(1).get_tensor().set_names({"en_left"});
+ model_a->output(2).get_tensor().set_names({"asr_left"});
+
+ return model_a;
+}
+
+std::shared_ptr<ov::Model> ov::npuw::KokoroSplit::create_model_b(const std::shared_ptr<ov::Model>& model,
+ const KokoroConfig& config) {
+ LOG_DEBUG("Generating Kokoro Model B");
+ OPENVINO_ASSERT(model);
+ OPENVINO_ASSERT(config.block_size > 0, "Kokoro: block_size must be > 0");
+ auto model_b_source = model->clone();
+
+ std::shared_ptr<ov::Node> en_matmul_node = find_en_matmul_node(model_b_source);
+ std::shared_ptr<ov::Node> asr_matmul_node = find_asr_matmul_node(model_b_source);
+
+ OPENVINO_ASSERT(en_matmul_node, "en_matmul node not found in model B source");
+ OPENVINO_ASSERT(asr_matmul_node, "asr_matmul node not found in model B source");
+
+ // Get channels from LHS input of MatMul
+ // Shape is [..., channels, time] or similar.
+ auto get_channels = [](const std::shared_ptr<ov::Node>& node) -> size_t {
+ auto lhs = node->input_value(0);
+ auto shape = lhs.get_partial_shape();
+ OPENVINO_ASSERT(shape.rank().is_static() && shape.rank().get_length() >= 2, "MatMul LHS rank must be >= 2");
+ auto chan_dim = shape[shape.rank().get_length() - 2];
+ OPENVINO_ASSERT(chan_dim.is_static(), "MatMul LHS channel dimension must be static");
+ return chan_dim.get_length();
+ };
+
+ size_t en_channels = get_channels(en_matmul_node);
+ size_t asr_channels = get_channels(asr_matmul_node);
+
+ auto en_dtype = en_matmul_node->output(0).get_element_type();
+ auto asr_dtype = asr_matmul_node->output(0).get_element_type();
+
+ auto en_param = std::make_shared<ov::op::v0::Parameter>(
+ en_dtype,
+ ov::PartialShape{1,
+ static_cast<ov::Dimension::value_type>(en_channels),
+ static_cast<ov::Dimension::value_type>(config.block_size)});
+ en_param->set_friendly_name("en_block");
+ en_param->output(0).get_tensor().set_names({"en_block"});
+
+ auto asr_param = std::make_shared<ov::op::v0::Parameter>(
+ asr_dtype,
+ ov::PartialShape{1,
+ static_cast<ov::Dimension::value_type>(asr_channels),
+ static_cast<ov::Dimension::value_type>(config.block_size)});
+ asr_param->set_friendly_name("asr_block");
+ asr_param->output(0).get_tensor().set_names({"asr_block"});
+
+ // Replace MatMul outputs with parameters
+ en_matmul_node->output(0).replace(en_param->output(0));
+ asr_matmul_node->output(0).replace(asr_param->output(0));
+
+ // Collect parameters
+ ov::ParameterVector new_inputs;
+ for (const auto& param : model_b_source->get_parameters()) {
+ if (!param->output(0).get_target_inputs().empty()) {
+ new_inputs.push_back(param);
+ }
+ }
+ new_inputs.push_back(en_param);
+ new_inputs.push_back(asr_param);
+
+ auto model_b = std::make_shared<ov::Model>(model_b_source->get_results(), new_inputs, "KokoroModelB");
+ // Validate nodes to propagate shapes from new parameters
+ model_b->validate_nodes_and_infer_types();
+ return model_b;
+}
+
+} // namespace ov::npuw
diff --git a/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_split.hpp b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_split.hpp
new file mode 100644
index 00000000000..a32dda27175
--- /dev/null
+++ b/src/plugins/intel_npu/src/plugin/npuw/pipelines/kokoro/kokoro_split.hpp
@@ -0,0 +1,40 @@
+// Copyright (C) 2025 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include <cstdint>
+#include <memory>
+#include <string>
+
+#include "kokoro_compiled_model.hpp"
+#include "openvino/core/model.hpp"
+
+namespace ov {
+class Node;
+}
+
+namespace ov {
+namespace npuw {
+
+class KokoroSplit {
+public:
+ static KokoroSplitResult split_model(const std::shared_ptr<ov::Model>& model, const KokoroConfig& config);
+
+private:
+ // Create model A - up to pred_dur output
+ static std::shared_ptr<ov::Model> create_model_a(const std::shared_ptr<ov::Model>& model,
+ const KokoroConfig& config);
+
+ // Create model B - from pred_dur output to the end
+ static std::shared_ptr<ov::Model> create_model_b(const std::shared_ptr<ov::Model>& model,
+ const KokoroConfig& config);
+
+ static std::shared_ptr<ov::Node> find_pred_dur_node(const std::shared_ptr<ov::Model>& model);
+ static std::shared_ptr<ov::Node> find_en_matmul_node(const std::shared_ptr<ov::Model>& model);
+ static std::shared_ptr<ov::Node> find_asr_matmul_node(const std::shared_ptr<ov::Model>& model);
+};
+
+} // namespace npuw
+} // namespace ov
diff --git a/src/plugins/intel_npu/src/plugin/src/plugin.cpp b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
index db613aec82e..48d07358925 100644
--- a/src/plugins/intel_npu/src/plugin/src/plugin.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
@@ -397,6 +397,9 @@ void Plugin::init_options() {
REGISTER_OPTION(NPUW_LLM_GENERATE_ATTENTION_HINT);
REGISTER_OPTION(NPUW_LLM_SHARED_LM_HEAD_CONFIG);
REGISTER_OPTION(NPUW_LLM_ADDITIONAL_SHARED_LM_HEAD_CONFIG);
+ REGISTER_OPTION(NPUW_KOKORO);
+ REGISTER_OPTION(NPUW_KOKORO_BLOCK_SIZE);
+ REGISTER_OPTION(NPUW_KOKORO_OVERLAP_SIZE);
_globalConfig.enableRuntimeOptions();
diff --git a/src/plugins/intel_npu/src/plugin/src/properties.cpp b/src/plugins/intel_npu/src/plugin/src/properties.cpp
index 0a778a62061..ade86fb10c6 100644
--- a/src/plugins/intel_npu/src/plugin/src/properties.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/properties.cpp
@@ -491,6 +491,9 @@ void Properties::registerPluginProperties() {
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::whisper::enabled, NPUW_WHISPER);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::eagle::enabled, NPUW_EAGLE);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::text_embed::enabled, NPUW_TEXT_EMBED);
+ TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::kokoro::enabled, NPUW_KOKORO);
+ TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::kokoro::block_size, NPUW_KOKORO_BLOCK_SIZE);
+ TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::kokoro::overlap_size, NPUW_KOKORO_OVERLAP_SIZE);
// 2. Metrics (static device and enviroment properties)
// ========