mirror of
https://github.com/oobabooga/textgen.git
synced 2026-07-23 11:20:54 -05:00
Fix AMD installer failing to resolve ROCm triton dependency
Closes #7436
This commit is contained in:
@@ -117,7 +117,7 @@ def get_pytorch_install_command(gpu_choice):
|
||||
return base_cmd + "--index-url https://download.pytorch.org/whl/cu128" + pypi_fallback
|
||||
elif gpu_choice == "AMD":
|
||||
py_tag = f"cp{PYTHON_VERSION.replace('.', '')}"
|
||||
return f"python -m pip install https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/torch-{TORCH_VERSION}%2Brocm7.2.0.lw.git7e1940d4-{py_tag}-{py_tag}-linux_x86_64.whl"
|
||||
return f"python -m pip install https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/torch-{TORCH_VERSION}%2Brocm7.2.0.lw.git7e1940d4-{py_tag}-{py_tag}-linux_x86_64.whl --find-links https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/"
|
||||
elif gpu_choice in ["APPLE", "NONE"]:
|
||||
return base_cmd + "--index-url https://download.pytorch.org/whl/cpu" + pypi_fallback
|
||||
elif gpu_choice == "INTEL":
|
||||
@@ -135,7 +135,7 @@ def get_pytorch_update_command(gpu_choice):
|
||||
return f"{base_cmd}--index-url https://download.pytorch.org/whl/cu128" + pypi_fallback
|
||||
elif gpu_choice == "AMD":
|
||||
py_tag = f"cp{PYTHON_VERSION.replace('.', '')}"
|
||||
return f"python -m pip install --upgrade https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/torch-{TORCH_VERSION}%2Brocm7.2.0.lw.git7e1940d4-{py_tag}-{py_tag}-linux_x86_64.whl"
|
||||
return f"python -m pip install --upgrade https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/torch-{TORCH_VERSION}%2Brocm7.2.0.lw.git7e1940d4-{py_tag}-{py_tag}-linux_x86_64.whl --find-links https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/"
|
||||
elif gpu_choice in ["APPLE", "NONE"]:
|
||||
return f"{base_cmd}--index-url https://download.pytorch.org/whl/cpu" + pypi_fallback
|
||||
elif gpu_choice == "INTEL":
|
||||
|
||||
Reference in New Issue
Block a user