Skip to content

Commit

Permalink
[CPU] Fixed FC dynamic quantization accuracy issue (#28554)
Browse files Browse the repository at this point in the history
### Details:
 - Cherry-picks: #28553
  • Loading branch information
dmitry-gorokhov authored Jan 21, 2025
1 parent fb1838f commit 8d5f583
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ const std::vector<MatMulDecompressionShapeParams> input_shapes_basic_dyn_quant =
};

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

std::vector<ov::AnyMap> filter_additional_config_dyn_quant() {
std::vector<ov::AnyMap> additional_config = {
Expand All @@ -232,7 +237,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MatMulCompressedWeights_non_default_dyn_quant_gro
::testing::ValuesIn(decompression_subtract_type),
::testing::Values(false),
::testing::ValuesIn(filter_additional_config_dyn_quant()),
::testing::ValuesIn(fusing_params),
::testing::ValuesIn(fusing_params_dyn_quant),
::testing::Values(true)),
MatmulWeightsDecompression::getTestCaseName);

Expand All @@ -249,7 +254,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MatMulCompressedWeights_sym_non_default_dyn_quant
::testing::Values(DecompressionType::empty),
::testing::Values(false),
::testing::ValuesIn(filter_additional_config_dyn_quant()),
::testing::ValuesIn(fusing_params),
::testing::ValuesIn(fusing_params_dyn_quant),
::testing::Values(true)),
MatmulWeightsDecompression::getTestCaseName);

Expand All @@ -265,7 +270,7 @@ INSTANTIATE_TEST_SUITE_P(smoke_MatMulCompressedWeights_mxfp4,
// todo: zero points converted to fp32 for reshape == true case
::testing::Values(false),
::testing::ValuesIn(filter_additional_config_basic()),
::testing::ValuesIn(fusing_params),
::testing::ValuesIn(fusing_params_dyn_quant),
::testing::Values(true)),
MatmulWeightsDecompression::getTestCaseName);

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/thirdparty/onednn

0 comments on commit 8d5f583

Please sign in to comment.