use torch-cu117 from download.torch.org rather than pypi

This commit is contained in:
Lincoln Stein 2023-02-03 10:57:15 -05:00
parent 7603c8982c
commit a32f6e9ea7

View File

@ -436,6 +436,7 @@ def get_torch_source() -> (Union[str, None],str):
url = "https://download.pytorch.org/whl/cpu"
if device == 'cuda':
url = 'https://download.pytorch.org/whl/cu117'
optional_modules = '[xformers]'
# in all other cases, Torch wheels should be coming from PyPi as of Torch 1.13