Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 0ae743a

Browse files
committed
import set backend
1 parent 69b17e3 commit 0ae743a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchchat/cli/builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ def do_nothing(max_batch_size, max_seq_length):
638638
raise RuntimeError(f"Failed to load torchchat snapshot {builder_args.snapshot_path}")
639639
# _active_backend() does not allow DSO & AOTI to be true.
640640
# Choose either.
641+
from torchchat.utils.build_utils import set_backend
641642
set_backend (dso=True, pte=False, aoti_package=False)
642643
if (model.config != config):
643644
raise RuntimeError("loaded model architecture mismatch")

0 commit comments

Comments
 (0)