Skip to content

Commit

Permalink
Fix notebooks (#603)
Browse files Browse the repository at this point in the history
- use dataset for audio example to fix permission issue with URL
- change pytorch_model.bin to model.safetensors
- speed up quantization notebook test by using only 10 samples
- update half() messaging (no longer needed to do half() on GPU)
  • Loading branch information
helena-intel authored Mar 15, 2024
1 parent 948f99d commit cd3bc8a
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 212 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_openvino_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ jobs:

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

0 comments on commit cd3bc8a

Please sign in to comment.