Commit 477d278
authored
Fix CUDA CI: HF writes fail on read-only /mnt/hf_cache (HF_TOKEN + writable HF_HOME) (#20782)
## Summary
Since **pytorch/pytorch#188654** (landed **2026-07-03**), the OSDC
runner fleet mounts a shared, **read-only** HuggingFace cache at
`/mnt/hf_cache` and defaults `HF_HOME` to it (to share a pre-seeded,
S3-backed model cache). executorch's CUDA jobs were never adapted, so
every HF **write** now lands on the read-only mount and fails:
```
OSError: [Errno 30] Read-only file system: '/mnt/hf_cache/...'
```
This broke the CUDA CI (`export-model-cuda-artifact`, `benchmark-cuda`,
`export-model-cuda-windows-artifact`, `test-cuda-pybind`) starting Jul
3. pytorch/pytorch updated its own workflows in the same PR (use the
read-only mount only in `TRANSFORMERS_OFFLINE` mode, otherwise download
into a writable `${RUNNER_TEMP}/hf_cache`); this PR does the equivalent
for executorch.1 parent ce7ff11 commit 477d278
3 files changed
Lines changed: 41 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
| |||
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
163 | | - | |
164 | | - | |
| 170 | + | |
165 | 171 | | |
166 | 172 | | |
167 | 173 | | |
| |||
219 | 225 | | |
220 | 226 | | |
221 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
222 | 235 | | |
223 | 236 | | |
224 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
129 | | - | |
130 | | - | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
| |||
406 | 412 | | |
407 | 413 | | |
408 | 414 | | |
409 | | - | |
410 | | - | |
| 415 | + | |
411 | 416 | | |
412 | 417 | | |
413 | 418 | | |
| |||
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
557 | 567 | | |
558 | 568 | | |
559 | 569 | | |
| |||
605 | 615 | | |
606 | 616 | | |
607 | 617 | | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
608 | 624 | | |
609 | 625 | | |
610 | 626 | | |
| |||
626 | 642 | | |
627 | 643 | | |
628 | 644 | | |
629 | | - | |
630 | | - | |
| 645 | + | |
631 | 646 | | |
632 | 647 | | |
633 | 648 | | |
| |||
0 commit comments