Skip to content

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

[NPUW]Extend Host Gather to support GPT-OSS. (#33355)

intelgaoxiong9458c10483e8
diff --git a/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp b/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp
index 2f8df0ed28e..00d354e182e 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp
@@ -1531,7 +1531,8 @@ HostGather::HostGather(Context::Ref ctx) {
auto cvtids = opp::optional<ov::op::v0::Convert>({pids->output(0)});
auto qweight = opp::wrap_type<ov::op::v0::Parameter>();
- auto qgthrw = opp::wrap_type<ov::op::v8::Gather>({qweight, cvtids, opp::any_input()});
+ auto qweight_cvt = opp::optional<ov::op::v0::Convert>({qweight->output(0)});
+ auto qgthrw = opp::wrap_type<ov::op::v8::Gather>({qweight_cvt, cvtids, opp::any_input()});
auto callback = [=](ov::pass::pattern::Matcher& m) {
auto& node_to_output = m.get_pattern_value_map();