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
[Op][Core] Align PagedLinearAttention input type validation - restrict indices related inputs to be i32 (#38012)
Katarzyna Mitrusa2d8a369dfed
diff --git a/src/core/dev_api/openvino/op/paged_causal_conv1d.hpp b/src/core/dev_api/openvino/op/paged_causal_conv1d.hppindex 45618b058cf..20a3f5fb48f 100644--- a/src/core/dev_api/openvino/op/paged_causal_conv1d.hpp+++ b/src/core/dev_api/openvino/op/paged_causal_conv1d.hpp@@ -26,15 +26,15 @@ public:/// \param conv_weight Convolution weight [out_channels, hidden_size/group_size, conv_kernel_size]./// \param conv_bias Convolution bias [out_channels] or [0] (empty = no bias)./// \param subsequence_begins Start indices of tokens from current sequences [batch_size_in_sequences+1],- /// element type i32 or i64.+ /// element type i32./// \param la_block_indices Logical block slots containing physical indices along 0-th dim in conv_state table- /// [num_logical_blocks], element type i32 or i64.+ /// [num_logical_blocks], element type i32./// \param la_block_indices_begins Defines how block indices are split among sequences [batch_size_in_sequences+1],- /// element type i32 or i64.+ /// element type i32./// \param processed_tokens Number of tokens already handled per sequence [batch_size_in_sequences],- /// element type i32 or i64.+ /// element type i32./// \param cache_interval Interval between tokens to cache conv_state [batch_size_in_sequences],- /// element type i32 or i64.+ /// element type i32.PagedCausalConv1D(const Output<Node>& input_embeds,const Output<Node>& conv_state_table,const Output<Node>& conv_weight,diff --git a/src/core/dev_api/openvino/op/paged_gated_delta_net.hpp b/src/core/dev_api/openvino/op/paged_gated_delta_net.hppindex 5226209269c..43118fa8aea 100644--- a/src/core/dev_api/openvino/op/paged_gated_delta_net.hpp+++ b/src/core/dev_api/openvino/op/paged_gated_delta_net.hpp@@ -34,15 +34,15 @@ public:/// \param gate Gate tensor [batch_size_in_tokens, v_num_heads]./// \param beta Beta tensor [batch_size_in_tokens, v_num_heads]./// \param subsequence_begins Start indices of tokens from current sequences [batch_size_in_sequences+1],- /// element type i32 or i64.+ /// element type i32./// \param la_block_indices Block index along 0-th dim in recurrent_state table [num_blocks],- /// element type i32 or i64.+ /// element type i32./// \param la_block_indices_begins Defines how block indices are split among sequences [batch_size_in_sequences+1],- /// element type i32 or i64.+ /// element type i32./// \param processed_tokens Number of tokens already handled per sequence [batch_size_in_sequences],- /// element type i32 or i64.+ /// element type i32./// \param cache_interval Interval between tokens to cache state [batch_size_in_sequences],- /// element type i32 or i64.+ /// element type i32./// \param use_qk_l2norm Enables q/k L2-normalization inside this op./// \param q_l2_norm_eps Positive floating-point epsilon used for query L2-normalization./// \param k_l2_norm_eps Positive floating-point epsilon used for key L2-normalization.diff --git a/src/core/dev_api/openvino/op/paged_selective_ssm.hpp b/src/core/dev_api/openvino/op/paged_selective_ssm.hppindex 62cf8f4c3cc..43cd2d9e351 100644--- a/src/core/dev_api/openvino/op/paged_selective_ssm.hpp+++ b/src/core/dev_api/openvino/op/paged_selective_ssm.hpp@@ -44,15 +44,15 @@ public:/// \param recurrent_state_table Paged table of recurrent state snapshots, updated in place/// [num_physical_blocks, num_heads, head_dim, state_size]; an all-zeros tensor before any tokens are cached./// \param subsequence_begins Start indices of each sequence's tokens in the flattened token batch- /// [batch_size_in_sequences + 1], element type i32 or i64.+ /// [batch_size_in_sequences + 1], element type i32./// \param la_block_indices Physical block row indices into recurrent_state_table, concatenated across- /// all sequences [num_logical_blocks], element type i32 or i64.+ /// all sequences [num_logical_blocks], element type i32./// \param la_block_indices_begins Splits la_block_indices among sequences- /// [batch_size_in_sequences + 1], element type i32 or i64.+ /// [batch_size_in_sequences + 1], element type i32./// \param num_processed_tokens Number of tokens already processed for each sequence- /// [batch_size_in_sequences], element type i32 or i64.+ /// [batch_size_in_sequences], element type i32./// \param cache_interval Interval (in tokens) at which the recurrent state is cached for each sequence;- /// a value <= 0 disables caching [batch_size_in_sequences], element type i32 or i64.+ /// a value <= 0 disables caching [batch_size_in_sequences], element type i32.PagedSelectiveSSM(const Output<Node>& A,const Output<Node>& dt,const Output<Node>& B,diff --git a/src/core/src/op/paged_causal_conv1d.cpp b/src/core/src/op/paged_causal_conv1d.cppindex 3d4538da4b9..d1079a430dc 100644--- a/src/core/src/op/paged_causal_conv1d.cpp+++ b/src/core/src/op/paged_causal_conv1d.cpp@@ -65,8 +65,8 @@ void PagedCausalConv1D::validate_and_infer_types() {for (size_t i = 4; i < 9; ++i) {const auto& et = get_input_element_type(i);NODE_VALIDATION_CHECK(this,- et.is_dynamic() || et == ov::element::i32 || et == ov::element::i64,- "Integer inputs must have i32 or i64 element type.");+ et.is_dynamic() || et == ov::element::i32,+ "Integer inputs must have i32 element type.");}const auto output_shapes = shape_infer(this, ov::util::get_node_input_partial_shapes(*this));diff --git a/src/core/src/op/paged_gated_delta_net.cpp b/src/core/src/op/paged_gated_delta_net.cppindex d70640fe5cf..082fa3365fd 100644--- a/src/core/src/op/paged_gated_delta_net.cpp+++ b/src/core/src/op/paged_gated_delta_net.cpp@@ -84,8 +84,8 @@ void PagedGatedDeltaNet::validate_and_infer_types() {for (size_t i = 6; i < 11; ++i) {const auto& et = get_input_element_type(i);NODE_VALIDATION_CHECK(this,- et.is_dynamic() || et == ov::element::i32 || et == ov::element::i64,- "Integer inputs must have i32 or i64 element type.");+ et.is_dynamic() || et == ov::element::i32,+ "Integer inputs must have i32 element type.");}NODE_VALIDATION_CHECK(this,diff --git a/src/core/src/op/paged_selective_ssm.cpp b/src/core/src/op/paged_selective_ssm.cppindex a2ede7aa7ed..51bb9d78ac3 100644--- a/src/core/src/op/paged_selective_ssm.cpp+++ b/src/core/src/op/paged_selective_ssm.cpp@@ -66,19 +66,12 @@ void PagedSelectiveSSM::validate_and_infer_types() {state_type == ov::element::bf16,"PagedSelectiveSSM recurrent_state_table must have f32, f16, or bf16 element type.");- ov::element::Type common_index_type = get_input_element_type(6);- bool index_types_merge = true;- for (size_t input = 7; input < 11; ++input) {- index_types_merge &=- ov::element::Type::merge(common_index_type, common_index_type, get_input_element_type(input));+ for (size_t input = 6; input < 11; ++input) {+ const auto& et = get_input_element_type(input);+ NODE_VALIDATION_CHECK(this,+ et.is_dynamic() || et == ov::element::i32,+ "PagedSelectiveSSM metadata inputs must have i32 element type.");}- NODE_VALIDATION_CHECK(this,- index_types_merge,- "PagedSelectiveSSM expects all metadata inputs to have the same element type.");- NODE_VALIDATION_CHECK(this,- common_index_type.is_dynamic() || common_index_type == ov::element::i32 ||- common_index_type == ov::element::i64,- "PagedSelectiveSSM metadata inputs must have i32 or i64 element type.");const auto output_shapes = shape_infer(this, ov::util::get_node_input_partial_shapes(*this));set_output_type(0, common_float_type, output_shapes[0]);diff --git a/src/core/tests/type_prop/paged_causal_conv1d.cpp b/src/core/tests/type_prop/paged_causal_conv1d.cppindex 2e4f3d96586..05710a23d05 100644--- a/src/core/tests/type_prop/paged_causal_conv1d.cpp+++ b/src/core/tests/type_prop/paged_causal_conv1d.cpp@@ -321,7 +321,7 @@ TEST_F(TypePropPagedCausalConv1DTest, conv_bias_size_mismatch) {"conv_weight or equal to 0 (no bias)"));}-TEST_F(TypePropPagedCausalConv1DTest, i64_integer_inputs_accepted) {+TEST_F(TypePropPagedCausalConv1DTest, i64_integer_inputs_rejected) {const auto input_embeds = std::make_shared<op::v0::Parameter>(element::f32, Shape{10, 256});const auto conv_state_table = std::make_shared<op::v0::Parameter>(element::f32, Shape{5, 256, 4});const auto conv_weight = std::make_shared<op::v0::Parameter>(element::f32, Shape{256, 256, 4});@@ -332,19 +332,17 @@ TEST_F(TypePropPagedCausalConv1DTest, i64_integer_inputs_accepted) {const auto processed_tokens = std::make_shared<op::v0::Parameter>(element::i64, Shape{2});const auto cache_interval = std::make_shared<op::v0::Parameter>(element::i64, Shape{2});- const auto op = make_op(OutputVector{input_embeds,- conv_state_table,- conv_weight,- conv_bias,- subsequence_begins,- la_block_indices,- la_block_indices_begins,- processed_tokens,- cache_interval});-- EXPECT_EQ(op->get_output_size(), 1);- EXPECT_EQ(op->get_output_element_type(0), element::f32);- EXPECT_EQ(op->get_output_partial_shape(0), PartialShape(Shape{10, 256}));+ OV_EXPECT_THROW(std::ignore = make_op(OutputVector{input_embeds,+ conv_state_table,+ conv_weight,+ conv_bias,+ subsequence_begins,+ la_block_indices,+ la_block_indices_begins,+ processed_tokens,+ cache_interval}),+ NodeValidationFailure,+ testing::HasSubstr("Integer inputs must have i32 element type."));}TEST_F(TypePropPagedCausalConv1DTest, invalid_subsequence_begins_rank) {@@ -392,7 +390,7 @@ TEST_F(TypePropPagedCausalConv1DTest, invalid_integer_type) {processed_tokens,cache_interval}),NodeValidationFailure,- testing::HasSubstr("Integer inputs must have i32 or i64 element type."));+ testing::HasSubstr("Integer inputs must have i32 element type."));}TEST_F(TypePropPagedCausalConv1DTest, empty_conv_bias) {diff --git a/src/core/tests/type_prop/paged_gated_delta_net.cpp b/src/core/tests/type_prop/paged_gated_delta_net.cppindex 32542275461..1529dd02f37 100644--- a/src/core/tests/type_prop/paged_gated_delta_net.cpp+++ b/src/core/tests/type_prop/paged_gated_delta_net.cpp@@ -575,7 +575,7 @@ TEST_F(TypePropPagedGatedDeltaNetTest, float_type_mismatch_among_query_key_value"same element type."));}-TEST_F(TypePropPagedGatedDeltaNetTest, i64_integer_inputs) {+TEST_F(TypePropPagedGatedDeltaNetTest, i64_integer_inputs_rejected) {const auto query = std::make_shared<op::v0::Parameter>(element::f32, Shape{10, 4, 8});const auto key = std::make_shared<op::v0::Parameter>(element::f32, Shape{10, 4, 8});const auto value = std::make_shared<op::v0::Parameter>(element::f32, Shape{10, 4, 16});@@ -588,21 +588,19 @@ TEST_F(TypePropPagedGatedDeltaNetTest, i64_integer_inputs) {const auto processed_tokens = std::make_shared<op::v0::Parameter>(element::i64, Shape{2});const auto cache_interval = std::make_shared<op::v0::Parameter>(element::i64, Shape{2});- const auto op = make_op(OutputVector{query,- key,- value,- state,- gate,- beta,- subsequence_begins,- la_block_indices,- la_block_indices_begins,- processed_tokens,- cache_interval});-- EXPECT_EQ(op->get_output_size(), 1);- EXPECT_EQ(op->get_output_element_type(0), element::f32);- EXPECT_EQ(op->get_output_partial_shape(0), PartialShape(Shape{10, 4, 16}));+ OV_EXPECT_THROW(std::ignore = make_op(OutputVector{query,+ key,+ value,+ state,+ gate,+ beta,+ subsequence_begins,+ la_block_indices,+ la_block_indices_begins,+ processed_tokens,+ cache_interval}),+ NodeValidationFailure,+ testing::HasSubstr("Integer inputs must have i32 element type"));}TEST_F(TypePropPagedGatedDeltaNetTest, subsequence_begins_incompatible_rank) {@@ -658,7 +656,7 @@ TEST_F(TypePropPagedGatedDeltaNetTest, subsequence_begins_incompatible_type) {processed_tokens,cache_interval}),NodeValidationFailure,- testing::HasSubstr("Integer inputs must have i32 or i64 element type"));+ testing::HasSubstr("Integer inputs must have i32 element type"));}TEST_F(TypePropPagedGatedDeltaNetTest, q_l2norm_eps_incompatible_negative) {diff --git a/src/core/tests/type_prop/paged_selective_ssm.cpp b/src/core/tests/type_prop/paged_selective_ssm.cppindex 18d366b990c..07b2b92faa4 100644--- a/src/core/tests/type_prop/paged_selective_ssm.cpp+++ b/src/core/tests/type_prop/paged_selective_ssm.cpp@@ -102,7 +102,7 @@ TEST(type_prop, paged_selective_ssm_state_type_is_independent) {EXPECT_EQ(op->get_output_element_type(0), data_type);};- check_types(element::f16, element::bf16, element::i64);+ check_types(element::f16, element::bf16, element::i32);check_types(element::f32, element::f16, element::i32);check_types(element::f16, element::f32, element::i32);check_types(element::f32, element::dynamic, element::i32);@@ -137,7 +137,20 @@ TEST(type_prop, paged_selective_ssm_bad_index_type) {Shape{6, 2, 16},Shape{3, 4, 8, 16}),NodeValidationFailure,- testing::HasSubstr("metadata inputs must have i32 or i64 element type."));+ testing::HasSubstr("metadata inputs must have i32 element type."));+}++TEST(type_prop, paged_selective_ssm_i64_index_type_rejected) {+ OV_EXPECT_THROW(std::ignore = make_paged_selective_ssm(element::f32,+ element::i64,+ Shape{4},+ Shape{6, 4},+ Shape{6, 2, 16},+ Shape{6, 4, 8},+ Shape{6, 2, 16},+ Shape{3, 4, 8, 16}),+ NodeValidationFailure,+ testing::HasSubstr("metadata inputs must have i32 element type."));}TEST(type_prop, paged_selective_ssm_f16_and_bf16_accepted) {@@ -576,7 +589,7 @@ TEST(type_prop, paged_selective_ssm_index_type_mixed) {std::ignore = std::make_shared<op::internal::PagedSelectiveSSM>(OutputVector{A, dt, B, x, C, state, subseq, block_idx, block_idx_begins, processed, cache_interval}),NodeValidationFailure,- testing::HasSubstr("expects all metadata inputs to have the same element type."));+ testing::HasSubstr("metadata inputs must have i32 element type."));}} // namespace ov::testdiff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/paged_selective_ssm.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/paged_selective_ssm.cppindex a0998a1b6a7..2a0f58783e4 100644--- a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/paged_selective_ssm.cpp+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/common/paged_selective_ssm.cpp@@ -15,24 +15,20 @@ std::vector<PagedSelectiveSSMLayerParams> paged_selective_ssm_test_cases = {{4, 2, 5, 3, {0, 2, 1}, {7, 1, 0}, {2, 2, 4}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},{4, 2, 5, 3, {0, 0}, {0, 7}, {2, -3}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},{4, 1, 3, 4, {3, 2}, {5, 9}, {0, -3}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},- {3, 3, 1, 1, {4}, {0}, {1}, ov::element::f32, ov::element::f32, ov::element::i64, "CPU"},- {4, 2, 5, 3, {1}, {0}, {2}, ov::element::f32, ov::element::f32, ov::element::i64, "CPU"},+ {3, 3, 1, 1, {4}, {0}, {1}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},+ {4, 2, 5, 3, {1}, {0}, {2}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},{64, 1, 64, 128, {1}, {0}, {1}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},- {96, 8, 80, 80, {5}, {0}, {2}, ov::element::f32, ov::element::f32, ov::element::i64, "CPU"},+ {96, 8, 80, 80, {5}, {0}, {2}, ov::element::f32, ov::element::f32, ov::element::i32, "CPU"},{4, 2, 5, 3, {1}, {0}, {2}, ov::element::f16, ov::element::f16, ov::element::i32, "CPU"},{4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::f16, ov::element::f16, ov::element::i32, "CPU"},- {4, 2, 5, 3, {1}, {0}, {2}, ov::element::f16, ov::element::f16, ov::element::i64, "CPU"},- {4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::f16, ov::element::f16, ov::element::i64, "CPU"},{4, 2, 5, 3, {1}, {0}, {2}, ov::element::bf16, ov::element::bf16, ov::element::i32, "CPU"},{4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::bf16, ov::element::bf16, ov::element::i32, "CPU"},- {4, 2, 5, 3, {1}, {0}, {2}, ov::element::bf16, ov::element::bf16, ov::element::i64, "CPU"},- {4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::bf16, ov::element::bf16, ov::element::i64, "CPU"},{4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::f32, ov::element::f16, ov::element::i32, "CPU"},- {64, 1, 64, 128, {1}, {0}, {1}, ov::element::f32, ov::element::bf16, ov::element::i64, "CPU"},+ {64, 1, 64, 128, {1}, {0}, {1}, ov::element::f32, ov::element::bf16, ov::element::i32, "CPU"},{4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::f16, ov::element::f32, ov::element::i32, "CPU"},- {4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::f16, ov::element::bf16, ov::element::i64, "CPU"},+ {4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::f16, ov::element::bf16, ov::element::i32, "CPU"},{4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::bf16, ov::element::f16, ov::element::i32, "CPU"},- {4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::bf16, ov::element::f32, ov::element::i64, "CPU"},+ {4, 2, 5, 3, {3, 1}, {1, 4}, {3, 2}, ov::element::bf16, ov::element::f32, ov::element::i32, "CPU"},};INSTANTIATE_TEST_SUITE_P(smoke_PagedSelectiveSSM,diff --git a/src/plugins/intel_gpu/tests/functional/single_layer_tests/selective_ssm.cpp b/src/plugins/intel_gpu/tests/functional/single_layer_tests/selective_ssm.cppindex 29d42119d03..c99f9bc731e 100644--- a/src/plugins/intel_gpu/tests/functional/single_layer_tests/selective_ssm.cpp+++ b/src/plugins/intel_gpu/tests/functional/single_layer_tests/selective_ssm.cpp@@ -102,11 +102,11 @@ std::pair<std::vector<float>, std::vector<float>> paged_reference(const std::vecconst std::vector<float>& x,const std::vector<float>& C,std::vector<float> state,- const std::vector<int64_t>& subsequence_begins,- const std::vector<int64_t>& block_indices,- const std::vector<int64_t>& block_indices_begins,- const std::vector<int64_t>& processed_tokens,- const std::vector<int64_t>& cache_intervals,+ const std::vector<int32_t>& subsequence_begins,+ const std::vector<int32_t>& block_indices,+ const std::vector<int32_t>& block_indices_begins,+ const std::vector<int32_t>& processed_tokens,+ const std::vector<int32_t>& cache_intervals,int32_t num_heads,int32_t num_groups,int32_t head_dim,@@ -300,14 +300,14 @@ TEST(smoke_GPUSelectiveSSMIntegration, SelectiveSSMIndividualOutputs) {}TEST(smoke_GPUSelectiveSSMIntegration, PagedSelectiveSSMDynamicModel) {- constexpr int64_t max_plugin_metadata = std::numeric_limits<int32_t>::max();+ constexpr int32_t max_plugin_metadata = std::numeric_limits<int32_t>::max();struct PagedCase {- std::vector<int64_t> subsequences;- std::vector<int64_t> blocks;- std::vector<int64_t> block_begins;- std::vector<int64_t> processed;- std::vector<int64_t> intervals;+ std::vector<int32_t> subsequences;+ std::vector<int32_t> blocks;+ std::vector<int32_t> block_begins;+ std::vector<int32_t> processed;+ std::vector<int32_t> intervals;size_t state_blocks;size_t num_heads;size_t num_groups;@@ -322,7 +322,7 @@ TEST(smoke_GPUSelectiveSSMIntegration, PagedSelectiveSSMDynamicModel) {auto C_param = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{-1, -1, -1});auto state_param = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::PartialShape{-1, -1, -1, -1});const auto index_param = [] {- return std::make_shared<ov::op::v0::Parameter>(ov::element::i64, ov::PartialShape{-1});+ return std::make_shared<ov::op::v0::Parameter>(ov::element::i32, ov::PartialShape{-1});};auto subsequence_param = index_param();auto blocks_param = index_param();@@ -369,8 +369,8 @@ TEST(smoke_GPUSelectiveSSMIntegration, PagedSelectiveSSMDynamicModel) {SCOPED_TRACE(device);auto compiled_model = core.compile_model(model, device, ov::hint::inference_precision(ov::element::f32));auto request = compiled_model.create_infer_request();- const auto set_index_input = [&request](size_t index, const std::vector<int64_t>& values) {- request.set_input_tensor(index, make_tensor<int64_t>(ov::element::i64, {values.size()}, values));+ const auto set_index_input = [&request](size_t index, const std::vector<int32_t>& values) {+ request.set_input_tensor(index, make_tensor<int32_t>(ov::element::i32, {values.size()}, values));};for (const auto& test_case : cases) {const auto tokens = static_cast<size_t>(test_case.subsequences.back());@@ -485,7 +485,7 @@ TEST(smoke_GPUSelectiveSSMIntegration, PagedSelectiveSSMChainedStateMutation) {auto C_param = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::Shape{tokens, num_groups, state_size});auto state_param = std::make_shared<ov::op::v0::Parameter>(ov::element::f32, ov::Shape{state_blocks, num_heads, head_dim, state_size});const auto index_param = [](size_t size) {- return std::make_shared<ov::op::v0::Parameter>(ov::element::i64, ov::Shape{size});+ return std::make_shared<ov::op::v0::Parameter>(ov::element::i32, ov::Shape{size});};auto subsequence_param = index_param(2);auto blocks_param = index_param(2);@@ -533,11 +533,11 @@ TEST(smoke_GPUSelectiveSSMIntegration, PagedSelectiveSSMChainedStateMutation) {auto x = make_values(tokens * num_heads * head_dim, 0.013f);auto C = make_values(tokens * num_groups * state_size, 0.011f);auto state = make_values(state_blocks * num_heads * head_dim * state_size, 0.007f);- const std::vector<int64_t> subsequences{0, tokens};- const std::vector<int64_t> blocks{0, 0};- const std::vector<int64_t> block_begins{0, 2};- const std::vector<int64_t> processed{0};- const std::vector<int64_t> intervals{tokens};+ const std::vector<int32_t> subsequences{0, tokens};+ const std::vector<int32_t> blocks{0, 0};+ const std::vector<int32_t> block_begins{0, 2};+ const std::vector<int32_t> processed{0};+ const std::vector<int32_t> intervals{tokens};const auto first_expected =paged_reference(A, dt, B, x, C, state, subsequences, blocks, block_begins, processed, intervals, num_heads, num_groups, head_dim, state_size);const auto second_expected = paged_reference(A,@@ -569,11 +569,11 @@ TEST(smoke_GPUSelectiveSSMIntegration, PagedSelectiveSSMChainedStateMutation) {request.set_input_tensor(3, make_tensor<float>(ov::element::f32, {tokens, num_heads, head_dim}, x));request.set_input_tensor(4, make_tensor<float>(ov::element::f32, {tokens, num_groups, state_size}, C));request.set_input_tensor(5, state_tensor);- request.set_input_tensor(6, make_tensor<int64_t>(ov::element::i64, {subsequences.size()}, subsequences));- request.set_input_tensor(7, make_tensor<int64_t>(ov::element::i64, {blocks.size()}, blocks));- request.set_input_tensor(8, make_tensor<int64_t>(ov::element::i64, {block_begins.size()}, block_begins));- request.set_input_tensor(9, make_tensor<int64_t>(ov::element::i64, {processed.size()}, processed));- request.set_input_tensor(10, make_tensor<int64_t>(ov::element::i64, {intervals.size()}, intervals));+ request.set_input_tensor(6, make_tensor<int32_t>(ov::element::i32, {subsequences.size()}, subsequences));+ request.set_input_tensor(7, make_tensor<int32_t>(ov::element::i32, {blocks.size()}, blocks));+ request.set_input_tensor(8, make_tensor<int32_t>(ov::element::i32, {block_begins.size()}, block_begins));+ request.set_input_tensor(9, make_tensor<int32_t>(ov::element::i32, {processed.size()}, processed));+ request.set_input_tensor(10, make_tensor<int32_t>(ov::element::i32, {intervals.size()}, intervals));request.infer();expect_tensor_near(request.get_output_tensor(0), second_expected.first);