Skip to content

Commit 8d5f583

Browse files
[CPU] Fixed FC dynamic quantization accuracy issue (openvinotoolkit#28554)
### Details: - Cherry-picks: openvinotoolkit#28553
1 parent fb1838f commit 8d5f583

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/plugins/intel_cpu/tests/functional/custom/subgraph_tests/src/x64/matmul_weights_decompression.cpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ const std::vector<MatMulDecompressionShapeParams> input_shapes_basic_dyn_quant =
211211
};
212212

213213
const std::vector<ov::test::ElementType> weights_precisions_dyn_quant = {ov::element::u8, ov::element::u4};
214+
const std::vector<fusingSpecificParams> fusing_params_dyn_quant{
215+
emptyFusingSpec,
216+
fusingBias, // bias is hanlded in separate code-path with post-ops
217+
fusingSwish // max amount of post-op regs (which reduces available accum regs)
218+
};
214219

215220
std::vector<ov::AnyMap> filter_additional_config_dyn_quant() {
216221
std::vector<ov::AnyMap> additional_config = {
@@ -232,7 +237,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MatMulCompressedWeights_non_default_dyn_quant_gro
232237
::testing::ValuesIn(decompression_subtract_type),
233238
::testing::Values(false),
234239
::testing::ValuesIn(filter_additional_config_dyn_quant()),
235-
::testing::ValuesIn(fusing_params),
240+
::testing::ValuesIn(fusing_params_dyn_quant),
236241
::testing::Values(true)),
237242
MatmulWeightsDecompression::getTestCaseName);
238243

@@ -249,7 +254,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MatMulCompressedWeights_sym_non_default_dyn_quant
249254
::testing::Values(DecompressionType::empty),
250255
::testing::Values(false),
251256
::testing::ValuesIn(filter_additional_config_dyn_quant()),
252-
::testing::ValuesIn(fusing_params),
257+
::testing::ValuesIn(fusing_params_dyn_quant),
253258
::testing::Values(true)),
254259
MatmulWeightsDecompression::getTestCaseName);
255260

@@ -265,7 +270,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MatMulCompressedWeights_mxfp4,
265270
// todo: zero points converted to fp32 for reshape == true case
266271
::testing::Values(false),
267272
::testing::ValuesIn(filter_additional_config_basic()),
268-
::testing::ValuesIn(fusing_params),
273+
::testing::ValuesIn(fusing_params_dyn_quant),
269274
::testing::Values(true)),
270275
MatmulWeightsDecompression::getTestCaseName);
271276

0 commit comments

Comments
 (0)