Skip to content

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

[CPU] reduce QKV fusion threshold to avoid regression on Qwen1.5B (#30560)

Tingqian Lid4d19f619e77
diff --git a/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp b/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp
index 45de01a80e3..efdcbb62023 100644
--- a/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp
+++ b/src/plugins/intel_cpu/src/nodes/qkv_proj.cpp
@@ -442,7 +442,8 @@ bool QKVProjection::isSupportedOperation(const std::shared_ptr<const ov::Node>&
return false;
}
- if (config.hidden_size < CACHE_BLK_K_SIZE * 8) {
+ if (config.hidden_size < 1536) {
+ // this threashold is determined by Qwen1.5B
errorMessage = "QKVProjection input channel size is too small";
return false;
}