@@ -51,19 +51,11 @@ jobs:
51
51
path : ~/.cache/huggingface/hub
52
52
key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
53
53
- name : Install dependencies (Linux/MacOS)
54
- if : runner.os != 'Windows'
55
54
run : |
56
55
python -m pip install --upgrade pip
57
56
python -m pip install uv
58
57
python -m uv pip install -e .[all] --verbose
59
58
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
67
59
- name : Test with pytest
68
60
run : |
69
61
python -m pytest
@@ -90,22 +82,13 @@ jobs:
90
82
with :
91
83
path : ~/.cache/huggingface/hub
92
84
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
101
85
102
86
- name : Install dependencies (Windows)
103
- if : runner.os == 'Windows'
104
87
run : |
105
88
python -m pip install --upgrade pip
106
89
python -m pip install uv
107
90
python -m uv pip install -e .[all] --verbose
108
- shell : cmd
91
+ shell : cmd
109
92
110
93
- name : Test with pytest
111
94
run : |
@@ -129,28 +112,26 @@ jobs:
129
112
architecture : " arm64"
130
113
cache : ' pip'
131
114
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
+
132
121
- name : Restore model cache
133
122
uses : actions/cache@v4
134
123
with :
135
124
path : ~/.cache/huggingface/hub
136
125
key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
137
126
138
127
- name : Install dependencies (Linux/MacOS)
139
- if : runner.os != 'Windows'
140
128
run : |
141
129
python -m pip install --upgrade pip
142
130
python -m pip install uv
143
131
python -m uv pip install -e .[all] --verbose
132
+ CMAKE_ARGS="-DLLAMA_METAL=off" python -m uv pip install .[all] --verbose
144
133
shell : bash
145
134
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
-
154
135
- name : Test with pytest
155
136
run : |
156
137
python -m pytest
@@ -169,25 +150,25 @@ jobs:
169
150
python-version : " 3.9"
170
151
architecture : " arm64"
171
152
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
+
172
159
- name : Restore model cache
173
160
uses : actions/cache@v4
174
161
with :
175
162
path : ~/.cache/huggingface/hub
176
163
key : ${{ runner.os }}-model-${{ env.REPO_ID }}-${{ env.MODEL_FILE }}
177
164
178
- - name : Install dependencies (Linux/MacOS)
179
- if : runner.os != 'Windows'
165
+ - name : Install dependencies
180
166
run : |
181
167
python -m pip install --upgrade pip
182
168
python -m pip install uv
183
169
CMAKE_ARGS="-DLLAMA_METAL=on" python -m uv pip install .[all] --verbose
184
170
shell : bash
185
171
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
191
172
- name : Test with pytest
192
173
run : |
193
174
python -m pytest
0 commit comments