Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenVINO pipelines #740

Merged
merged 21 commits into from
Jun 13, 2024
Prev Previous commit
Next Next commit
fix
echarlaix committed May 31, 2024
commit 0b4c1931c8c19e29dd9e95b55b8f0c7aac75eadc
4 changes: 2 additions & 2 deletions tests/openvino/test_modeling.py
Original file line number Diff line number Diff line change
@@ -297,8 +297,8 @@ def test_seq2seq_load_from_hub(self):
with tempfile.TemporaryDirectory() as tmpdirname:
ov_exported_pipe.save_pretrained(tmpdirname)
folder_contents = os.listdir(tmpdirname)
self.assertTrue(OV_XML_FILE_NAME in folder_contents)
self.assertTrue(OV_XML_FILE_NAME.replace(".xml", ".bin") in folder_contents)
self.assertTrue(OV_DECODER_WITH_PAST_NAME in folder_contents)
self.assertTrue(OV_DECODER_WITH_PAST_NAME.replace(".xml", ".bin") in folder_contents)
ov_exported_pipe = optimum_pipeline("text2text-generation", tmpdirname, accelerator="openvino")
self.assertIsInstance(ov_exported_pipe.model, OVBaseModel)

Loading