Commit 7495806
ci: add HF_HOME cache + CUDA_VISIBLE_DEVICES at workflow level
Following the transformers quantization-CI pattern:
- HF_HOME=/mnt/cache: if the runner has persistent storage at this path,
model downloads are cached across runs. If not, HF hub falls back to
the default ~/.cache/huggingface.
- CUDA_VISIBLE_DEVICES=0,1 at workflow level: on single-GPU runners,
device 1 simply doesn't exist so only GPU 0 is used. On multi-GPU
runners (g6.12xlarge), both are visible. This eliminates per-step env
overrides.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 185a127 commit 7495806
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
| |||
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
250 | | - | |
251 | 249 | | |
252 | 250 | | |
253 | 251 | | |
| |||
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
308 | | - | |
309 | 306 | | |
310 | 307 | | |
311 | 308 | | |
| |||
0 commit comments