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: Limit Quant Gather to arch 3270/4000 (#31670)
Dmitry Matveev8033685170dd
diff --git a/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp b/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cppindex 291cf649155..0c27bc372c3 100644--- a/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp+++ b/src/plugins/intel_npu/src/plugin/npuw/compiled_model.cpp@@ -565,9 +565,20 @@ bool ov::npuw::CompiledModel::should_use_quantized_host_gather(const std::shared// Check the compiler versionconst auto npu_devices = get_plugin()->get_core()->get_property("NPU", ov::available_devices);+ const auto is_suitable_arch = [](const std::string& arch) {+ return arch == "3720" || arch == "4000";+ };+ const auto is_suitable_comp = [](int64_t ver) {+ return ver >= ONEAPI_MAKE_VERSION(7, 21);+ };const bool compiler_version_enough =!npu_devices.empty() &&- get_plugin()->get_core()->get_property("NPU", ov::intel_npu::compiler_version) >= ONEAPI_MAKE_VERSION(7, 21);+ is_suitable_arch(get_plugin()->get_core()->get_property("NPU", ov::device::architecture)) &&+ is_suitable_comp(get_plugin()->get_core()->get_property("NPU", ov::intel_npu::compiler_version));+ // FIXME: go from+ // get_plugin()->get_core()->get_property("NPU", ..+ // to+ /// plugin->get_property(..const bool can_enable_hgq = pattern_matched && (compiler_version_enough || npu_devices.empty());