mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-09 23:57:42 +02:00
Add support for MPS when running on Apple silicon
Changes: * autodetect if MPS is available and the pytorch version has MPS support. * change logic from "is the device CPU?" to "is the device not CUDA?". * set PYTORCH_ENABLE_MPS_FALLBACK=1 Known issues: * Some samplers (eg DDIM) will fail on MPS unless forced to CPU-only mode
This commit is contained in:
@ -285,6 +285,7 @@ printf "\n\nEasy Diffusion installation complete, starting the server!\n\n"
|
||||
|
||||
SD_PATH=`pwd`
|
||||
|
||||
export PYTORCH_ENABLE_MPS_FALLBACK=1
|
||||
export PYTHONPATH="$INSTALL_ENV_DIR/lib/python3.8/site-packages"
|
||||
echo "PYTHONPATH=$PYTHONPATH"
|
||||
|
||||
|
Reference in New Issue
Block a user