Skip to content

Commit a82d70b

Browse files
authored
Merge branch 'huggingface:main' into test
2 parents 09c0893 + cd3bc8a commit a82d70b

File tree

6 files changed

+240
-217
lines changed

6 files changed

+240
-217
lines changed

.github/workflows/test_openvino.yml

+6
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ jobs:
3636
- name: Test with Pytest
3737
run: |
3838
pytest tests/openvino/ --ignore test_modeling_basic
39+
- name: Test openvino-nightly
40+
run: |
41+
pip uninstall -y openvino
42+
pip install openvino-nightly
43+
python -c "from optimum.intel import OVModelForCausalLM; OVModelForCausalLM.from_pretrained('hf-internal-testing/tiny-random-gpt2', export=True, compile=False)"
44+
optimum-cli export openvino -m hf-internal-testing/tiny-random-gpt2 gpt2-ov

.github/workflows/test_openvino_notebooks.yml

+2
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ jobs:
4949

5050
- name: Test with Pytest
5151
run: |
52+
sed -i 's/NUM_TRAIN_ITEMS = 600/NUM_TRAIN_ITEMS = 10/' notebooks/openvino/question_answering_quantization.ipynb
53+
sed -i 's/# %pip install/%pip install/' notebooks/openvino/optimum_openvino_inference.ipynb
5254
python -m pytest --nbval-lax notebooks/openvino/optimum_openvino_inference.ipynb notebooks/openvino/question_answering_quantization.ipynb
5355

0 commit comments

Comments
 (0)