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
Remove some big models from hf scope (#26235)
Maxim Vafinb80a179cbbdc
diff --git a/tests/model_hub_tests/pytorch/hf_transformers_models b/tests/model_hub_tests/pytorch/hf_transformers_modelsindex 5aa6c575ed5..22bdc8abef7 100644--- a/tests/model_hub_tests/pytorch/hf_transformers_models+++ b/tests/model_hub_tests/pytorch/hf_transformers_models@@ -65,7 +65,7 @@ encoder_decoder,patrickvonplaten/bert2gpt2-cnn_dailymail-fp16,xfail,Load error:encoder-decoder,raynardj/wenyanwen-chinese-translate-to-ancienternie,nghuyong/ernie-3.0-base-zhernie_m,MoritzLaurer/ernie-m-large-mnli-xnli-esm,InstaDeepAI/nucleotide-transformer-2.5b-multi-species+esm,InstaDeepAI/nucleotide-transformer-500m-human-reff_t5,flax-community/ft5-cnn-dmfastspeech2_conformer,espnet/fastspeech2_conformer,xfail,Compile error: CPU plug-in doesn't support Tile operation with dynamic rank. Operation name: aten::repeat_interleave/Tilefastspeech2_conformer_with_hifigan,espnet/fastspeech2_conformer_with_hifigan,xfail,Compile error: CPU plug-in doesn't support Tile operation with dynamic rank. Operation name: __module.model/aten::repeat_interleave/Tile@@ -81,7 +81,6 @@ glpn,vinvino02/glpn-nyugpt_bigcode,bigcode/tiny_starcoder_pygpt_neo,EleutherAI/gpt-neo-2.7Bgpt2,openai-community/gpt2-gptj,databricks/dolly-v1-6bgptsan-japanese,Tanrei/GPTSAN-japanese,xfail,Unsupported op aten::index_put_ prim::TupleConstruct prim::TupleUnpackgraphormer,clefourrier/graphormer-base-pcqm4mv2,xfail,Load error: GraphormerForGraphClassification.forward() missing 6 required positional arguments: 'input_edges' 'attn_bias' 'in_degree' 'out_degree' 'spatial_pos' and 'attn_edge_type'grounding-dino,IDEA-Research/grounding-dino-base,xfail,Trace error: op->outputs().size() == 1 INTERNAL ASSERT FAILED@@ -129,7 +128,6 @@ mobilenet_v2,google/mobilenet_v2_1.0_224mobilevit,apple/mobilevit-smallmobilevitv2,apple/mobilevitv2-1.0-imagenet1k-256mpnet,sentence-transformers/all-mpnet-base-v2-mpt,team-lucid/mptk-1bmra,uw-madison/mra-base-512-4mt5,csebuetnlp/mT5_multilingual_XLSummusicgen,facebook/musicgen-large@@ -171,7 +169,7 @@ rt_detr,rafaelpadilla/porting_rt_detr,xfail,Trace error: Only tensors lists tuplrwkv,RWKV/rwkv-4-169m-pilesam,facebook/sam-vit-hugescibert,Goutham-Vignesh/ContributionSentClassification-scibert-seamless_m4t,facebook/hf-seamless-m4t-large+seamless_m4t,facebook/hf-seamless-m4t-mediumsegformer,mattmdjaga/segformer_b2_clothesseg-ment-tation,NiCy/seg-ment-tationsew,anton-l/sew-mid-100k-ft-keyword-spotting@@ -180,12 +178,10 @@ siglip,google/siglip-base-patch16-224siglip_vision_model,bczhou/TinyLLaVA-3.1B-SigLIPspeech_to_text,facebook/s2t-small-librispeech-asrspeech_to_text_2,pirxus/s2t2_decoder_base-speech-encoder-decoder,facebook/wav2vec2-xls-r-2b-22-to-16+speech-encoder-decoder,facebook/wav2vec2-xls-r-300m-en-to-15speecht5,microsoft/speecht5_tts,xfail,Unsupported op aten::bernoullisplinter,tau/splinter-base-qasssqueezebert,typeform/squeezebert-mnli-stablelm,pansophic/rocket-3B-starcoder2,cognitivecomputations/dolphincoder-starcoder2-7bsuperpoint,stevenbucaille/superpoint,xfail,Unsupported prim::TupleConstruct prim::TupleUnpackswiftformer,MBZUAI/swiftformer-xsswin,microsoft/swin-tiny-patch4-window7-224diff --git a/tests/model_hub_tests/pytorch/test_llm.py b/tests/model_hub_tests/pytorch/test_llm.pyindex 198c4624604..3a806d66f0e 100644--- a/tests/model_hub_tests/pytorch/test_llm.py+++ b/tests/model_hub_tests/pytorch/test_llm.py@@ -120,12 +120,12 @@ class TestLLMModel(TestTorchConvertModel):example = t("Some input text to verify that model works.",return_tensors='pt').__dict__['data']- if type != "gptj":+ if type not in ["gptj", "starcoder2"]:pkv, am = self.get_pkv(model, t)example["past_key_values"] = pkvexample["attention_mask"] = torch.cat([example["attention_mask"], am], -1)- if type not in ["opt", "falcon"]:+ if type not in ["opt", "falcon", "mbart_gptq"]:ids = torch.cumsum(example["attention_mask"] != 0, dim=1) - 1example["position_ids"] = ids[:, -example["input_ids"].shape[1]:]@@ -195,15 +195,14 @@ class TestLLMModel(TestTorchConvertModel):self.run(model_name=name, model_link=type, ie_device=ie_device)@pytest.mark.parametrize("type,name", [- ("falcon", "tiiuae/falcon-7b-instruct"),- ("gpt_neox", "EleutherAI/gpt-neox-20b"),- ("gpt_neox", "togethercomputer/RedPajama-INCITE-7B-Instruct"),+ ("gpt_neox", "databricks/dolly-v2-3b"),("gpt_neox_japanese", "rinna/japanese-gpt-neox-3.6b"),("opt", "facebook/opt-1.3b"),("phi", "microsoft/phi-2"),("phi3", "microsoft/Phi-3-mini-4k-instruct"),("qwen2", "Qwen/Qwen2-0.5B-Instruct"),("stablelm", "stabilityai/stablelm-3b-4e1t"),+ ("llama_gptq", "TheBloke/Llama-2-7B-Chat-GPTQ"),])@pytest.mark.nightlydef test_convert_model_nightly(self, name, type, ie_device):@@ -211,6 +210,7 @@ class TestLLMModel(TestTorchConvertModel):# too big for nightly@pytest.mark.parametrize("type,name", [+ ("aquila", "BAAI/AquilaChat2-7B"),("baichuan", "baichuan-inc/Baichuan2-7B-Base"),pytest.param("chatglm", "THUDM/chatglm3-6b",marks=pytest.mark.xfail(reason="Accuracy validation failed")),@@ -218,11 +218,21 @@ class TestLLMModel(TestTorchConvertModel):("fuyu", "ybelkada/fuyu-8b-sharded"),("gemma", "beomi/gemma-ko-7b"),("gemma2", "SteelStorage/Tess-v2.5-Gemma-2-27B-alpha-st"),+ ("gpt_neox", "togethercomputer/RedPajama-INCITE-7B-Instruct"),+ ("gpt_neox", "EleutherAI/gpt-neox-20b"),("llama", "togethercomputer/LLaMA-2-7B-32K"),("mistral", "HuggingFaceH4/zephyr-7b-beta"),("mpt", "mosaicml/mpt-7b"),+ ("starcoder2", "cognitivecomputations/dolphincoder-starcoder2-7b"),("jais", "core42/jais-13b"),("persimmon", "adept/persimmon-8b-base"),+ ("bloom_gptq", "sbolouki/bloom-1b7-gptq"),+ ("cohere_gptq", "shuyuej/aya-23-8B-GPTQ"),+ ("mbart_gptq", "Shivam098/opt-translation"),+ pytest.param("mistral_gptq", "TheBloke/em_german_leo_mistral-GPTQ",+ marks=pytest.mark.xfail(reason="GPTQ QUANT_TYPE=cuda is not supported")),+ pytest.param("llama3_gptq", "TechxGenus/Meta-Llama-3-8B-GPTQ",+ marks=pytest.mark.xfail(reason="GPTQ QUANT_TYPE=cuda is not supported")),])def test_convert_model_very_large(self, name, type, ie_device):self.run(model_name=name, model_link=type, ie_device=ie_device)