Skip to content

Commit

Permalink
update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Oct 24, 2024
1 parent 8a77bd7 commit 5f00574
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_openvino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
python -m pip install --upgrade pip
# install PyTorch CPU version to avoid installing CUDA packages on GitHub runner without GPU
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install transformers==${{ matrix.transformers-version }}
pip install .[openvino,openvino-tokenizers,tests,diffusers] onnxruntime
- if: ${{ matrix.transformers-version == '4.36.0' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_openvino_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
# Install openvino manually to prevent dependency conflicts when .[openvino] pins
# optimum or transformers to a specific version
pip install ${{ matrix.openvino }}
pip install transformers==${{ matrix.transformers-version }}
pip install .[tests]
- name: Pip freeze
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

INSTALL_REQUIRE = [
"torch>=1.11",
"transformers @ git+https://github.com/huggingface/transformers.git",
#"transformers>=4.36,<4.46",
"transformers>=4.36,<4.47",
"optimum~=1.23",
"datasets>=1.4.0",
"sentencepiece",
Expand Down Expand Up @@ -61,7 +60,7 @@
QUALITY_REQUIRE = ["black~=23.1", "ruff==0.4.4"]

EXTRAS_REQUIRE = {
"neural-compressor": ["neural-compressor[pt]>3.0", "accelerate"],
"neural-compressor": ["neural-compressor[pt]>3.0", "accelerate", "transformers<4.46"],
"openvino": [
"openvino==2024.4.1.dev20240926",
"nncf>=2.11.0",
Expand Down

0 comments on commit 5f00574

Please sign in to comment.