Commit 4259926
committed
refactor(ci): selectively disable pip cache for large ML packages only
Instead of disabling all pip caching, only disable cache for the large
packages (torch, transformers) that cause cache service failures.
Changes:
- Split Python dependency installation into two steps
- Large packages (torch, transformers): Install with --no-cache-dir
- Small packages (optimum, onnxruntime): Install normally (uses pip cache)
Benefits:
- Avoids cache service 400 errors from large packages
- Smaller packages still benefit from pip's built-in cache
- More targeted fix than disabling all caching
Package sizes:
- torch: ~700MB-2GB (installed without cache)
- transformers: ~500MB-1GB (installed without cache)
- optimum[onnx]: ~100-200MB (cached)
- onnxruntime: ~50-100MB (cached)1 parent 3d0ffcc commit 4259926
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 156 | | |
162 | | - | |
| 157 | + | |
163 | 158 | | |
164 | | - | |
165 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
0 commit comments