Skip to content

Commit

Permalink
Add missing line fn calling
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored May 22, 2024
1 parent 629631c commit 9b0eb8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ completion_request = ChatCompletionRequest(
],
)

tokens = tokenizer.encode_chat_completion(completion_request).tokens

out_tokens, _ = generate([tokens], model, max_tokens=64, temperature=0.0, eos_id=tokenizer.instruct_tokenizer.tokenizer.eos_id)
result = tokenizer.instruct_tokenizer.tokenizer.decode(out_tokens[0])

Expand Down

0 comments on commit 9b0eb8a

Please sign in to comment.