Skip to content

Commit

Permalink
Add MPS Fallback to support Torchtune Multimodal MPS (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Khuu authored Oct 1, 2024
1 parent 8c7e688 commit 8a580dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions torchchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
import subprocess
import sys

# MPS ops missing with Multimodal torchtune
# https://github.com/pytorch/torchtune/issues/1723
import os
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"

from torchchat.cli.cli import (
add_arguments_for_verb,
arg_init,
Expand Down

0 comments on commit 8a580dd

Please sign in to comment.