Skip to content

Commit

Permalink
Only show MPS Compile Warning if compile is attempted (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Khuu authored Oct 1, 2024
1 parent 8a580dd commit 24d00ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchchat/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def arg_init(args):
)

if "mps" in args.device:
if hasattr(args, "compile") and hasattr(args, "compile_prefill"):
if getattr(args, "compile", False) or getattr(args, "compile_prefill", False):
print(
"Warning: compilation is not available with device MPS, ignoring option to engage compilation"
)
Expand Down

0 comments on commit 24d00ea

Please sign in to comment.