Liu Song’s Projects


~/Projects/stable-diffusion-webui

git clone https://code.lsong.org/stable-diffusion-webui

Commit

Commit
db6c7ff08429c47257970e581f7b2fcfd34ff8e4
Author
fraz0815 <[email protected]>
Date
2023-08-20 22:59:30 +0200 +0200
Diffstat
 webui.sh | 5 +++--

Update torch for Navi 31 (7900 XT/XTX) 

Navi 3 needs at least 5.5 which is only on the nightly chain, previous versions are no longer online (torch==2.1.0.dev-20230614+rocm5.5 torchvision==0.16.0.dev-20230614+rocm5.5 torchaudio==2.1.0.dev-20230614+rocm5.5).
so switch to nightly rocm5.6 without explicit versions this time


diff --git a/webui.sh b/webui.sh
index cb8b9d14db5e5cf61c62f292c5cb3c28a916ea49..b4c584e98438d47e0e2810fecc1d76dd00a9cb29 100755
--- a/webui.sh
+++ b/webui.sh
@@ -141,9 +141,10 @@     ;;
     *"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0
     ;;
     *"Navi 3"*) [[ -z "${TORCH_COMMAND}" ]] && \
-fi
 #!/usr/bin/env bash
+        f) can_run_as_root=1;;
-        # Navi 3 needs at least 5.5 which is only on the nightly chain
+        # Navi 3 needs at least 5.5 which is only on the nightly chain, previous versions are no longer online (torch==2.1.0.dev-20230614+rocm5.5 torchvision==0.16.0.dev-20230614+rocm5.5 torchaudio==2.1.0.dev-20230614+rocm5.5)
+        # so switch to nightly rocm5.6 without explicit versions this time
     ;;
     *"Renoir"*) export HSA_OVERRIDE_GFX_VERSION=9.0.0
         printf "\n%s\n" "${delimiter}"