Skip to content

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

a fix of CB pipeline break with GPU (#28429)

cecilia peng63cb6154b320
diff --git a/src/core/src/op/paged_attention.cpp b/src/core/src/op/paged_attention.cpp
index a724e46499a..4d2cdc3e1fd 100644
--- a/src/core/src/op/paged_attention.cpp
+++ b/src/core/src/op/paged_attention.cpp
@@ -179,7 +179,7 @@ void PagedAttentionExtension::validate_and_infer_types() {
NODE_VALIDATION_CHECK(this,
get_input_element_type(15).is_dynamic() || get_input_element_type(15) == element::f32 ||
get_input_element_type(15) == element::f16,
- "Element type of `rotation_trig_lut` input should be f32, but it is ",
+ "Element type of `rotation_trig_lut` input should be f32 or f16, but it is ",
get_input_element_type(15),
".");
}
diff --git a/src/plugins/intel_gpu/src/plugin/ops/paged_attention.cpp b/src/plugins/intel_gpu/src/plugin/ops/paged_attention.cpp
index f8f14102eb9..36e802a59d1 100644
--- a/src/plugins/intel_gpu/src/plugin/ops/paged_attention.cpp
+++ b/src/plugins/intel_gpu/src/plugin/ops/paged_attention.cpp
@@ -48,7 +48,6 @@ static void CreatePagedAttentionExtensionOp(ProgramBuilder& p, const std::shared
const size_t scale_idx = 9;
const size_t alibi_idx = 11;
- const size_t rotated_block_indices_idx = 13;
std::shared_ptr<ov::op::v0::Constant> scale_const = ov::as_type_ptr<ov::op::v0::Constant>(op->get_input_node_shared_ptr(scale_idx));
if (scale_const) {
@@ -65,11 +64,6 @@ static void CreatePagedAttentionExtensionOp(ProgramBuilder& p, const std::shared
prim.num_outputs = 1;
- std::shared_ptr<ov::op::v0::Constant> rotated_block_indices_const =
- ov::as_type_ptr<ov::op::v0::Constant>(op->get_input_node_shared_ptr(rotated_block_indices_idx));
- OPENVINO_ASSERT(rotated_block_indices_const != nullptr);
- prim.has_rotated_blocks = ov::shape_size(rotated_block_indices_const->get_output_shape(0)) > 0;
-
if (op->get_output_size() > 1) {
const auto scores_output_idx = 1;
const auto& users = op->get_output_target_inputs(scores_output_idx);