Skip to content

Commit ccde9f7

Browse files
feat(installer): use torch extra index on all cuda install pathways
1 parent 2b46724 commit ccde9f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

installer/lib/installer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,16 +410,18 @@ def get_torch_source() -> Tuple[str | None, str | None]:
410410
url = "https://download.pytorch.org/whl/rocm5.6"
411411
elif device == GpuType.CPU:
412412
url = "https://download.pytorch.org/whl/cpu"
413-
# CUDA uses the default PyPi index
414413
elif device == GpuType.CUDA:
414+
url = "https://download.pytorch.org/whl/cu124"
415415
optional_modules = "[onnx-cuda]"
416416
elif device == GpuType.CUDA_WITH_XFORMERS:
417+
url = "https://download.pytorch.org/whl/cu124"
417418
optional_modules = "[xformers,onnx-cuda]"
418419
elif OS == "Windows":
419420
if device == GpuType.CUDA:
420421
url = "https://download.pytorch.org/whl/cu124"
421422
optional_modules = "[onnx-cuda]"
422423
elif device == GpuType.CUDA_WITH_XFORMERS:
424+
url = "https://download.pytorch.org/whl/cu124"
423425
optional_modules = "[xformers,onnx-cuda]"
424426
elif device.value == "cpu":
425427
# CPU uses the default PyPi index, no optional modules

0 commit comments

Comments
 (0)