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
[Snippets][CPU] Disabled Quantized MHA tokenization on AVX2_VNNI_2 (#26221)
Alexandra Sidorovac3358ef8a3de
diff --git a/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp b/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cppindex 54a038c9492..4f9e103fd82 100644--- a/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp+++ b/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp@@ -963,9 +963,13 @@ void Transformations::MainSnippets(void) {// The current solution with ExtractExplicitMatMulTranspose pass is slower for non-f32 cases than using of brgemm_copy_b kernelif (matmul->get_transpose_a() || matmul->get_transpose_b())return false;- if (in_type0 == ov::element::i8)+ if (in_type0 == ov::element::i8) {+ // [150531] AVX2_VNNI_2 is not fully supported yet+ if (dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx2_vnni_2))+ return false;return dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx512_core_vnni) ||dnnl::impl::cpu::x64::mayiuse(dnnl::impl::cpu::x64::avx2_vnni);+ }if ((in_type0 == ov::element::bf16 && in_type1 == ov::element::bf16) ||((in_type0 == element::f32 && in_type1 == ov::element::f32 && inferencePrecision == ov::element::bf16))) {// Implementation calls AMX BF16 brgemm only for tensors with K and N aligned on 2, otherwise fallbacks on vector impl