Skip to content

Commit bd6b512

Browse files
authored
Merge branch 'main' into fix-non-mm-chat
2 parents e840b4e + 24d00ea commit bd6b512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchchat/cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def arg_init(args):
494494
)
495495

496496
if "mps" in args.device:
497-
if hasattr(args, "compile") and hasattr(args, "compile_prefill"):
497+
if getattr(args, "compile", False) or getattr(args, "compile_prefill", False):
498498
print(
499499
"Warning: compilation is not available with device MPS, ignoring option to engage compilation"
500500
)

0 commit comments

Comments
 (0)