Skip to content

Commit

Permalink
add eos token to generate (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvwerra authored Mar 20, 2024
1 parent 9fcf61d commit 5095e7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/scripts/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def chat_cli():
top_p=current_args.top_p,
repetition_penalty=current_args.repetition_penalty,
pad_token_id=tokenizer.pad_token_id,
eos_token_id=tokenizer.eos_token_id,
)

thread = Thread(target=model.generate, kwargs=generation_kwargs)
Expand Down

0 comments on commit 5095e7f

Please sign in to comment.