Skip to content

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

[NPUW] Fix scales processing in CWAI for nf4 (#28523)

Ekaterina Shiryaeva155f6968b00e
diff --git a/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/dcoff.cpp b/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/dcoff.cpp
index 93a43c9b825..a4a03dea982 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/dcoff.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/dcoff.cpp
@@ -890,7 +890,8 @@ CWAI3::CWAI3(CWAI3::Results scales) {
auto matched_valueA = std::static_pointer_cast<ov::op::v0::Constant>(matched_nodeA);
auto matched_valueC = std::static_pointer_cast<ov::op::v0::Constant>(matched_nodeC);
- if (ov::element::i4 == matched_valueA->get_element_type() &&
+ if ((ov::element::i4 == matched_valueA->get_element_type() ||
+ ov::element::nf4 == matched_valueA->get_element_type()) &&
(ov::element::f16 == matched_valueC->get_element_type() ||
ov::element::f32 == matched_valueC->get_element_type())) {
LOG_DEBUG("Matched: " << matched_valueC);