Skip to content

Commit d2e4995

Browse files
Jack-Khuuvmpuri
authored and
vmpuri
committed
Bug Fix: Check for explicit cli device (fast) (#1374)
1 parent 008fea0 commit d2e4995

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
@@ -533,7 +533,7 @@ def arg_init(args):
533533
# Localized import to minimize expensive imports
534534
from torchchat.utils.build_utils import get_device_str
535535

536-
if args.device is None:
536+
if args.device is None or args.device == "fast":
537537
args.device = get_device_str(
538538
args.quantize.get("executor", {}).get("accelerator", default_device)
539539
)

0 commit comments

Comments
 (0)