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
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.cppindex 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 Parameterdiff --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-precommitindex 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-faXenova/tiny-random-Phi3ForCausalLM,https://huggingface.co/Xenova/tiny-random-Phi3ForCausalLMfacebook/opt-125m,https://huggingface.co/facebook/opt-125mfacebook/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-glm4hf-internal-testing/tiny-random-BioGptForCausalLM,https://huggingface.co/hf-internal-testing/tiny-random-BioGptForCausalLM,xfail,No ScaledDotProductAttention operation observed in the graph CVS-145820hf-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