We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d97f467 + ba077e2 commit ebfdd7bCopy full SHA for ebfdd7b
webui.sh
@@ -165,5 +165,15 @@ else
165
printf "\n%s\n" "${delimiter}"
166
printf "Launching launch.py..."
167
168
- exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@"
+ gpu_info=$(lspci | grep VGA)
169
+ if echo "$gpu_info" | grep -q "AMD"
170
+ then
171
+ if [[ -z "${TORCH_COMMAND}" ]]
172
173
+ export TORCH_COMMAND="pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.2"
174
+ fi
175
+ HSA_OVERRIDE_GFX_VERSION=10.3.0 exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@"
176
+ else
177
+ exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@"
178
179
fi
0 commit comments