Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ilyas Moutawwakil <57442720+IlyasMoutawwakil@users.noreply.github.com>
  • Loading branch information
eaidova and IlyasMoutawwakil authored Oct 11, 2024
1 parent bddbdd2 commit 1b1b4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/openvino/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ def test_compare_to_transformers(self, model_arch):
)
inputs = processor(images=[self.IMAGE.resize((600, 600))], text=[prompt], return_tensors="pt")
ov_model = OVModelForVisualCausalLM.from_pretrained(
model_id, export=True, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS
model_id, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS
)
self.assertIsInstance(ov_model, MODEL_TYPE_TO_CLS_MAPPING[ov_model.config.model_type])
self.assertIsInstance(ov_model.vision_embeddings, OVVisionEmbedding)
Expand Down Expand Up @@ -1914,7 +1914,7 @@ def test_compare_to_transformers(self, model_arch):
def test_generate_utils(self, model_arch):
model_id = MODEL_NAMES[model_arch]
model = OVModelForVisualCausalLM.from_pretrained(
model_id, export=True, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS
model_id, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS
)
preprocessor = AutoProcessor.from_pretrained(model_id, trust_remote_code=model_arch in self.REMOTE_CODE_MODELS)
if "llava" in model_arch:
Expand Down

0 comments on commit 1b1b4fe

Please sign in to comment.