35
35
INSTALL_TEST_DIR : ${{ github.workspace }}/install/tests
36
36
INSTALL_WHEELS_DIR : ${{ github.workspace }}/install/wheels
37
37
MODEL_HUB_TESTS_INSTALL_DIR : ${{ github.workspace }}/install/tests/model_hub_tests
38
+ USE_SYSTEM_CACHE : False # Using remote HuggingFace cache
38
39
steps :
39
40
- name : Check sudo
40
41
if : ${{ runner.os == 'Linux' }}
@@ -65,11 +66,17 @@ jobs:
65
66
66
67
# Needed as ${{ github.workspace }} is not working correctly when using Docker
67
68
- name : Setup Variables
69
+ if : ${{ contains(inputs.runner, 'aks') }} # Do not setup variables for GitHub-hosted runners
68
70
run : |
69
71
echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"
70
72
echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"
71
73
echo "INSTALL_TEST_DIR=$GITHUB_WORKSPACE/install/tests" >> "$GITHUB_ENV"
72
74
echo "MODEL_HUB_TESTS_INSTALL_DIR=$GITHUB_WORKSPACE/install/tests/model_hub_tests" >> "$GITHUB_ENV"
75
+ echo "HF_HUB_CACHE=/mount/caches/huggingface" >> "$GITHUB_ENV"
76
+
77
+ - name : Setup HuggingFace Cache Directory (Windows)
78
+ if : runner.os == 'Windows'
79
+ run : Add-Content -Path $env:GITHUB_ENV -Value "HF_HUB_CACHE=C:\\mount\\caches\\huggingface"
73
80
74
81
- name : Extract OpenVINO artifacts
75
82
run : |
@@ -130,7 +137,6 @@ jobs:
130
137
env :
131
138
TYPE : ${{ inputs.model_scope == 'precommit' && 'precommit' || 'nightly' }}
132
139
TEST_DEVICE : CPU
133
- USE_SYSTEM_CACHE : False
134
140
OP_REPORT_FILE : ${{ env.INSTALL_TEST_DIR }}/TEST-torch_unsupported_ops.log
135
141
136
142
- name : PagedAttention Test
@@ -140,7 +146,6 @@ jobs:
140
146
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/transformation_tests/test_pa_transformation.py -m precommit --html=${INSTALL_TEST_DIR}/TEST-torch_pagedattention_tests.html --self-contained-html -vvv -s --tb=short -n 2
141
147
env :
142
148
TEST_DEVICE : CPU
143
- USE_SYSTEM_CACHE : False
144
149
145
150
- name : RoPE Test
146
151
if : ${{ inputs.model_scope == 'precommit' }}
@@ -149,7 +154,6 @@ jobs:
149
154
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/transformation_tests/test_transformations.py -m precommit --html=${INSTALL_TEST_DIR}/TEST-torch_rope_tests.html --self-contained-html -v --tb=short -n 2
150
155
env :
151
156
TEST_DEVICE : CPU
152
- USE_SYSTEM_CACHE : False
153
157
154
158
- name : StatefulToStateless Test
155
159
if : ${{ inputs.model_scope == 'precommit' }}
@@ -158,7 +162,6 @@ jobs:
158
162
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/transformation_tests/test_stateful_to_stateless_transformation.py -m precommit --html=${INSTALL_TEST_DIR}/TEST-torch_stateful_to_stateless_tests.html --self-contained-html -v --tb=short
159
163
env :
160
164
TEST_DEVICE : CPU
161
- USE_SYSTEM_CACHE : False
162
165
163
166
- name : TorchFX GPTQ Pattern Test
164
167
if : ${{ inputs.model_scope == 'precommit' }}
@@ -169,7 +172,6 @@ jobs:
169
172
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/transformation_tests/test_gptq_torchfx_transformations.py -m precommit --html=${INSTALL_TEST_DIR}/TEST-torch_gptqpattern_tests.html --self-contained-html -v --tb=short
170
173
env :
171
174
TEST_DEVICE : CPU
172
- USE_SYSTEM_CACHE : False
173
175
174
176
- name : Reformat unsupported ops file
175
177
if : ${{ inputs.model_scope != 'precommit' && !cancelled()}}
0 commit comments