Skip to content

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

[CPU] Support PagedAttentionExtension with Shared KV-cache (#35561)

Vladislav Golubevb6966a3149f7
diff --git a/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp b/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp
index 04914810f16..bd60694d6f9 100644
--- a/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp
+++ b/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa.cpp
@@ -2500,7 +2500,9 @@ struct AttentionExecutor : public PagedAttentionExecutor {
}
}
- void execute(const std::vector<MemoryPtr>& inputs, const std::vector<MemoryPtr> outputs) override {
+ void execute(const std::vector<MemoryPtr>& inputs,
+ const std::vector<MemoryPtr> outputs,
+ bool write_kv_cache) override {
PlainTensor q;
PlainTensor k;
PlainTensor v;
@@ -2585,18 +2587,20 @@ struct AttentionExecutor : public PagedAttentionExecutor {
_helper.clear_token_type();
}
- if (rotated_block_indices) {
- // Rotate kv cache currently doesn't support quantized cache.
- // for u8 it only supports compilation but throws exception in the runtime
- // TODO: implement u4/u8
- rotate_kv_cache<KEY_PREC>(k_cache,
- rotated_block_indices,
- rotation_deltas,
- rotation_trig_lut,
- _helper._block_rotation_coefficient_scratch);
- }
+ if (write_kv_cache) {
+ if (rotated_block_indices) {
+ // Rotate kv cache currently doesn't support quantized cache.
+ // for u8 it only supports compilation but throws exception in the runtime
+ // TODO: implement u4/u8
+ rotate_kv_cache<KEY_PREC>(k_cache,
+ rotated_block_indices,
+ rotation_deltas,
+ rotation_trig_lut,
+ _helper._block_rotation_coefficient_scratch);
+ }
- concat_pastkv(k, v, k_cache, v_cache, past_lens, subsequence_begins, block_indices, block_indices_begins);
+ concat_pastkv(k, v, k_cache, v_cache, past_lens, subsequence_begins, block_indices, block_indices_begins);
+ }
_kernel(q,
k_cache,
diff --git a/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa_common.hpp b/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa_common.hpp
index 6cc7c16366c..2ab5bf9e4bb 100644
--- a/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa_common.hpp
+++ b/src/plugins/intel_cpu/src/nodes/kernels/scaled_attn/executor_pa_common.hpp
@@ -50,7 +50,8 @@ struct PagedAttentionExecutor {
static const size_t ID_QQ_BIAS = 26; // [batch_mask_size_in_sequences], uint8
static const size_t ID_QQ_BIAS_BEGINS = 27; // [B_seq + 1], int32
virtual void execute(const std::vector<ov::intel_cpu::MemoryPtr>& inputs,
- std::vector<ov::intel_cpu::MemoryPtr> outputs) = 0;
+ std::vector<ov::intel_cpu::MemoryPtr> outputs,
+ bool write_kv_cache) = 0;
virtual ~PagedAttentionExecutor() = default;
};
diff --git a/src/plugins/intel_cpu/src/nodes/paged_attn.cpp b/src/plugins/intel_cpu/src/nodes/paged_attn.cpp
index 94358187e6a..29dc1582e1d 100644
--- a/src/plugins/intel_cpu/src/nodes/paged_attn.cpp
+++ b/src/plugins/intel_cpu/src/nodes/paged_attn.cpp
@@ -24,8 +24,10 @@
#include "onednn/iml_type_mapper.h"
#include "openvino/core/except.hpp"
#include "openvino/core/node.hpp"
+#include "openvino/core/type.hpp"
#include "openvino/core/type/element_type.hpp"
#include "openvino/op/constant.hpp"
+#include "openvino/op/paged_attention.hpp"
#include "openvino/runtime/system_conf.hpp"
#include "shape_inference/shape_inference_internal_dyn.hpp"
#include "transformations/utils/utils.hpp"
@@ -86,6 +88,9 @@ PagedAttention::PagedAttention(const std::shared_ptr<ov::Node>& op, const GraphC
// output score may have no child
m_hasScore = !op->get_output_target_inputs(1).empty();
m_has_adaptive_rkv_diversity_output = !op->get_output_target_inputs(2).empty();
+ const auto pa = ov::as_type_ptr<ov::op::PagedAttentionExtension>(op);
+ CPU_NODE_ASSERT(pa, "Only PagedAttentionExtension is supported in PagedAttention node.");
+ m_write_kv_cache = pa->get_write_kv_cache();
}
void PagedAttention::initSupportedPrimitiveDescriptors() {
@@ -378,7 +383,7 @@ void PagedAttention::execute([[maybe_unused]] const dnnl::stream& strm) {
}
}
- m_executor->execute(inputs, outputs);
+ m_executor->execute(inputs, outputs, m_write_kv_cache);
}
bool PagedAttention::isSupportedOperation(const std::shared_ptr<const ov::Node>& op,
diff --git a/src/plugins/intel_cpu/src/nodes/paged_attn.h b/src/plugins/intel_cpu/src/nodes/paged_attn.h
index 383eb649d64..ecdf815cca5 100644
--- a/src/plugins/intel_cpu/src/nodes/paged_attn.h
+++ b/src/plugins/intel_cpu/src/nodes/paged_attn.h
@@ -62,6 +62,7 @@ private:
bool m_hasScore = false;
bool m_has_adaptive_rkv_diversity_output = false;
+ bool m_write_kv_cache = true;
};
} // namespace ov::intel_cpu::node
diff --git a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/paged_attn.cpp b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/paged_attn.cpp
index af714785c8e..3d00dddf4fd 100644
--- a/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/paged_attn.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/paged_attn.cpp
@@ -39,7 +39,7 @@ using namespace ov::op;
namespace ov {
namespace test {
using InputShapes = std::vector<InputShape>;
-using PagedAttnTestParams = std::tuple<ElementType, InputShapes, bool, bool, bool, int32_t, ov::AnyMap>;
+using PagedAttnTestParams = std::tuple<ElementType, InputShapes, bool, bool, bool, int32_t, ov::AnyMap, bool>;
class PagedAttnTestBase : public testing::WithParamInterface<PagedAttnTestParams>,
virtual public ov::test::SubgraphBaseTest,
@@ -52,7 +52,8 @@ public:
enableXattn,
sinkInput,
slidingWindow,
- additional_config] = obj.param;
+ additional_config,
+ addSharedReader] = obj.param;
std::ostringstream result;
result << "IS=";
for (const auto& shape : inputShapes) {
@@ -73,6 +74,8 @@ public:
result << "EnableXattn=" << enableXattn << "_";
result << "SinkInput=" << sinkInput << "_";
result << "SlidingWindow=" << slidingWindow << "_";
+ if (addSharedReader)
+ result << "SharedKVCache=1_";
result << "config=(";
for (const auto& configEntry : additional_config) {
result << configEntry.first << ", " << configEntry.second.as<std::string>() << "_";
@@ -95,7 +98,8 @@ public:
ov::Dimension::value_type head_size = 64,
ov::Dimension::value_type head_num = 8,
bool use_sink_input = true,
- int32_t sliding_window = 0) {
+ int32_t sliding_window = 0,
+ bool add_shared_reader = false) {
// q [batch_in_tokens, head_num * head_size]
// k [batch_in_tokens, head_num * head_size]
// v [batch_in_tokens, head_num * head_size]
@@ -205,13 +209,45 @@ public:
paged_attn->get_rt_info()["k_head_size"] = head_size;
paged_attn->get_rt_info()["num_v_heads"] = head_num;
paged_attn->get_rt_info()["v_head_size"] = head_size;
+
+ if (add_shared_reader) {
+ // Gemma 4-style architecture: the writer layer's output feeds into the
+ // reader layer via a residual connection (hidden = q + PA1_output).
+ auto hidden = std::make_shared<ov::op::v1::Add>(q, paged_attn->output(0));
+
+ // PA2 K/V inputs: separate parameters filled with distinct values at runtime.
+ //
+ // In a real Gemma 4 reader layer there are no K/V linear projections, but the
+ // PA op signature still requires K/V inputs. The SDPAToPA transformation wires
+ // whatever the original graph had into these ports. When write_kv_cache=false,
+ // the kernel ignores them entirely — it only reads from the shared cache.
+ auto k_reader =
+ make_param(PartialShape{ov::Dimension::dynamic(), head_num * head_size}, data_type, "k_reader");
+ auto v_reader =
+ make_param(PartialShape{ov::Dimension::dynamic(), head_num * head_size}, data_type, "v_reader");
+ params.push_back(k_reader);
+ params.push_back(v_reader);
+
+ OutputVector pa2_inputs = paged_attn_inputs;
+ pa2_inputs[0] = hidden;
+ pa2_inputs[1] = k_reader;
+ pa2_inputs[2] = v_reader;
+ auto paged_attn_2 = std::make_shared<op::PagedAttentionExtension>(pa2_inputs, /*write_kv_cache=*/false);
+ paged_attn_2->get_rt_info()["num_k_heads"] = head_num;
+ paged_attn_2->get_rt_info()["k_head_size"] = head_size;
+ paged_attn_2->get_rt_info()["num_v_heads"] = head_num;
+ paged_attn_2->get_rt_info()["v_head_size"] = head_size;
+ return std::make_shared<ov::Model>(OutputVector{paged_attn, paged_attn_2}, params);
+ }
+
return std::make_shared<ov::Model>(OutputVector{paged_attn}, params);
}
virtual std::shared_ptr<ov::Model> get_ref_model(ov::element::Type data_type,
ov::Dimension::value_type head_size = 64,
ov::Dimension::value_type head_num = 8,
- bool use_sink_input = true) {
+ bool use_sink_input = true,
+ bool add_shared_reader = false) {
// q, k, v use L,B,H,S layout
ov::PartialShape q_shape, kv_shape, past_shape, atten_mask_shape, scale_shape, sink_shape;
ov::ParameterVector inputParams;
@@ -280,6 +316,7 @@ public:
// Parameters order: q, k, v, atten_mask, scale, [sink], past_kv, beam_idx
size_t atten_mask_idx = 3;
size_t scale_idx = 4;
+ size_t sink_idx = use_sink_input ? 5 : 0;
std::shared_ptr<ov::op::v13::ScaledDotProductAttention> sdp;
// For sliding window case, set causal=false because we provide explicit mask with sliding window logic
@@ -289,7 +326,6 @@ public:
if (use_sink_input) {
// 7-parameter SDPA constructor with sink support
// Parameters: query, key, value, attn_mask, scale, sink, causal
- size_t sink_idx = 5;
sdp = std::make_shared<ov::op::v13::ScaledDotProductAttention>(q_in,
k_in,
v_in,
@@ -331,6 +367,36 @@ public:
true); // use LBHS to better compare data between pa and sdpa
SinkVector sinks{pastk_assign, pastv_assign};
ov::OutputVector results{reshapeSDP};
+
+ if (add_shared_reader) {
+ // SDPA2 (reader): uses residual query (q + SDPA1_output), reads same KV cache.
+ // transposeSDP is SDPA1 output in [L, B, H, S], same as inputParams[0] (q).
+ auto hidden_4d = std::make_shared<ov::op::v1::Add>(inputParams[0], transposeSDP);
+ auto hidden_query = std::make_shared<ov::op::v1::Transpose>(hidden_4d, preOrder);
+
+ std::shared_ptr<ov::op::v13::ScaledDotProductAttention> sdp2;
+ if (use_sink_input) {
+ sdp2 = std::make_shared<ov::op::v13::ScaledDotProductAttention>(hidden_query,
+ k_in,
+ v_in,
+ inputParams[atten_mask_idx],
+ inputParams[scale_idx],
+ inputParams[sink_idx],
+ use_causal);
+ } else {
+ sdp2 = std::make_shared<ov::op::v13::ScaledDotProductAttention>(hidden_query,
+ k_in,
+ v_in,
+ inputParams[atten_mask_idx],
+ inputParams[scale_idx],
+ use_causal);
+ }
+ sdp2->set_friendly_name("mha_reader");
+ auto transposeSDP2 = std::make_shared<ov::op::v1::Transpose>(sdp2, postOrder);
+ auto reshapeSDP2 = std::make_shared<ov::op::v1::Reshape>(transposeSDP2, constReshape, true);
+ results.push_back(reshapeSDP2);
+ }
+
auto model = std::make_shared<Model>(results, sinks, inputParams, "sdpa_model");
return model;
}
@@ -342,7 +408,8 @@ public:
enableXattn,
sinkInput,
slidingWindow,
- additional_config] = this->GetParam();
+ additional_config,
+ addSharedReader] = this->GetParam();
targetDevice = ov::test::utils::DEVICE_CPU;
rel_threshold = 1e-2f;
configuration[ov::hint::inference_precision.name()] = ov::element::f32;
@@ -356,10 +423,9 @@ public:
ov::ParameterVector inputParams;
this->sliding_window = slidingWindow;
- function = get_model(inType, enableXattn, 64, 8, sinkInput, slidingWindow);
+ function = get_model(inType, enableXattn, 64, 8, sinkInput, slidingWindow, addSharedReader);
+ functionRefs = get_ref_model(inType, 64, 8, sinkInput, addSharedReader);
targetDevice = ov::test::utils::DEVICE_CPU;
-
- functionRefs = get_ref_model(inType, 64, 8, sinkInput);
}
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override {
// Check if the reference model uses sink input by examining the number of parameters
@@ -485,6 +551,23 @@ public:
inputs.insert({function->get_parameters()[7], block_indices});
inputs.insert({function->get_parameters()[8], block_indices_begins});
+ // Reader layer K/V inputs (params [9] and [10], only present when model
+ // has a shared-cache reader PA). Values differ from writer's K/V so that
+ // an incorrect write would visibly corrupt the cache.
+ if (function->get_parameters().size() > 9) {
+ // Fill k_reader/v_reader with zeros — maximally different from the
+ // descending strided_iota data used for k/v (~13000 range).
+ // If write_kv_cache=false is broken and PA2 writes these zeros to cache,
+ // the attention output will differ drastically from the reference.
+ auto reader_shape = ov::Shape{qkv_shape[0] * qkv_shape[1], qkv_shape[2] * qkv_shape[3]};
+ for (size_t p = 9; p <= 10; p++) {
+ auto param = function->get_parameters()[p];
+ ov::Tensor t{param->get_element_type(), reader_shape};
+ memset(t.data(), 0, t.get_byte_size());
+ inputs.insert({param, t});
+ }
+ }
+
// Note: sink is a Constant in the model, not a Parameter, so no need to provide input for it
past_len_count += static_cast<int32_t>(qkv_shape[0]);
@@ -563,25 +646,10 @@ public:
state.reset();
}
}
- std::vector<size_t> transposeOrder;
- size_t keyGroupSize = 0;
- bool quantKeyByChannel = false;
- bool hasShapeOf;
- ov::Tensor key_cache;
- ov::Tensor value_cache;
- int32_t past_len_count = 0;
- int32_t sliding_window = 0;
-};
-
-class PagedAttnVSSDPATest : public PagedAttnTestBase {
-public:
- std::vector<ov::Tensor> run_test(std::shared_ptr<ov::Model> model, bool extendBlockIndices, bool sinkInput = true) {
- function = model;
- prepare();
+ void init_kv_cache(size_t block_nums) {
for (const auto& input : compiledModel.inputs()) {
for (auto& name : input.get_names()) {
auto cache_precision = input.get_element_type();
- const size_t block_nums = 1024 / 32;
ov::PartialShape pshape;
if (name.find("key_cache.") == 0) {
pshape = input.get_partial_shape();
@@ -596,6 +664,9 @@ public:
}
}
}
+ }
+
+ std::vector<ov::Tensor> run_pa_inference(bool extendBlockIndices, bool sinkInput) {
std::vector<ov::Tensor> outputs;
int idx = 0;
for (auto&& shapes : targetStaticShapes) {
@@ -604,14 +675,35 @@ public:
inferRequest.set_tensor(input.first, input.second);
}
inferRequest.infer();
- auto outputTensor = inferRequest.get_output_tensor(0);
- ov::Tensor copy{outputTensor.get_element_type(), outputTensor.get_shape()};
- outputTensor.copy_to(copy);
- outputs.push_back(copy);
+ for (size_t out_idx = 0; out_idx < compiledModel.outputs().size(); out_idx++) {
+ auto tensor = inferRequest.get_output_tensor(out_idx);
+ ov::Tensor copy{tensor.get_element_type(), tensor.get_shape()};
+ tensor.copy_to(copy);
+ outputs.push_back(copy);
+ }
}
return outputs;
}
+ std::vector<size_t> transposeOrder;
+ size_t keyGroupSize = 0;
+ bool quantKeyByChannel = false;
+ bool hasShapeOf;
+ ov::Tensor key_cache;
+ ov::Tensor value_cache;
+ int32_t past_len_count = 0;
+ int32_t sliding_window = 0;
+};
+
+class PagedAttnVSSDPATest : public PagedAttnTestBase {
+public:
+ std::vector<ov::Tensor> run_test(std::shared_ptr<ov::Model> model, bool extendBlockIndices, bool sinkInput = true) {
+ function = model;
+ prepare();
+ init_kv_cache(1024 / 32);
+ return run_pa_inference(extendBlockIndices, sinkInput);
+ }
+
std::vector<ov::Tensor> run_ref_test(std::shared_ptr<ov::Model> model, bool sinkInput) {
function = model;
prepare();
@@ -623,10 +715,12 @@ public:
inferRequest.set_tensor(input.first, input.second);
}
inferRequest.infer();
- auto outputTensor = inferRequest.get_output_tensor(0);
- ov::Tensor copy{outputTensor.get_element_type(), outputTensor.get_shape()};
- outputTensor.copy_to(copy);
- outputs.push_back(copy);
+ for (size_t out_idx = 0; out_idx < compiledModel.outputs().size(); out_idx++) {
+ auto tensor = inferRequest.get_output_tensor(out_idx);
+ ov::Tensor copy{tensor.get_element_type(), tensor.get_shape()};
+ tensor.copy_to(copy);
+ outputs.push_back(copy);
+ }
}
reset();
return outputs;
@@ -635,8 +729,8 @@ public:
TEST_P(PagedAttnVSSDPATest, CompareWithRefs) {
SKIP_IF_CURRENT_TEST_IS_DISABLED();
- const auto& [inType, inputShapes, extendBlockIndices, enableXattn, sinkInput, slidingWindow, additional_config] =
- this->GetParam();
+ const auto& [inType, inputShapes, extendBlockIndices, enableXattn, sinkInput, slidingWindow, additional_config,
+ addSharedReader] = this->GetParam();
const bool isSageAttn =
intel_cpu::contains_key_value(additional_config, {ov::intel_cpu::enable_sage_attn.name(), true});
if (inType == ElementType::bf16 && !ov::with_cpu_x86_bfloat16())
@@ -681,7 +775,8 @@ INSTANTIATE_TEST_SUITE_P(smoke_PagedAttnVSSDPATest,
::testing::Values(true, false),
::testing::Values(false),
::testing::Values(0),
- ::testing::ValuesIn(additional_configs)),
+ ::testing::ValuesIn(additional_configs),
+ ::testing::Values(false)), // addSharedReader
PagedAttnTestBase::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(smoke_PagedAttnVSSDPATest_WithSlidingWindowAndSinks,
@@ -693,7 +788,23 @@ INSTANTIATE_TEST_SUITE_P(smoke_PagedAttnVSSDPATest_WithSlidingWindowAndSinks,
::testing::Values(true, false), // sinkInput
::testing::Values(0, 8), // sliding_window = 8
::testing::Values(ov::AnyMap{
- {ov::intel_cpu::enable_sage_attn.name(), false}})),
+ {ov::intel_cpu::enable_sage_attn.name(), false}}),
+ ::testing::Values(false)), // addSharedReader
+ PagedAttnTestBase::getTestCaseName);
+
+// PA1(write=true) + PA2(write=false) sharing the same KV cache.
+// Verifies that PA2 reads the cache populated by PA1 and produces matching output.
+INSTANTIATE_TEST_SUITE_P(smoke_PagedAttnSharedKVCache,
+ PagedAttnVSSDPATest,
+ ::testing::Combine(::testing::Values(ElementType::f32, ElementType::bf16),
+ ::testing::ValuesIn(inputShapeAndReorders),
+ ::testing::Values(false), // extendBlockIndices
+ ::testing::Values(false), // enableXattn
+ ::testing::Values(false), // sinkInput
+ ::testing::Values(0), // slidingWindow
+ ::testing::Values(ov::AnyMap{
+ {ov::intel_cpu::enable_sage_attn.name(), false}}),
+ ::testing::Values(true)), // addSharedReader
PagedAttnTestBase::getTestCaseName);
} // namespace
@@ -702,9 +813,11 @@ public:
std::shared_ptr<ov::Model> get_ref_model(ov::element::Type data_type,
ov::Dimension::value_type head_size = 64,
ov::Dimension::value_type head_num = 8,
- bool use_sink_input = false) override {
- // PagedAttnVSMatmulTest reference model doesn't use sink input
+ bool use_sink_input = false,
+ bool add_shared_reader = false) override {
+ // PagedAttnVSMatmulTest reference model doesn't use sink input or shared reader
(void)use_sink_input; // Suppress unused parameter warning
+ (void)add_shared_reader;
// q, k, v use L,B,H,S layout
ov::PartialShape q_shape, kv_shape, past_shape, atten_mask_shape, scale_shape;
ov::ParameterVector inputParams;
@@ -840,38 +953,8 @@ public:
configuration[ov::hint::kv_cache_precision.name()] = ov::element::f16;
function = model;
prepare();
- for (const auto& input : compiledModel.inputs()) {
- for (auto& name : input.get_names()) {
- auto cache_precision = input.get_element_type();
- const size_t block_nums = 4;
- ov::PartialShape pshape;
- if (name.find("key_cache.") == 0) {
- pshape = input.get_partial_shape();
- pshape[0] = block_nums;
- key_cache = ov::Tensor(cache_precision, pshape.get_shape());
- break;
- } else if (name.find("value_cache.") == 0) {
- pshape = input.get_partial_shape();
- pshape[0] = block_nums;
- value_cache = ov::Tensor(cache_precision, pshape.get_shape());
- break;
- }
- }
- }
- std::vector<ov::Tensor> outputs;
- int idx = 0;
- for (auto&& shapes : targetStaticShapes) {
- generate(idx++, true, shapes, extendBlockIndices, false);
- for (const auto& input : inputs) {
- inferRequest.set_tensor(input.first, input.second);
- }
- inferRequest.infer();
- auto outputTensor = inferRequest.get_output_tensor(0);
- ov::Tensor copy{outputTensor.get_element_type(), outputTensor.get_shape()};
- outputTensor.copy_to(copy);
- outputs.push_back(copy);
- }
- return outputs;
+ init_kv_cache(4);
+ return run_pa_inference(extendBlockIndices, false);
}
std::vector<ov::Tensor> run_ref_test(std::shared_ptr<ov::Model> model) {
@@ -897,8 +980,15 @@ public:
TEST_P(PagedAttnVSMatmulTest, CompareWithRefs) {
SKIP_IF_CURRENT_TEST_IS_DISABLED();
- const auto& [inType, inputShapes, extendBlockIndices, enableXattn, sinkInput, slidingWindow, additional_config] =
- this->GetParam();
+ const auto& [inType,
+ inputShapes,
+ extendBlockIndices,
+ enableXattn,
+ sinkInput,
+ slidingWindow,
+ additional_config,
+ addSharedReader] = this->GetParam();
+ ASSERT_FALSE(addSharedReader) << "PagedAttnVSMatmulTest does not support shared KV-cache (addSharedReader=true)";
const bool isSageAttn =
intel_cpu::contains_key_value(additional_config, {ov::intel_cpu::enable_sage_attn.name(), true});
if (inType == ElementType::bf16 && !ov::with_cpu_x86_bfloat16())
@@ -935,7 +1025,8 @@ INSTANTIATE_TEST_SUITE_P(smoke_PagedAttnVSMatmulTest,
::testing::Values(true, false),
::testing::Values(false), // sinkInput = false
::testing::Values(0), // sliding_window = 0
- ::testing::ValuesIn(additional_configs)),
+ ::testing::ValuesIn(additional_configs),
+ ::testing::Values(false)), // addSharedReader
PagedAttnTestBase::getTestCaseName);
} // namespace