Skip to content

Commit

Permalink
Update test_inference.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BBuf authored Jan 31, 2023
1 parent b24058b commit 2d485f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def main():
if args.quantize:
model = quantize(model, weight_bit_width=8, backend="torch")
model.cuda()
torch.cuda.synchronize()

with open(args.prompt_file, "r") as f:
prompt = f.readlines()
Expand Down

0 comments on commit 2d485f0

Please sign in to comment.