Skip to content

Commit ab6ac99

Browse files
authored
disable windows install (#5)
* separate common quant models patching and gptq * disable awq windows
1 parent f0f7a72 commit ab6ac99

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/test_openvino_slow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
name: Install specific dependencies and versions required for older transformers
5050
run: pip install transformers==${{ matrix.transformers-version }} accelerate==0.* peft==0.13.*, diffusers==0.30.* transformers_stream_generator
5151

52-
- if: ${{ matrix.transformers-version == 'latest' }}
52+
- if: ${{ matrix.transformers-version == 'latest' && matrix.os != 'windows-2019' }}
5353
name: Install auto-gptq, autoawq
5454
run: |
5555
pip install auto-gptq autoawq --extra-index-url https://download.pytorch.org/whl/cpu

tests/openvino/test_modeling.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import copy
1616
import gc
1717
import os
18+
import platform
1819
import tempfile
1920
import time
2021
import unittest
@@ -914,10 +915,14 @@ class OVModelForCausalLMIntegrationTest(unittest.TestCase):
914915
"exaone",
915916
"mistral-nemo",
916917
"minicpm3",
917-
"opt_gptq",
918918
)
919919

920-
if is_openvino_version(">=", "2024.6.0"):
920+
# gptq and awq install disabled for windows test environment
921+
if platform.system() != "Windows":
922+
SUPPORTED_ARCHITECTURES += ("opt_gptq",)
923+
924+
# autoawq install disabled for windows test environment
925+
if is_openvino_version(">=", "2024.6.0") and platform.system() != "Windows":
921926
SUPPORTED_ARCHITECTURES += ("mixtral_awq",)
922927

923928
GENERATION_LENGTH = 100

0 commit comments

Comments
 (0)