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
Update models in hub tests (#26253)
Maxim Vafin5a4f53b82032
diff --git a/tests/model_hub_tests/pytorch/hf_transformers_models b/tests/model_hub_tests/pytorch/hf_transformers_modelsindex 22bdc8abef7..52e3f97487d 100644--- a/tests/model_hub_tests/pytorch/hf_transformers_models+++ b/tests/model_hub_tests/pytorch/hf_transformers_models@@ -2,7 +2,6 @@albert,albert/albert-base-v2align,kakaobrain/align-base,xfail,Compile error: AvgPool: Kernel after dilation has size (dim: 640) larger than the data shape after padding (dim: 9) at axis 0.altclip,BAAI/AltCLIP-aquila,BAAI/AquilaCode-pyaudio-spectrogram-transformer,MIT/ast-finetuned-audioset-10-10-0.4593autoformer,huggingface/autoformer-tourism-monthly,xfail,Load error: mat1 and mat2 shapes cannot be multipliedbark,suno/bark,xfail,Load error: got an unexpected keyword argument 'input_ids'diff --git a/tests/model_hub_tests/pytorch/test_llm.py b/tests/model_hub_tests/pytorch/test_llm.pyindex 3a806d66f0e..6f866b46f44 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 not in ["gptj", "starcoder2"]:+ if type not in ["gptj", "starcoder2", "mpt"]: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", "mbart_gptq"]:+ if type not in ["opt", "falcon", "mbart_gptq", "mpt"]:ids = torch.cumsum(example["attention_mask"] != 0, dim=1) - 1example["position_ids"] = ids[:, -example["input_ids"].shape[1]:]@@ -224,7 +224,6 @@ class TestLLMModel(TestTorchConvertModel):("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"),