update to cu128
parent
9c451919b1
commit
a82077d54a
|
|
@ -38,9 +38,9 @@ Write-Output "
|
|||
Write-Output "受限于国内加速镜像,torch 安装无法使用镜像源,安装较为缓慢。"
|
||||
$install_torch = Read-Host "是否需要安装 Torch+xformers? [y/n] (默认为 y)"
|
||||
if ($install_torch -eq "y" -or $install_torch -eq "Y" -or $install_torch -eq "") {
|
||||
python -m pip install torch==2.4.1+cu124 torchvision==0.19.1+cu124 --extra-index-url https://download.pytorch.org/whl/cu124
|
||||
python -m pip install torch==2.7.0+cu128 torchvision==0.22.0+cu128 --index-url https://download.pytorch.org/whl/cu128
|
||||
Check "torch 安装失败,请删除 venv 文件夹后重新运行。"
|
||||
python -m pip install -U -I --no-deps xformers===0.0.28.post1 --extra-index-url https://download.pytorch.org/whl/cu124
|
||||
python -m pip install -U -I --no-deps xformers===0.0.30 --extra-index-url https://download.pytorch.org/whl/cu128
|
||||
Check "xformers 安装失败。"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ echo "CUDA Version: $cuda_version"
|
|||
|
||||
|
||||
if (( cuda_major_version >= 12 )); then
|
||||
echo "install torch 2.4.1+cu124"
|
||||
pip install torch==2.4.1+cu124 torchvision==0.19.1+cu124 --extra-index-url https://download.pytorch.org/whl/cu124
|
||||
pip install --no-deps xformers==0.0.28.post1 --extra-index-url https://download.pytorch.org/whl/cu124
|
||||
echo "install torch 2.7.0+cu128"
|
||||
pip install torch==2.7.0+cu128 torchvision==0.22.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
|
||||
pip install --no-deps xformers==0.0.30 --extra-index-url https://download.pytorch.org/whl/cu128
|
||||
elif (( cuda_major_version == 11 && cuda_minor_version >= 8 )); then
|
||||
echo "install torch 2.4.0+cu118"
|
||||
pip install torch==2.4.0+cu118 torchvision==0.19.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ if (!(Test-Path -Path "venv")) {
|
|||
|
||||
Write-Output "Installing deps..."
|
||||
|
||||
pip install torch==2.4.1 torchvision==0.19.1 --extra-index-url https://download.pytorch.org/whl/cu124
|
||||
pip install -U -I --no-deps xformers==0.0.28.post1 --extra-index-url https://download.pytorch.org/whl/cu124
|
||||
pip install torch==2.7.0+cu128 torchvision==0.22.0+cu128 --extra-index-url https://download.pytorch.org/whl/cu128
|
||||
pip install -U -I --no-deps xformers==0.0.30 --extra-index-url https://download.pytorch.org/whl/cu128
|
||||
pip install --upgrade -r requirements.txt
|
||||
|
||||
Write-Output "Install completed"
|
||||
|
|
|
|||
Loading…
Reference in New Issue