docs(installer): better comments for PYTORCH_ENABLE_MPS_FALLBACK

This commit is contained in:
psychedelicious 2024-03-25 17:18:37 +11:00
parent 354d59df62
commit 148e6d9b97

View File

@ -25,7 +25,7 @@ cd "$scriptdir"
export INVOKEAI_ROOT="$scriptdir" export INVOKEAI_ROOT="$scriptdir"
PARAMS=$@ PARAMS=$@
# Set required env var for torch on mac MPS # This setting allows torch to fall back to CPU for operations that are not supported by MPS on macOS.
if [ "$(uname -s)" == "Darwin" ]; then if [ "$(uname -s)" == "Darwin" ]; then
export PYTORCH_ENABLE_MPS_FALLBACK=1 export PYTORCH_ENABLE_MPS_FALLBACK=1
fi fi