diff --git a/installer/templates/invoke.sh.in b/installer/templates/invoke.sh.in index 0d3e34a42f..9c45eba5b0 100644 --- a/installer/templates/invoke.sh.in +++ b/installer/templates/invoke.sh.in @@ -23,6 +23,8 @@ cd "$scriptdir" . .venv/bin/activate export INVOKEAI_ROOT="$scriptdir" + +# Stash the CLI args - when we prompt for user input, `$@` is overwritten PARAMS=$@ # This setting allows torch to fall back to CPU for operations that are not supported by MPS on macOS. @@ -30,9 +32,6 @@ if [ "$(uname -s)" == "Darwin" ]; then export PYTORCH_ENABLE_MPS_FALLBACK=1 fi -# Avoid glibc memory fragmentation. See invokeai/backend/model_management/README.md for details. -export MALLOC_MMAP_THRESHOLD_=1048576 - # Primary function for the case statement to determine user input do_choice() { case $1 in