Skip to content

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

[CPU] GroupedMatMulCompressed: support via GatherMatMulCompressed (#36702)

Vladislav Golubevccf97aa44bed
diff --git a/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.cpp b/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.cpp
index 36ae5c082e0..6eda03e07e5 100644
--- a/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.cpp
+++ b/src/plugins/intel_cpu/src/transformations/snippets/aarch64/pass/snippets_mark_skipped.cpp
@@ -24,6 +24,7 @@
#include "openvino/op/convolution.hpp"
#include "openvino/op/elu.hpp"
#include "openvino/op/group_conv.hpp"
+#include "openvino/op/grouped_matmul.hpp"
#include "openvino/op/if.hpp"
#include "openvino/op/matmul.hpp"
#include "openvino/op/max_pool.hpp"
@@ -258,7 +259,7 @@ auto is_skipped_op(const std::shared_ptr<ov::Node>& op) -> bool {
}
bool isSuitableMatMulWithConstantPath(const std::shared_ptr<Node>& node) {
- return ov::is_type<ov::op::v0::MatMul>(node) &&
+ return ov::is_type_any_of<ov::op::v0::MatMul, ov::op::v17::GroupedMatMul>(node) &&
!ov::is_type<ov::op::v0::Constant>(node->get_input_node_shared_ptr(1)) &&
ov::op::util::is_on_path<ov::op::v0::Constant>(node->input_value(1));
}
diff --git a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp
index ac83c7c4cc1..57ab6b3ef06 100644
--- a/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp
+++ b/src/plugins/intel_cpu/src/transformations/snippets/x64/pass/snippets_mark_skipped.cpp
@@ -32,6 +32,7 @@
#include "openvino/op/gather.hpp"
#include "openvino/op/gelu.hpp"
#include "openvino/op/group_conv.hpp"
+#include "openvino/op/grouped_matmul.hpp"
#include "openvino/op/hsigmoid.hpp"
#include "openvino/op/hswish.hpp"
#include "openvino/op/if.hpp"
@@ -504,7 +505,7 @@ bool isSuitableGatherChild(const std::shared_ptr<const Node>& node) {
node->get_output_element_type(0) == ov::element::f32;
}
bool isSuitableMatMulWithConstantPath(const std::shared_ptr<Node>& node) {
- return ov::is_type<ov::op::v0::MatMul>(node) &&
+ return ov::is_type_any_of<ov::op::v0::MatMul, ov::op::v17::GroupedMatMul>(node) &&
!ov::is_type<ov::op::v0::Constant>(node->get_input_node_shared_ptr(1)) &&
ov::op::util::is_on_path<ov::op::v0::Constant>(node->input_value(1));
}
diff --git a/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp b/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp
index 189f9f027e0..65de5686a7d 100644
--- a/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp
+++ b/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp
@@ -39,6 +39,7 @@
#include "openvino/op/constant.hpp"
#include "openvino/op/convert.hpp"
#include "openvino/op/fake_quantize.hpp"
+#include "openvino/op/grouped_matmul.hpp"
#include "openvino/op/matmul.hpp"
#include "openvino/op/max_pool.hpp"
#include "openvino/op/paged_attention.hpp"
@@ -307,29 +308,34 @@ bool Transformations::is_decompression_multiply(const_node_ptr& node) {
});
};
+ auto benefit_from_decompression = [&all_has_type](const std::set<ov::Input<ov::Node>>& consumers) {
+ return all_has_type(consumers, ov::op::v0::MatMul::get_type_info_static()) ||
+ all_has_type(consumers, ov::op::v1::Convolution::get_type_info_static()) ||
+ all_has_type(consumers, ov::op::v17::GroupedMatMul::get_type_info_static());
+ };
+
const auto consumers = node->get_output_target_inputs(0);
- if (all_has_type(consumers, ov::op::v0::MatMul::get_type_info_static()) ||
- all_has_type(consumers, ov::op::v1::Convolution::get_type_info_static())) {
+ if (benefit_from_decompression(consumers)) {
return true;
}
- auto are_converts_from_decompression = [&all_has_type](const std::set<ov::Input<ov::Node>>& consumers) {
- if (!all_has_type(consumers, ov::op::v0::Convert::get_type_info_static())) {
- return false;
- }
- return std::all_of(consumers.begin(), consumers.end(), [&all_has_type](const ov::Input<ov::Node>& consumer) {
- const auto child_consumers = consumer.get_node()->get_output_target_inputs(0);
- return all_has_type(child_consumers, ov::op::v0::MatMul::get_type_info_static()) ||
- all_has_type(child_consumers, ov::op::v1::Convolution::get_type_info_static());
- });
- };
+ auto are_converts_from_decompression =
+ [&all_has_type, &benefit_from_decompression](const std::set<ov::Input<ov::Node>>& consumers) {
+ if (!all_has_type(consumers, ov::op::v0::Convert::get_type_info_static())) {
+ return false;
+ }
+ return std::all_of(consumers.begin(),
+ consumers.end(),
+ [&benefit_from_decompression](const ov::Input<ov::Node>& consumer) {
+ const auto child_consumers = consumer.get_node()->get_output_target_inputs(0);
+ return benefit_from_decompression(child_consumers);
+ });
+ };
if (all_has_type(consumers, ov::op::v1::Reshape::get_type_info_static())) {
for (const auto& consumer : consumers) {
const auto child_consumers = consumer.get_node()->get_output_target_inputs(0);
- if (all_has_type(child_consumers, ov::op::v0::MatMul::get_type_info_static()) ||
- all_has_type(child_consumers, ov::op::v1::Convolution::get_type_info_static()) ||
- are_converts_from_decompression(child_consumers)) {
+ if (benefit_from_decompression(child_consumers) || are_converts_from_decompression(child_consumers)) {
return true;
}
}
@@ -577,7 +583,8 @@ void Transformations::PreLpt(const std::vector<ov::element::Type>& defaultPrecis
ov::op::v1::Convolution,
ov::op::v1::GroupConvolution,
ov::op::v1::ConvolutionBackpropData,
- ov::op::v1::GroupConvolutionBackpropData>(consumer.get_node());
+ ov::op::v1::GroupConvolutionBackpropData,
+ ov::op::v17::GroupedMatMul>(consumer.get_node());
});
},
ov::pass::KeepConstAndDecompression);
diff --git a/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/arm/grouped_matmul_compressed.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/arm/grouped_matmul_compressed.cpp
new file mode 100644
index 00000000000..6d2cf9c0fe0
--- /dev/null
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/arm/grouped_matmul_compressed.cpp
@@ -0,0 +1,93 @@
+// Copyright (C) 2018-2026 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#include "single_op_tests/grouped_matmul.hpp"
+
+#include <cstdint>
+
+#include "common_test_utils/test_constants.hpp"
+#include "openvino/runtime/properties.hpp"
+
+namespace {
+using namespace ov::test;
+using ov::test::utils::DecompressionType;
+
+// KleidiAI supports only signed weight types (i8, i4) for the compressed path.
+// Asymmetric quantization (zero-points) is not supported.
+// Dynamic activation quantization (fcDynamicQuantizationGroupSize) must be
+// disabled (set to UINT64_MAX) to enable the static-weight-compression path,
+// following the same convention as smoke_MatMulCompressedWeights_Kleidiai.
+const ov::AnyMap kleidiai_compressed_config = {
+ ov::hint::dynamic_quantization_group_size(UINT64_MAX)};
+
+const std::vector<ov::element::Type> weights_precisions = {ov::element::i8, ov::element::i4};
+const std::vector<ov::element::Type> decompression_precisions = {ov::element::f32};
+
+const std::vector<GroupedMatMulShapeParams> shapes = {
+ // 3D x 3D: A:[G,M,K] x B:[G,N,K] -> [G,M,N], dynamic M dim.
+ {{ov::PartialShape{4, -1, 128}, {{4, 8, 128}, {4, 1, 128}, {4, 16, 128}}}, {4, 256, 128}, {}},
+ {{ov::PartialShape{8, -1, 256}, {{8, 4, 256}, {8, 1, 256}}}, {8, 512, 256}, {}},
+ // 2D x 3D: A:[T,K] x B:[G,N,K] -> [T,N], dynamic T dim.
+ {{ov::PartialShape{-1, 128}, {{16, 128}, {32, 128}, {8, 128}}}, {4, 256, 128}, TokensPerExpert{{8, 0, 8, 0}, {0, 16, 0, 16}, {4, 4, 0, 0}}},
+ {{ov::PartialShape{-1, 128}, {{12, 128}, {20, 128}}}, {4, 256, 128}, TokensPerExpert{{4, 5, 3, 0}, {0, 7, 6, 7}}},
+ {{ov::PartialShape{-1, 256}, {{16, 256}, {32, 256}}}, {8, 512, 256}, TokensPerExpert{{4, 2, 2, 2, 2, 2, 1, 1}, {2, 6, 4, 4, 4, 4, 4, 4}}},
+};
+
+INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul,
+ GroupedMatMulLayerTest,
+ ::testing::Combine(::testing::ValuesIn(shapes),
+ ::testing::Values(ov::element::f16),
+ ::testing::Values(ov::test::utils::DEVICE_CPU),
+ ::testing::Values("GatherMatmul")),
+ GroupedMatMulLayerTest::getTestCaseName);
+
+// Corner cases: odd K, non-power-of-2 N
+const std::vector<GroupedMatMulShapeParams> shapes_corner_cases = {
+ {{ov::PartialShape{4, -1, 77}, {{4, 8, 77}, {4, 1, 77}, {4, 8, 77}}}, {4, 123, 77}, {}},
+ {{ov::PartialShape{-1, 77}, {{12, 77}, {20, 77}}}, {4, 123, 77}, TokensPerExpert{{4, 5, 3, 0}, {0, 7, 6, 7}}},
+};
+
+INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_CornerCases,
+ GroupedMatMulLayerTest,
+ ::testing::Combine(::testing::ValuesIn(shapes_corner_cases),
+ ::testing::Values(ov::element::f16),
+ ::testing::Values(ov::test::utils::DEVICE_CPU),
+ ::testing::Values("GatherMatmul")),
+ GroupedMatMulLayerTest::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed,
+ GroupedMatMulCompressedLayerTest,
+ ::testing::Combine(::testing::ValuesIn(shapes),
+ ::testing::Values(ov::element::f16),
+ ::testing::ValuesIn(weights_precisions),
+ ::testing::ValuesIn(decompression_precisions),
+ ::testing::Values(ov::element::f32),
+ ::testing::Values(DecompressionType::full),
+ // Symmetric quantization only: KleidiAI does not support zero-points
+ ::testing::Values(DecompressionType::empty),
+ ::testing::Values(false),
+ // No weight grouping: KleidiAI GatherMatmul does not support GrpSz != -1
+ ::testing::Values(-1),
+ ::testing::Values(ov::test::utils::DEVICE_CPU),
+ ::testing::Values("GatherMatmulCompressed"),
+ ::testing::Values(kleidiai_compressed_config)),
+ GroupedMatMulCompressedLayerTest::getTestCaseName);
+
+INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed_CornerCases,
+ GroupedMatMulCompressedLayerTest,
+ ::testing::Combine(::testing::ValuesIn(shapes_corner_cases),
+ ::testing::Values(ov::element::f16),
+ ::testing::ValuesIn(weights_precisions),
+ ::testing::ValuesIn(decompression_precisions),
+ ::testing::Values(ov::element::f32),
+ ::testing::Values(DecompressionType::full),
+ ::testing::Values(DecompressionType::empty),
+ ::testing::Values(false),
+ ::testing::Values(-1),
+ ::testing::Values(ov::test::utils::DEVICE_CPU),
+ ::testing::Values("GatherMatmulCompressed"),
+ ::testing::Values(kleidiai_compressed_config)),
+ GroupedMatMulCompressedLayerTest::getTestCaseName);
+
+} // namespace
diff --git a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/grouped_matmul_compressed.cpp
similarity index 85%
rename from src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp
rename to src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/grouped_matmul_compressed.cpp
index b9f25c742e6..45711f389ff 100644
--- a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp
+++ b/src/plugins/intel_cpu/tests/functional/custom/single_layer_tests/instances/x64/grouped_matmul_compressed.cpp
@@ -4,17 +4,20 @@
#include "single_op_tests/grouped_matmul.hpp"
-#include <vector>
-
#include "common_test_utils/test_constants.hpp"
namespace {
-using ov::test::GroupedMatMulCompressedLayerTest;
-using ov::test::GroupedMatMulLayerTest;
-using ov::test::GroupedMatMulShapeParams;
-using ov::test::TokensPerExpert;
+using namespace ov::test;
using ov::test::utils::DecompressionType;
+const std::vector<ov::element::Type> weights_precisions = {ov::element::u8, ov::element::i8,
+ ov::element::u4, ov::element::i4};
+const std::vector<ov::element::Type> decompression_precisions = {ov::element::f32};
+
+const std::vector<DecompressionType> sub_decompression_types = {DecompressionType::full,
+ DecompressionType::scalar,
+ DecompressionType::empty};
+
const std::vector<GroupedMatMulShapeParams> shapes = {
// 3D x 3D: A:[G,M,K] x B:[G,N,K] -> [G,M,N], dynamic M dim.
{{ov::PartialShape{4, -1, 128}, {{4, 8, 128}, {4, 1, 128}, {4, 16, 128}}}, {4, 256, 128}, {}},
@@ -25,33 +28,13 @@ const std::vector<GroupedMatMulShapeParams> shapes = {
{{ov::PartialShape{-1, 256}, {{16, 256}, {32, 256}}}, {8, 512, 256}, TokensPerExpert{{4, 2, 2, 2, 2, 2, 1, 1}, {2, 6, 4, 4, 4, 4, 4, 4}}},
};
-const std::vector<ov::element::Type> weights_precisions = {ov::element::u8, ov::element::i8,
- ov::element::u4, ov::element::i4};
-const std::vector<ov::element::Type> decompression_precisions = {ov::element::f32};
-
INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul,
GroupedMatMulLayerTest,
::testing::Combine(::testing::ValuesIn(shapes),
- ::testing::Values(ov::element::f16),
- ::testing::Values(ov::test::utils::DEVICE_CPU),
- ::testing::Values("GatherMatmul")),
- GroupedMatMulLayerTest::getTestCaseName);
-
-INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed,
- GroupedMatMulCompressedLayerTest,
- ::testing::Combine(::testing::ValuesIn(shapes),
- ::testing::Values(ov::element::f16),
- ::testing::ValuesIn(weights_precisions),
- ::testing::ValuesIn(decompression_precisions),
::testing::Values(ov::element::f32),
- ::testing::Values(DecompressionType::empty, DecompressionType::full),
- ::testing::Values(DecompressionType::full),
- ::testing::Values(false),
- ::testing::Values(-1, 16),
::testing::Values(ov::test::utils::DEVICE_CPU),
::testing::Values("GatherMatmul")),
- GroupedMatMulCompressedLayerTest::getTestCaseName);
-
+ GroupedMatMulLayerTest::getTestCaseName);
// Corner cases: odd K, non-power-of-2 N
const std::vector<GroupedMatMulShapeParams> shapes_corner_cases = {
@@ -62,24 +45,41 @@ const std::vector<GroupedMatMulShapeParams> shapes_corner_cases = {
INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_CornerCases,
GroupedMatMulLayerTest,
::testing::Combine(::testing::ValuesIn(shapes_corner_cases),
- ::testing::Values(ov::element::f16),
+ ::testing::Values(ov::element::f32),
::testing::Values(ov::test::utils::DEVICE_CPU),
::testing::Values("GatherMatmul")),
GroupedMatMulLayerTest::getTestCaseName);
+INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed,
+ GroupedMatMulCompressedLayerTest,
+ ::testing::Combine(::testing::ValuesIn(shapes),
+ ::testing::Values(ov::element::f32),
+ ::testing::ValuesIn(weights_precisions),
+ ::testing::ValuesIn(decompression_precisions),
+ ::testing::Values(ov::element::f32),
+ ::testing::Values(DecompressionType::full),
+ ::testing::ValuesIn(sub_decompression_types),
+ ::testing::Values(false),
+ ::testing::Values(-1, 16),
+ ::testing::Values(ov::test::utils::DEVICE_CPU),
+ ::testing::Values("GatherMatmulCompressed"),
+ ::testing::Values(ov::AnyMap{})),
+ GroupedMatMulCompressedLayerTest::getTestCaseName);
+
INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed_CornerCases,
GroupedMatMulCompressedLayerTest,
::testing::Combine(::testing::ValuesIn(shapes_corner_cases),
- ::testing::Values(ov::element::f16),
+ ::testing::Values(ov::element::f32),
::testing::ValuesIn(weights_precisions),
::testing::ValuesIn(decompression_precisions),
::testing::Values(ov::element::f32),
- ::testing::Values(DecompressionType::empty, DecompressionType::full),
::testing::Values(DecompressionType::full),
+ ::testing::ValuesIn(sub_decompression_types),
::testing::Values(false),
::testing::Values(-1),
::testing::Values(ov::test::utils::DEVICE_CPU),
- ::testing::Values("GatherMatmul")),
+ ::testing::Values("GatherMatmulCompressed"),
+ ::testing::Values(ov::AnyMap{})),
GroupedMatMulCompressedLayerTest::getTestCaseName);
} // namespace
diff --git a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp
index 27ceadb380f..deeebbfad77 100644
--- a/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp
+++ b/src/plugins/intel_cpu/tests/functional/shared_tests_instances/skip_tests_config.cpp
@@ -681,6 +681,8 @@ const std::vector<std::regex>& disabled_test_patterns() {
if (!ov::with_cpu_arm_dotprod() && !ov::with_cpu_arm_i8mm()) {
patterns.emplace_back(std::regex(R"(.*smoke_GroupedMatMul_Compressed.*)"));
}
+ // Accuracy issue in case of odd K
+ patterns.emplace_back(std::regex(R"(.*smoke_GroupedMatMul_Compressed_CornerCases.*WET=i4.*)"));
if (!ov::intel_cpu::hasHardwareSupport(ov::element::f16)) {
// Skip fp16 tests for paltforms that don't support fp16 precision
patterns.emplace_back(std::regex(R"(.*INFERENCE_PRECISION_HINT=(F|f)16.*)"));
diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp
index d1d940af0a0..7166adb4ccc 100644
--- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp
+++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/single_layer_tests/grouped_matmul.cpp
@@ -61,7 +61,8 @@ INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed_2d3d,
::testing::Values(true),
::testing::Values(-1, 128),
::testing::Values(ov::test::utils::DEVICE_GPU),
- ::testing::Values("GroupedMatMulCompressed")),
+ ::testing::Values("GroupedMatMulCompressed"),
+ ::testing::Values(ov::AnyMap{})),
GroupedMatMulCompressedLayerTest::getTestCaseName);
INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed_3d3d,
@@ -76,6 +77,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_GroupedMatMul_Compressed_3d3d,
::testing::Values(true),
::testing::Values(-1, 128),
::testing::Values(ov::test::utils::DEVICE_GPU),
- ::testing::Values("GroupedMatMulCompressed")),
+ ::testing::Values("GroupedMatMulCompressed"),
+ ::testing::Values(ov::AnyMap{})),
GroupedMatMulCompressedLayerTest::getTestCaseName);
} // namespace
diff --git a/src/tests/functional/plugin/shared/include/shared_test_classes/single_op/grouped_matmul.hpp b/src/tests/functional/plugin/shared/include/shared_test_classes/single_op/grouped_matmul.hpp
index 789f3fff0c6..7d9dc995573 100644
--- a/src/tests/functional/plugin/shared/include/shared_test_classes/single_op/grouped_matmul.hpp
+++ b/src/tests/functional/plugin/shared/include/shared_test_classes/single_op/grouped_matmul.hpp
@@ -76,7 +76,8 @@ using GroupedMatMulCompressedParams = std::tuple<
bool, // reshape_on_decompression
int, // decompression_group_size (-1 = per-OC)
std::string, // target device
- std::string // expected ov op type in the executed network (empty = skip check)
+ std::string, // expected ov op type in the executed network (empty = skip check)
+ ov::AnyMap // additional plugin configuration (e.g. dynamic_quantization_group_size)
>;
class GroupedMatMulCompressedLayerTest
diff --git a/src/tests/functional/plugin/shared/src/single_op/grouped_matmul.cpp b/src/tests/functional/plugin/shared/src/single_op/grouped_matmul.cpp
index 5aa0a2b18d7..44426fe5044 100644
--- a/src/tests/functional/plugin/shared/src/single_op/grouped_matmul.cpp
+++ b/src/tests/functional/plugin/shared/src/single_op/grouped_matmul.cpp
@@ -186,7 +186,7 @@ std::string GroupedMatMulCompressedLayerTest::getTestCaseName(
const testing::TestParamInfo<GroupedMatMulCompressedParams>& obj) {
const auto& [shape_params, act_type, weights_prec, decomp_prec, scale_prec,
multiply_type, subtract_type, reshape_on_decomp, group_size,
- target_device, expected_primitive] = obj.param;
+ target_device, expected_primitive, additional_config] = obj.param;
const auto& [a_input_shape, b_shape, tokens_per_expert] = shape_params;
OPENVINO_ASSERT(a_input_shape.first.rank().is_static());
@@ -202,13 +202,18 @@ std::string GroupedMatMulCompressedLayerTest::getTestCaseName(
result << "Reshape=" << reshape_on_decomp << "_";
result << "GrpSz=" << group_size << "_";
result << "targetDevice=" << target_device;
+ result << "config=(";
+ for (const auto& configEntry : additional_config) {
+ result << configEntry.first << "=" << configEntry.second.as<std::string>() << "_";
+ }
+ result << ")";
return result.str();
}
void GroupedMatMulCompressedLayerTest::SetUp() {
const auto& [shape_params, act_type, weights_prec, decomp_prec, scale_prec,
multiply_type, subtract_type, reshape_on_decomp, group_size,
- _targetDevice, expected_primitive] = GetParam();
+ _targetDevice, expected_primitive, additional_config] = GetParam();
shape_params_ = shape_params;
act_type_ = act_type;
model_name_ = "GroupedMatMulCompressed";
@@ -221,6 +226,7 @@ void GroupedMatMulCompressedLayerTest::SetUp() {
reshape_on_decomp_ = reshape_on_decomp;
group_size_ = group_size;
targetDevice = _targetDevice;
+ configuration.insert(additional_config.begin(), additional_config.end());
GroupedMatMulTestBase::SetUp();
// Loosen tolerance for low-bit weight-compressed variants; dequantization