OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[NPUW] integration of LPT-fp8 passes for optimizing fp8 kv-cache behavior (#32448)
Eugene Smirnovcb4469d3333c
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.hppindex 4d13b70724f..aaeec83a001 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@@ -156,6 +156,7 @@ 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_OPTIMIZE_FP8, bool, false, npuw::llm::optimize_fp8, 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);DEFINE_OPT(NPUW_LLM_PREFIX_CACHING_MAX_NUM_BLOCKS, uint64_t, 128, npuw::llm::prefix_caching_max_num_blocks, 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.hppindex 15affde95b6..9d7bb61eb10 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@@ -537,6 +537,14 @@ static constexpr ov::Property<uint32_t> max_lora_rank{"NPUW_LLM_MAX_LORA_RANK"};*/static constexpr ov::Property<bool> optimize_v_tensors{"NPUW_LLM_OPTIMIZE_V_TENSORS"};+/**+ * @brief+ * Type: bool.+ * Tell NPUW to apply fp8 static quantisation pass from openvino low_precision library+ * Default value: false.+ */+static constexpr ov::Property<bool> optimize_fp8{"NPUW_LLM_OPTIMIZE_FP8"};+/*** @brief* Type: booleandiff --git a/src/plugins/intel_npu/src/al/src/config/npuw.cpp b/src/plugins/intel_npu/src/al/src/config/npuw.cppindex 2bb4be950d1..a8f6b58783a 100644--- a/src/plugins/intel_npu/src/al/src/config/npuw.cpp+++ b/src/plugins/intel_npu/src/al/src/config/npuw.cpp@@ -70,6 +70,7 @@ void intel_npu::registerNPUWLLMOptions(OptionsDesc& desc) {desc.add<NPUW_LLM_MIN_RESPONSE_LEN>();desc.add<NPUW_LLM_MAX_LORA_RANK>();desc.add<NPUW_LLM_OPTIMIZE_V_TENSORS>();+ desc.add<NPUW_LLM_OPTIMIZE_FP8>();desc.add<NPUW_LLM_CACHE_ROPE>();desc.add<NPUW_LLM_PREFILL_MOE_HINT>();desc.add<NPUW_LLM_GENERATE_MOE_HINT>();diff --git a/src/plugins/intel_npu/src/plugin/include/properties.hpp b/src/plugins/intel_npu/src/plugin/include/properties.hppindex 165d84c9b01..1c015357c16 100644--- a/src/plugins/intel_npu/src/plugin/include/properties.hpp+++ b/src/plugins/intel_npu/src/plugin/include/properties.hpp@@ -149,6 +149,7 @@ private:ov::intel_npu::npuw::llm::generate_attn_hint.name(),ov::intel_npu::npuw::llm::shared_lm_head_config.name(),ov::intel_npu::npuw::llm::additional_shared_lm_head_config.name(),+ ov::intel_npu::npuw::llm::optimize_fp8.name(),ov::intel_npu::npuw::eagle::enabled.name()};const std::vector<ov::PropertyName> _internalSupportedProperties = {ov::internal::caching_properties.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.cppindex 6ced5a65bfb..e9a02879051 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@@ -7,6 +7,10 @@#include "embedding_model_utils.hpp"#include "llm_infer_request.hpp"#include "logging.hpp"+#include "low_precision/concat.hpp"+#include "low_precision/kv_cache_concat.hpp"+#include "low_precision/low_precision.hpp"+#include "low_precision/move_fake_convert_up_through_kv_cache_concat.hpp"#include "openvino/op/convert.hpp"#include "openvino/op/greater.hpp"#include "openvino/op/group_query_attention.hpp"@@ -25,11 +29,13 @@#include "openvino/pass/validate.hpp"#include "openvino/runtime/iasync_infer_request.hpp"#include "openvino/runtime/properties.hpp"+#include "ov_ops/type_relaxed.hpp"#include "partitioning/patterns/moe.hpp"#include "partitioning/patterns/pre_compute.hpp"#include "partitioning/patterns/sdpa.hpp"#include "serialization.hpp"#include "transformations/convert_precision.hpp"+#include "transformations/op_conversions/fake_convert_decomposition.hpp"#include "util.hpp"#include "whisper_infer_request.hpp"@@ -48,7 +54,7 @@ public:auto param = opp::wrap_type<ov::op::v0::Parameter>();auto concat = opp::wrap_type<ov::op::v0::Concat>({param, opp::any_input()});- auto callback = [=](ov::pass::pattern::Matcher& m) {+ auto callback = [=](opp::Matcher& m) {auto& node_to_output = m.get_pattern_value_map();auto matched_param = ov::as_type_ptr<ov::op::v0::Parameter>(node_to_output.at(param).get_node_shared_ptr());auto matched_node_concat = node_to_output.at(concat).get_node_shared_ptr();@@ -82,9 +88,9 @@ class GroupQueryAttentionDecomposition : public ov::pass::MatcherPass {public:OPENVINO_MATCHER_PASS_RTTI("npuw::LLMCompiledModel::GroupQueryAttentionDecomposition");GroupQueryAttentionDecomposition(bool is_prefill_model) {- auto pattern_node = ov::pass::pattern::wrap_type<ov::op::internal::GroupQueryAttention>();+ auto pattern_node = opp::wrap_type<ov::op::internal::GroupQueryAttention>();- ov::matcher_pass_callback callback = [=](ov::pass::pattern::Matcher& m) {+ ov::matcher_pass_callback callback = [=](opp::Matcher& m) {auto& pattern_to_output = m.get_pattern_value_map();auto node = ov::as_type_ptr<ov::op::internal::GroupQueryAttention>(pattern_to_output.at(pattern_node).get_node_shared_ptr());@@ -98,7 +104,7 @@ public:return true;};- auto m = std::make_shared<ov::pass::pattern::Matcher>(pattern_node, "GroupQueryAttentionDecomposition");+ auto m = std::make_shared<opp::Matcher>(pattern_node, "GroupQueryAttentionDecomposition");register_matcher(m, std::move(callback));}@@ -312,6 +318,75 @@ public:}};+class RedirectNewKvToOutput : public ov::pass::MatcherPass {+public:+ RedirectNewKvToOutput() {+ auto match_down_up_convert_subgraph = [](const ov::Output<ov::Node>& input) {+ auto upconvert = opp::wrap_type<ov::op::v0::Convert>({input}, opp::type_matches(ov::element::f32));++ auto upscale = opp::wrap_type<ov::op::v0::Constant>(opp::rank_equals(0));+ auto upmul = opp::wrap_type<ov::op::v1::Multiply>({upconvert, upscale});++ auto downscale = opp::wrap_type<ov::op::v0::Constant>(opp::rank_equals(0));+ auto downmul = opp::wrap_type<ov::op::v1::Multiply>({upmul, downscale});++ auto downconvert =+ opp::wrap_type<ov::op::v0::Convert>({downmul},+ opp::type_matches_any({ov::element::f8e4m3, ov::element::f8e5m2}));++ return downconvert;+ };++ // example of fp8 inputs to concat+ // input0 : float8e4m3[1,32,1151,96]+ // input1 : float8e4m3[1,32,1,96]++ // parameter, or down_up subgraph case always works for current models-set+ // with both with fp8-optimisation flag enabled and without it+ // TODO: this matcher logic better to cover with unit-tests+ auto input0 = opp::wrap_type<ov::op::v0::Parameter>();+ auto input0_or =+ std::make_shared<opp::op::Or>(ov::OutputVector{input0, match_down_up_convert_subgraph(input0)});++ auto input1 = opp::any_input();++ auto kv_concat = opp::wrap_type<ov::op::v0::Concat>({input0_or, input1});+ auto result1 = opp::wrap_type<ov::op::v0::Result>(kv_concat);+ auto result2 = opp::wrap_type<ov::op::v0::Result>(match_down_up_convert_subgraph(kv_concat));++ auto result_or = std::make_shared<opp::op::Or>(ov::OutputVector{result1, result2});++ ov::matcher_pass_callback callback = [=](opp::Matcher& m) {+ auto& pattern_to_output = m.get_pattern_value_map();+ auto matched_concat = pattern_to_output.at(kv_concat).get_node_shared_ptr();++ auto c0 = matched_concat->input(0).get_source_output();+ auto c1 = matched_concat->input(1).get_source_output();++ LOG_DEBUG(m.get_name() << ": input0.shape=" << c0.get_shape());+ LOG_DEBUG(m.get_name() << ": input1.shape=" << c1.get_shape());+ LOG_DEBUG(m.get_name() << ": concat=" << matched_concat->get_friendly_name());+ LOG_DEBUG(m.get_name() << ": new_kv=" << c1.get_node_shared_ptr()->get_friendly_name());++ std::shared_ptr<ov::Node> matched_result;+ if (pattern_to_output.count(result1)) {+ matched_result = pattern_to_output.at(result1).get_node_shared_ptr();+ } else if (pattern_to_output.count(result2)) {+ matched_result = pattern_to_output.at(result2).get_node_shared_ptr();+ // TODO: need to check that upscale * downscale = 1+ // TODO: need to check input type is f8e5m2 or f8e4m3 if we use this version of concat+ }+ LOG_DEBUG(m.get_name() << ": matched_result=" << matched_result->get_friendly_name());++ matched_result->inputs()[0].replace_source_output(c1);++ return true;+ };++ register_matcher(std::make_shared<opp::Matcher>(result_or, "RedirectNewKvToOutput"), callback);+ }+};+class OldPhi3SlidingMaskMatcher : public ov::pass::MatcherPass {public:OPENVINO_MATCHER_PASS_RTTI("npuw::LLMCompiledModel::OldPhi3SlidingMaskMatcher");@@ -422,7 +497,7 @@ public:auto inv_sliding_attention_mask =opp::wrap_type<ov::op::v13::BitwiseOr>({look_only_future_mask, forget_left_tokens_mask});- auto callback = [=](ov::pass::pattern::Matcher& m) {+ auto callback = [=](opp::Matcher& m) {LOG_INFO("Found (4.51) pattern for Phi-3 Sliding Window Attention, will be replaced with custom for static ""shapes.");auto& node_to_output = m.get_pattern_value_map();@@ -557,7 +632,7 @@ public:auto sliding_and_causal_mask = opp::wrap_type<ov::op::v13::BitwiseAnd>({sliding_and_true, causal_mask});- auto callback = [=](ov::pass::pattern::Matcher& m) {+ auto callback = [=](opp::Matcher& m) {LOG_INFO("Found (4.53) pattern for Phi-3 Sliding Window Attention, will be replaced with custom for static ""shapes.");auto& node_to_output = m.get_pattern_value_map();@@ -660,6 +735,46 @@ public:}};+class FakeConvertDestinationTypeExtractor : public ov::pass::MatcherPass {+public:+ FakeConvertDestinationTypeExtractor(std::set<ov::element::Type>& fcDestinationTypes) {+ auto fake_convert_m = opp::wrap_type<ov::op::v13::FakeConvert>();++ ov::matcher_pass_callback callback = [=, &fcDestinationTypes](opp::Matcher& m) {+ const auto& pattern_to_output = m.get_pattern_value_map();+ const auto fake_convert =+ ov::as_type_ptr<ov::op::v13::FakeConvert>(pattern_to_output.at(fake_convert_m).get_node_shared_ptr());++ if (fake_convert == nullptr) {+ return false;+ }+ fcDestinationTypes.insert(fake_convert->get_destination_element_type());+ return true;+ };+ register_matcher(std::make_shared<opp::Matcher>(fake_convert_m, "FakeConvertDestinationTypeExtractor"),+ callback);+ }+};++class ConvertTypeRelaxedToRegular : public ov::pass::MatcherPass {+public:+ ConvertTypeRelaxedToRegular() {+ auto pattern = opp::wrap_type<ov::op::TypeRelaxed<ov::op::v1::Multiply>>();++ ov::matcher_pass_callback callback = [](opp::Matcher& m) {+ auto tr_mul = std::dynamic_pointer_cast<ov::op::TypeRelaxed<ov::opset1::Multiply>>(m.get_match_root());+ if (tr_mul) {+ auto new_mul = std::make_shared<ov::opset1::Multiply>(tr_mul->input_value(0), tr_mul->input_value(1));+ new_mul->set_friendly_name(tr_mul->get_friendly_name());+ ov::copy_runtime_info(tr_mul, new_mul);+ ov::replace_node(tr_mul, new_mul);+ }+ return true;+ };++ register_matcher(std::make_shared<opp::Matcher>(pattern, "ConvertTypeRelaxedToRegular"), callback);+ }+};class Phi3SlidingMask : public ov::pass::ModelPass {public:OPENVINO_MODEL_PASS_RTTI("ov::npuw::LLMCompiledModel::Phi3SlidingMask");@@ -699,51 +814,72 @@ namespace {uint32_t align_to(uint32_t value, uint32_t alignment) {return (value + alignment - 1) & ~(alignment - 1);}-bool is_aligned_to(uint32_t value, uint32_t alignment) {return value % alignment == 0;}-std::shared_ptr<ov::Model> cvt_kvcache_to_fp16(const std::shared_ptr<ov::Model>& model) {+std::shared_ptr<ov::Model> cvt_kvcache_to_low_precision(const std::shared_ptr<ov::Model>& model,+ const ov::element::Type lptype) {ov::preprocess::PrePostProcessor ppp(model);for (const auto& tensor : model->inputs()) {if (tensor.get_any_name().find("past_key") != std::string::npos) {- ppp.input(tensor.get_any_name()).tensor().set_element_type(ov::element::Type_t::f16);+ ppp.input(tensor.get_any_name()).tensor().set_element_type(lptype);}}for (const auto& tensor : model->outputs()) {if (tensor.get_any_name().find("present") != std::string::npos) {- ppp.output(tensor.get_any_name()).tensor().set_element_type(ov::element::Type_t::f16);+ ppp.output(tensor.get_any_name()).tensor().set_element_type(lptype);}}return ppp.build();}-std::shared_ptr<ov::Model> redirect_new_kv_to_output(const std::shared_ptr<ov::Model>& model) {- for (std::size_t i = ov::npuw::LLMInferRequest::layer_ids::kStartOutputKVCacheLayers; i < model->outputs().size();- ++i) {- auto kvout = model->output(i);-- // Skip outputs that are not KV cache (e.g., last_hidden_state)- // KV cache outputs follow the pattern: present.{layer}.key or present.{layer}.value- const auto& output_name = kvout.get_any_name();- bool is_kv_cache =- (output_name.find("present") != std::string::npos) &&- (output_name.find("key") != std::string::npos || output_name.find("value") != std::string::npos);- if (!is_kv_cache) {- continue;- }+ov::element::Type optimize_kv_cache_storage(const std::shared_ptr<ov::Model>& model) {+ LOG_DEBUG("Running FP8 static quantization on model: " << model->get_name());++ auto kv_kache_storage_type = ov::element::f16;++ ov::pass::low_precision::LayerTransformation::Params params;+ std::set<ov::element::Type> fcTypesInput, fcTypesRemained;- auto kvrslt = kvout.get_node();- auto kvcat = kvrslt->inputs()[0].get_source_output().get_node();- auto kvval = kvcat->inputs()[1].get_source_output();- kvval.set_names({kvout.get_any_name()});- kvrslt->inputs()[0].replace_source_output(kvval);+ ov::pass::Manager manager("optimize_fp8");+ params.defaultPrecisions = ov::pass::low_precision::precision_set::get_fp8_support();+ manager.register_pass<FakeConvertDestinationTypeExtractor>(fcTypesInput);+ manager.register_pass<ov::pass::low_precision::MoveFakeConvertUpThroughKVCacheConcat>();+ auto graph_rewrite = manager.register_pass<ov::pass::GraphRewrite>();+ graph_rewrite->add_matcher<ov::pass::FakeConvertDecomposition>();+ graph_rewrite->add_matcher<ov::pass::low_precision::ConcatTransformation>(params);+ graph_rewrite->add_matcher<ov::pass::low_precision::KVCacheConcat>(model);+ manager.register_pass<ConvertTypeRelaxedToRegular>();+ manager.register_pass<FakeConvertDestinationTypeExtractor>(fcTypesRemained);+ manager.run_passes(model);+ if (fcTypesInput.empty()) {+ LOG_WARN("FakeConvert layers not detected - leaving kv-cache in " << kv_kache_storage_type << " precision");+ } else if (!fcTypesRemained.empty()) {+ LOG_WARN(fcTypesRemained.size() << " FakeConvert layers not decomposed - leaving kv-cache in "+ << kv_kache_storage_type << " precision");+ } else if (fcTypesInput.size() > 1) {+ auto it2 = std::next(fcTypesInput.begin(), 1);+ LOG_WARN("FakeConvert layers had several precisions (" << fcTypesInput.size() << ")-" << *fcTypesInput.begin()+ << ", " << *it2 << ", ... "+ << "supported only single precision");+ LOG_WARN("Leaving KV-cache in " << kv_kache_storage_type << " precision");+ } else {+ kv_kache_storage_type = *fcTypesInput.begin();+ LOG_DEBUG("KV cache storage precision changed to " << kv_kache_storage_type);}+ return kv_kache_storage_type;+}++std::shared_ptr<ov::Model> redirect_new_kv_to_output(const std::shared_ptr<ov::Model>& model) {+ ov::pass::Manager manager("redirect_new_kv_to_output");+ manager.register_pass<RedirectNewKvToOutput>();+ manager.run_passes(model);model->validate_nodes_and_infer_types();+return model;}@@ -794,14 +930,14 @@ public:auto tanh = opp::wrap_type<ov::op::v0::Tanh>({div});auto matmul_multiply = opp::wrap_type<ov::op::v1::Multiply>({tanh, opp::any_input()});- auto last_op = std::make_shared<ov::pass::pattern::op::Or>(ov::OutputVector{matmul->output(0),- matmul_add->output(0),- matmul_transpose->output(0),- matmul_convert->output(0),- matmul_multiply->output(0)});+ auto last_op = std::make_shared<opp::op::Or>(ov::OutputVector{matmul->output(0),+ matmul_add->output(0),+ matmul_transpose->output(0),+ matmul_convert->output(0),+ matmul_multiply->output(0)});auto res = opp::wrap_type<ov::op::v0::Result>({last_op->output(0)});- auto callback = [=, &lm_head_model](ov::pass::pattern::Matcher& m) {+ auto callback = [=, &lm_head_model](opp::Matcher& m) {auto& node_to_output = m.get_pattern_value_map();auto matched_node_matmul = node_to_output.at(matmul).get_node_shared_ptr();@@ -1417,6 +1553,8 @@ ov::npuw::LLMCompiledModel::LLMCompiledModel(const std::shared_ptr<ov::Model>& msplit_llm_properties(properties, npuw_llm_props, other_props);auto use_whisper_key = pop_option(other_props, std::string("NPUW_WHISPER"));auto use_eagle_key = pop_option(other_props, std::string("NPUW_EAGLE"));+ auto kv_cache_precision_hint = pop_option(other_props, ov::hint::kv_cache_precision.name());+// Solely used for serialization at the momentm_non_llm_props = other_props;@@ -1433,6 +1571,23 @@ ov::npuw::LLMCompiledModel::LLMCompiledModel(const std::shared_ptr<ov::Model>& mrefine_dynamic_props(npuw_llm_props, npudesc);m_cfg.update(any_copy(npuw_llm_props));+ auto kv_kache_storage_type = ov::element::f16;++ // kv-cache-precision changes to fp8 does make sense unconditionally only if LPT passes succesfully applied+ if (m_cfg.get<::intel_npu::NPUW_LLM_OPTIMIZE_FP8>()) {+ kv_kache_storage_type = optimize_kv_cache_storage(model);+ }++ // ov::kv_cache_precision hint can additionally change kv-cache precision, but it might lead to less accurate+ // results+ if (kv_cache_precision_hint.has_value()) {+ auto suggested_kv_cache_precision = kv_cache_precision_hint.value().as<ov::element::Type>();+ if (kv_kache_storage_type != suggested_kv_cache_precision) {+ LOG_WARN("KV-cache precision HINT: " << suggested_kv_cache_precision << " applied");+ kv_kache_storage_type = suggested_kv_cache_precision;+ }+ }+m_is_whisper = use_whisper_key.value_or(false).as<bool>() == true;if (m_is_whisper) {m_cfg.update({{"NPUW_LLM_SHARED_HEAD", "NO"}});@@ -1653,6 +1808,7 @@ ov::npuw::LLMCompiledModel::LLMCompiledModel(const std::shared_ptr<ov::Model>& mif (!m_is_embedding) {if (!m_use_chunk_prefill) {+ // TODO: sometimes it is ok if we cannot find any empty inputs or not?NPUW_ASSERT(remove_empty_kv_inputs(prefill_model));} else {LOG_DEBUG("Don't remove input key/values from prefill model.");@@ -1668,10 +1824,10 @@ ov::npuw::LLMCompiledModel::LLMCompiledModel(const std::shared_ptr<ov::Model>& mLOG_DEBUG("Converting KV-cache in generate model to FP16.");for (size_t i = 0; i < generate_model_variants.size(); ++i) {- generate_model_variants[i] = cvt_kvcache_to_fp16(generate_model_variants[i]);+ generate_model_variants[i] = cvt_kvcache_to_low_precision(generate_model_variants[i], kv_kache_storage_type);}LOG_DEBUG("Converting KV-cache in prefill model to FP16.");- prefill_model = cvt_kvcache_to_fp16(prefill_model);+ prefill_model = cvt_kvcache_to_low_precision(prefill_model, kv_kache_storage_type);auto prefill_config =prefill_config_opt.value_or(get_default_prefill_config(prefill_model, npudesc)).as<ov::AnyMap>();@@ -2278,6 +2434,7 @@ void ov::npuw::LLMCompiledModel::implement_properties() {BIND(npuw::llm::max_prompt_len, NPUW_LLM_MAX_PROMPT_LEN, get),BIND(npuw::llm::min_response_len, NPUW_LLM_MIN_RESPONSE_LEN, get),BIND(npuw::llm::optimize_v_tensors, NPUW_LLM_OPTIMIZE_V_TENSORS, get),+ BIND(npuw::llm::optimize_fp8, NPUW_LLM_OPTIMIZE_FP8, get),BIND(npuw::llm::cache_rope, NPUW_LLM_CACHE_ROPE, get),BIND(npuw::llm::prefill_moe_hint, NPUW_LLM_PREFILL_MOE_HINT, get),BIND(npuw::llm::generate_moe_hint, NPUW_LLM_GENERATE_MOE_HINT, get),diff --git a/src/plugins/intel_npu/src/plugin/src/plugin.cpp b/src/plugins/intel_npu/src/plugin/src/plugin.cppindex 1a54655dfba..c17e716e9e4 100644--- a/src/plugins/intel_npu/src/plugin/src/plugin.cpp+++ b/src/plugins/intel_npu/src/plugin/src/plugin.cpp@@ -387,6 +387,7 @@ void Plugin::init_options() {REGISTER_OPTION(NPUW_LLM_MAX_GENERATION_TOKEN_LEN);REGISTER_OPTION(NPUW_LLM_MIN_RESPONSE_LEN);REGISTER_OPTION(NPUW_LLM_OPTIMIZE_V_TENSORS);+ REGISTER_OPTION(NPUW_LLM_OPTIMIZE_FP8);REGISTER_OPTION(NPUW_LLM_CACHE_ROPE);REGISTER_OPTION(NPUW_LLM_PREFILL_MOE_HINT);REGISTER_OPTION(NPUW_LLM_GENERATE_MOE_HINT);diff --git a/src/plugins/intel_npu/src/plugin/src/properties.cpp b/src/plugins/intel_npu/src/plugin/src/properties.cppindex 25f65bd1cd0..1fdf1faa0af 100644--- a/src/plugins/intel_npu/src/plugin/src/properties.cpp+++ b/src/plugins/intel_npu/src/plugin/src/properties.cpp@@ -466,6 +466,7 @@ void Properties::registerPluginProperties() {TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::max_generation_token_len, NPUW_LLM_MAX_GENERATION_TOKEN_LEN);TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::min_response_len, NPUW_LLM_MIN_RESPONSE_LEN);TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::optimize_v_tensors, NPUW_LLM_OPTIMIZE_V_TENSORS);+ TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::optimize_fp8, NPUW_LLM_OPTIMIZE_FP8);TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::cache_rope, NPUW_LLM_CACHE_ROPE);TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::prefill_moe_hint, NPUW_LLM_PREFILL_MOE_HINT);TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::npuw::llm::generate_moe_hint, NPUW_LLM_GENERATE_MOE_HINT);