Skip to content

Commit

Permalink
replace llava test model
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova committed Nov 7, 2024
1 parent bb90a76 commit a3c6506
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions tests/openvino/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2007,10 +2007,6 @@ def test_llava_with_new_preprocessing(self, model_arch):
model_id, export=True, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS
)
self.assertTrue(ov_model._support_new_processing)
if model_arch == "llava":
# testing model for llava does ot have specified image_seq_length and it is different from default
transformers_model.config.image_seq_length = 225
ov_model.config.image_seq_length = 225
self.assertTrue(processor.patch_size is not None)
self.assertTrue(processor.vision_feature_select_strategy is not None)
inputs = processor(images=self.IMAGE, text=prompt, return_tensors="pt")
Expand Down
2 changes: 1 addition & 1 deletion tests/openvino/utils_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"llama": "HuggingFaceM4/tiny-random-LlamaForCausalLM",
"llama_awq": "HuggingFaceH4/tiny-random-LlamaForCausalLM",
"llama_gptq": "hf-internal-testing/TinyLlama-1.1B-Chat-v0.3-GPTQ",
"llava": "trl-internal-testing/tiny-random-LlavaForConditionalGeneration",
"llava": "katuni4ka/tiny-random-llava",
"llava_next": "katuni4ka/tiny-random-llava-next",
"m2m_100": "hf-internal-testing/tiny-random-m2m_100",
"opt": "hf-internal-testing/tiny-random-OPTModel",
Expand Down

0 comments on commit a3c6506

Please sign in to comment.