Skip to content

Commit

Permalink
✨ add PYTORCH_ENABLE_MPS_FALLBACK
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Jul 4, 2024
1 parent a449091 commit 2024e0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
dcls_patch()
ignore_useless_warnings()

if sys.platform == "darwin":
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"


def setup_webui_args(parser: argparse.ArgumentParser):
parser.add_argument("--server_name", type=str, help="server name")
Expand Down

0 comments on commit 2024e0b

Please sign in to comment.