Skip to content

Commit

Permalink
resolve convs
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Nov 3, 2024
1 parent 943cb1b commit 47b5ad3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
jobs:
build_documentation:
runs-on: ubuntu-latest

env:
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.number }}
Expand All @@ -29,6 +30,11 @@ jobs:
repository: "huggingface/optimum-intel"
path: optimum-intel

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Setup environment
run: |
pip uninstall -y doc-builder
Expand Down
28 changes: 13 additions & 15 deletions .github/workflows/test_openvino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
strategy:
fail-fast: false
matrix:
test_pattern:
test-pattern:
[
"*modeling.py",
"*modeling_diffusion.py",
"*modeling*",
"*diffusion*",
"*quantization*",
"*training*",
"*export*",
Expand All @@ -47,29 +47,27 @@ jobs:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install .[openvino,openvino-tokenizers,diffusers,tests] transformers[testing]==${{ matrix.transformers-version }}
- name: Assert versions
run: |
python -c "import transformers; print(transformers.__version__); assert transformers.__version__.startswith('${{ matrix.transformers-version }}'.replace('.*', ''))"
- if: ${{ matrix.transformers-version == '4.36.0' }}
name: Downgrade Accelerate
run: pip install accelerate==0.*

- name: Test with Pytest (basic)
- name: Assert versions
run: |
# catch failures early and quickly
pytest tests/openvino/test_modeling_basic.py --durations=0
python -c "import transformers; print(transformers.__version__); assert transformers.__version__.startswith('${{ matrix.transformers-version }}'.replace('.*', ''))"
- name: Test with Pytest (advanced)
- name: Test with Pytest
run: |
pytest tests/openvino/${{ matrix.test_pattern }} --durations=0
pytest tests/openvino/${{ matrix.test-pattern }} --durations=0
env:
HF_HUB_READ_TOKEN: ${{ secrets.HF_HUB_READ_TOKEN }}

- name: Install dependencies (nightly)
- if: ${{ matrix.test-pattern == '*modeling*' }}
name: Install dependencies (nightly)
run: |
pip install --upgrade --pre openvino openvino-tokenizers --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
pip uninstall -y nncf
- name: Test with Pytest (nightly)
- if: ${{ matrix.test-pattern == '*modeling*' }}
name: Test with Pytest (nightly)
run: |
pytest tests/openvino/test_modeling_basic.py
pytest tests/openvino/test_modeling_basic.py --durations=0
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand Down
File renamed without changes.

0 comments on commit 47b5ad3

Please sign in to comment.