aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeinsezii <beinsezii@gmail.com>2023-06-14 20:07:22 +0000
committerBeinsezii <beinsezii@gmail.com>2023-06-14 20:07:22 +0000
commit1d7c51fb9f757b5dcdc506f8fc003e6047151567 (patch)
tree638d37453e7e15c48cd47c799c5a8b957c296585
parent59419bd64a1581caccaac04dceb66c1c069a2db1 (diff)
downloadstable-diffusion-webui-gfx803-1d7c51fb9f757b5dcdc506f8fc003e6047151567.tar.gz
stable-diffusion-webui-gfx803-1d7c51fb9f757b5dcdc506f8fc003e6047151567.tar.bz2
stable-diffusion-webui-gfx803-1d7c51fb9f757b5dcdc506f8fc003e6047151567.zip
WEBUI.SH Navi 3 Support
Navi 3 card now defaults to nightly torch to utilize rocm 5.5 for out-of-the-box support. https://download.pytorch.org/whl/nightly/ While its not yet on the main pytorch "get started" site, it still seems perfectly indexable via pip which is all we need. With this I'm able to clone a fresh repo and immediately run ./webui.sh on my 7900 XTX without any problems.
-rwxr-xr-xwebui.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/webui.sh b/webui.sh
index 5c8d977c..c889c55e 100755
--- a/webui.sh
+++ b/webui.sh
@@ -131,6 +131,10 @@ case "$gpu_info" in
;;
*"Navi 2"*) export HSA_OVERRIDE_GFX_VERSION=10.3.0
;;
+ *"Navi 3"*) [[ -z "${TORCH_COMMAND}" ]] && \
+ export TORCH_COMMAND="pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/rocm5.5"
+ # Navi 3 needs at least 5.5 which is only on the nightly chain
+ ;;
*"Renoir"*) export HSA_OVERRIDE_GFX_VERSION=9.0.0
printf "\n%s\n" "${delimiter}"
printf "Experimental support for Renoir: make sure to have at least 4GB of VRAM and 10GB of RAM or enable cpu mode: --use-cpu all --no-half"