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
[GPU] Fixed wrong idx for applying attn_sink in pa_sdpa_opt (#32731)
Taylor Yeonbok Lee57751e72f65f
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.clindex 0070a30d4a1..4a7c7ca59e1 100644--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/paged_attention_opt.cl@@ -399,7 +399,7 @@ KERNEL(pa_sdpa_opt)(GET_VECTOR_ELEMENT(exp_sum, q_idx) = sub_group_reduce_add(GET_VECTOR_ELEMENT(exp_sum, q_idx));#ifdef HAS_SINK_INPUTconst uint head_idx = get_global_id(1);- GET_VECTOR_ELEMENT(exp_sum, head_idx) += (native_exp(TO_SOFTMAX_ACCUMULATOR_TYPE(sink_ptr[head_idx] - GET_VECTOR_ELEMENT(qk_max, q_idx))));+ GET_VECTOR_ELEMENT(exp_sum, q_idx) += (native_exp(TO_SOFTMAX_ACCUMULATOR_TYPE(sink_ptr[head_idx] - GET_VECTOR_ELEMENT(qk_max, q_idx))));#endif}