This repository was archived by the owner on Mar 21, 2026. It is now read-only.
Repository navigation
Commit dfb3fbe
authored
fix(num_devices): fix num_shard/num device auto compute when NVIDIA_VISIBLE_DEVICES == "all" or "void" (#3346)
* fix(num_devices): fix num_shard/num devices auto compute when NVIDIA_VISIBLE_DEVICES == "all"
the computed num_shards was always 1 in this case, no matter what
* fix(num_devices): make TGI shard auto compute compliant with nvidia-container-toolkit in cdi mode1 parent 3498847 commit dfb3fbe
1 file changed
Lines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | | - | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1268 | 1273 | | |
1269 | 1274 | | |
1270 | 1275 | | |
| |||
1274 | 1279 | | |
1275 | 1280 | | |
1276 | 1281 | | |
1277 | | - | |
1278 | | - | |
| 1282 | + | |
1279 | 1283 | | |
1280 | 1284 | | |
1281 | 1285 | | |
| |||
0 commit comments