Skip to content

Commit 53686cf

Browse files
committed
add test models
1 parent aad5dbe commit 53686cf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/openvino/test_modeling.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ def test_pipeline(self, model_arch):
473473
class OVModelForCausalLMIntegrationTest(unittest.TestCase):
474474
SUPPORTED_ARCHITECTURES = (
475475
"bart",
476+
"baichuan2",
476477
"gpt_bigcode",
477478
"blenderbot",
478479
"blenderbot-small",
@@ -484,6 +485,7 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
484485
"gpt2",
485486
"gpt_neo",
486487
"gpt_neox",
488+
"jais",
487489
"llama",
488490
# "llama_gptq",
489491
"marian",
@@ -498,7 +500,7 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
498500
)
499501
GENERATION_LENGTH = 100
500502
IS_SUPPORT_STATEFUL = is_openvino_version(">=", "2023.3")
501-
REMOTE_CODE_MODELS = ("chatglm", "minicpm")
503+
REMOTE_CODE_MODELS = ("chatglm", "minicpm", "baichuan2", "jais")
502504

503505
@parameterized.expand(SUPPORTED_ARCHITECTURES)
504506
def test_compare_to_transformers(self, model_arch):

tests/openvino/utils_tests.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"beit": "hf-internal-testing/tiny-random-BeitForImageClassification",
2323
"bert": "hf-internal-testing/tiny-random-bert",
2424
"bart": "hf-internal-testing/tiny-random-bart",
25+
"baichuan2": "katuni4ka/tiny-random-baichuan2",
2526
"bigbird_pegasus": "hf-internal-testing/tiny-random-bigbird_pegasus",
2627
"blenderbot-small": "hf-internal-testing/tiny-random-BlenderbotModel",
2728
"blenderbot": "hf-internal-testing/tiny-random-BlenderbotModel",
@@ -48,6 +49,7 @@
4849
"gptj": "hf-internal-testing/tiny-random-GPTJModel",
4950
"hubert": "hf-internal-testing/tiny-random-HubertModel",
5051
"ibert": "hf-internal-testing/tiny-random-ibert",
52+
"jais": "katuni4ka/tiny-random-jais",
5153
"levit": "hf-internal-testing/tiny-random-LevitModel",
5254
"longt5": "hf-internal-testing/tiny-random-longt5",
5355
"llama": "fxmarty/tiny-llama-fast-tokenizer",

0 commit comments

Comments
 (0)