@@ -51,19 +51,11 @@ jobs:
5151 path : ~/.cache/huggingface/hub
5252 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
5353 - name : Install dependencies (Linux/MacOS)
54- if : runner.os != 'Windows'
5554 run : |
5655 python -m pip install --upgrade pip
5756 python -m pip install uv
5857 python -m uv pip install -e .[all] --verbose
5958 shell : bash
60- - name : Install dependencies (Windows)
61- if : runner.os == 'Windows'
62- run : |
63- python -m pip install --upgrade pip
64- python -m pip install uv
65- python -m uv pip install -e .[all] --verbose
66- shell : cmd
6759 - name : Test with pytest
6860 run : |
6961 python -m pytest
@@ -90,22 +82,13 @@ jobs:
9082 with :
9183 path : ~/.cache/huggingface/hub
9284 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
93-
94- - name : Install dependencies (Linux/MacOS)
95- if : runner.os != 'Windows'
96- run : |
97- python -m pip install --upgrade pip
98- python -m pip install uv
99- python -m uv pip install -e .[all] --verbose
100- shell : bash
10185
10286 - name : Install dependencies (Windows)
103- if : runner.os == 'Windows'
10487 run : |
10588 python -m pip install --upgrade pip
10689 python -m pip install uv
10790 python -m uv pip install -e .[all] --verbose
108- shell : cmd
91+ shell : cmd
10992
11093 - name : Test with pytest
11194 run : |
@@ -129,28 +112,26 @@ jobs:
129112 architecture : " arm64"
130113 cache : ' pip'
131114
115+ - name : System Info
116+ run : |
117+ uname -a
118+ sysctl -n machdep.cpu.brand_string
119+ python3 -c "import platform; print(platform.machine(), platform.architecture())"
120+
132121 - name : Restore model cache
133122 uses : actions/cache@v4
134123 with :
135124 path : ~/.cache/huggingface/hub
136125 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
137126
138127 - name : Install dependencies (Linux/MacOS)
139- if : runner.os != 'Windows'
140128 run : |
141129 python -m pip install --upgrade pip
142130 python -m pip install uv
143131 python -m uv pip install -e .[all] --verbose
132+ CMAKE_ARGS="-DLLAMA_METAL=off" python -m uv pip install .[all] --verbose
144133 shell : bash
145134
146- - name : Install dependencies (Windows)
147- if : runner.os == 'Windows'
148- run : |
149- python -m pip install --upgrade pip
150- python -m pip install uv
151- python -m uv pip install -e .[all] --verbose
152- shell : cmd
153-
154135 - name : Test with pytest
155136 run : |
156137 python -m pytest
@@ -169,25 +150,25 @@ jobs:
169150 python-version : " 3.9"
170151 architecture : " arm64"
171152
153+ - name : System Info
154+ run : |
155+ uname -a
156+ sysctl -n machdep.cpu.brand_string
157+ python3 -c "import platform; print(platform.machine(), platform.architecture())"
158+
172159 - name : Restore model cache
173160 uses : actions/cache@v4
174161 with :
175162 path : ~/.cache/huggingface/hub
176163 key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
177164
178- - name : Install dependencies (Linux/MacOS)
179- if : runner.os != 'Windows'
165+ - name : Install dependencies
180166 run : |
181167 python -m pip install --upgrade pip
182168 python -m pip install uv
183169 CMAKE_ARGS="-DLLAMA_METAL=on" python -m uv pip install .[all] --verbose
184170 shell : bash
185171
186- - name : Install dependencies (Windows)
187- if : runner.os == 'Windows'
188- run : |
189- python -m pip install --upgrade pip
190- CMAKE_ARGS="-DGGML_METAL=on" python -m pip install .[all] --verbose
191172 - name : Test with pytest
192173 run : |
193174 python -m pytest
0 commit comments