Skip to content

Commit

Permalink
disable awq and gptq install for old torch (#3)
Browse files Browse the repository at this point in the history
* fix style

* disable autogptq and autoawq install for old transformers testing
  • Loading branch information
eaidova committed Dec 20, 2024
1 parent da3bd88 commit 0a0c7aa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test_openvino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
name: Install specific dependencies and versions required for older transformers
run: |
pip install transformers==${{ matrix.transformers-version }} accelerate==0.* peft==0.13.* diffusers==0.30.* transformers_stream_generator
- if: ${{ matrix.transformers-version == 'latest' && matrix.test-pattern == '*modeling*'}}
name: Install auto-gptq, autoawq
run: |
pip install auto-gptq autoawq --extra-index-url https://download.pytorch.org/whl/cpu
- if: ${{ matrix.test-pattern == '*modeling*' }}
name: Uninstall NNCF
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test_openvino_slow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
name: Install specific dependencies and versions required for older transformers
run: pip install transformers==${{ matrix.transformers-version }} accelerate==0.* peft==0.13.*, diffusers==0.30.* transformers_stream_generator

- if: ${{ matrix.transformers-version == 'latest' }}
name: Install auto-gptq, autoawq
run: |
pip install auto-gptq autoawq --extra-index-url https://download.pytorch.org/whl/cpu
- name: Pip freeze
run: pip freeze

Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
]

TESTS_REQUIRE = [
"auto-gptq",
"autoawq",
"accelerate",
"pytest>=7.2.0,<8.0.0",
"parameterized",
Expand Down
2 changes: 1 addition & 1 deletion tests/openvino/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,6 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
"mixtral",
"mpt",
"opt",
"opt_gptq",
"pegasus",
"qwen",
"phi",
Expand Down Expand Up @@ -915,6 +914,7 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
"exaone",
"mistral-nemo",
"minicpm3",
"opt_gptq",
)

if is_openvino_version(">=", "2024.6.0"):
Expand Down

0 comments on commit 0a0c7aa

Please sign in to comment.