mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-24 22:34:41 +01:00
Fix AMD installer failing to resolve ROCm triton dependency
Closes #7436
This commit is contained in:
parent
ca36bd6eb6
commit
eeb0e5700f
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue