Skip to content

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

Enable models regressed because of frontend type alignment changes (#26661)

Andrii Staikov538374f94d73
diff --git a/src/frontends/pytorch/src/frontend.cpp b/src/frontends/pytorch/src/frontend.cpp
index ff32aa9aab1..a5baa167db8 100644
--- a/src/frontends/pytorch/src/frontend.cpp
+++ b/src/frontends/pytorch/src/frontend.cpp
@@ -317,6 +317,7 @@ void FrontEnd::normalize(const std::shared_ptr<ov::Model>& model) const {
manager.register_pass<ov::pass::RemoveMultiSubGraphOpDanglingParamsResults>();
manager.register_pass<ov::pass::ReverseShapeAndTypeInfer>();
manager.register_pass<ov::pass::ResolveNameCollisions>(true);
+ manager.register_pass<ov::pass::ConvertConvertLike>();
manager.run_passes(model);
// Usually if nn.Module.forward is given as a source model for conversion, there is the first Parameter
diff --git a/tests/model_hub_tests/transformation_tests/models/hf-tiny-random-models-precommit b/tests/model_hub_tests/transformation_tests/models/hf-tiny-random-models-precommit
index 912b4d7d151..c3ec331fcda 100644
--- a/tests/model_hub_tests/transformation_tests/models/hf-tiny-random-models-precommit
+++ b/tests/model_hub_tests/transformation_tests/models/hf-tiny-random-models-precommit
@@ -39,8 +39,8 @@ fxmarty/really-tiny-falcon-testing,https://huggingface.co/fxmarty/really-tiny-fa
Xenova/tiny-random-Phi3ForCausalLM,https://huggingface.co/Xenova/tiny-random-Phi3ForCausalLM
facebook/opt-125m,https://huggingface.co/facebook/opt-125m
facebook/opt-350m,https://huggingface.co/facebook/opt-350m
+katuni4ka/tiny-random-chatglm2,https://huggingface.co/katuni4ka/tiny-random-chatglm2
+katuni4ka/tiny-random-glm4,https://huggingface.co/katuni4ka/tiny-random-glm4
hf-internal-testing/tiny-random-BioGptForCausalLM,https://huggingface.co/hf-internal-testing/tiny-random-BioGptForCausalLM,xfail,No ScaledDotProductAttention operation observed in the graph CVS-145820
hf-internal-testing/tiny-random-XGLMForCausalLM,https://huggingface.co/hf-tiny-model-private/tiny-random-XGLMForCausalLM,xfail,No ScaledDotProductAttention operation observed in the graph CVS-145820
-katuni4ka/tiny-random-orion,https://huggingface.co/katuni4ka/tiny-random-orion,xfail,No ScaledDotProductAttention operation observed in the graph CVS-145820
-katuni4ka/tiny-random-chatglm2,https://huggingface.co/katuni4ka/tiny-random-chatglm2,xfail,Model references undeclared parameters: beam_idx () CVS-145820
-katuni4ka/tiny-random-glm4,https://huggingface.co/katuni4ka/tiny-random-glm4,xfail,Model references undeclared parameters beam_idx () attention_mask () CVS-145820
\ No newline at end of file
+katuni4ka/tiny-random-orion,https://huggingface.co/katuni4ka/tiny-random-orion,xfail,No ScaledDotProductAttention operation observed in the graph CVS-145820
\ No newline at end of file