Skip to content

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

[GPU][BUG] Incomplete conditions for sdpa prefill and head_size (#31727)

Luo Cheng32e7a5c03bc4
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_opt.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_opt.cpp
index 7a70112ab1b..1627b105371 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_opt.cpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/sdpa/sdpa_opt.cpp
@@ -123,7 +123,7 @@ public:
// So far this case was observed only from the non-lm models such as vision embedding model.
// If we need to optimize unaligned head size SDPA for 2nd+ token phase of LM model,
// we'll need to fix single_token kernel to support unaligned head size.
- if (is_prefill || unaligned_head_size(params)) {
+ if (is_prefill || unaligned_head_size(new_params)) {
GPU_DEBUG_TRACE_DETAIL << "execute multi_tokens for prefill with indirect = " << is_indirect << "\n";
return execute_stage(events, instance, is_indirect ? indirect_multi_tokens : regular_multi_tokens);
}