Skip to content

Commit

Permalink
fix black check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimi81 committed Jan 16, 2024
1 parent 9ff30d0 commit 9eb2c35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demo/web_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ def user(query, history):
device_map = "auto"

model = AutoModelForCausalLM.from_pretrained(
args.checkpoint_path, device_map=device_map, torch_dtype="auto", trust_remote_code=True
args.checkpoint_path,
device_map=device_map,
torch_dtype="auto",
trust_remote_code=True,
).eval()

main(args)

0 comments on commit 9eb2c35

Please sign in to comment.