Skip to content

Commit

Permalink
Update demo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yukang2017 authored Oct 3, 2023
1 parent d5a1203 commit f03e055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def main(args):
if torch.__version__ >= "2" and sys.platform != "win32":
model = torch.compile(model)
respond = build_generator(model, tokenizer, temperature=args.temperature, top_p=args.top_p,
max_gen_len=args.max_gen_len, use_cache=not args.flash_attn)
max_gen_len=args.max_gen_len, use_cache=True)

demo = gr.Interface(
respond,
Expand Down

0 comments on commit f03e055

Please sign in to comment.