forked from pytorch/ao
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Distributed] Implement universal batch_decode & decode_in_flight for…
… llama2 & llama3, with deterministic or multinomial (topk) decoding (handle both sentencepiece (llama2) and tiktoken (llama3)) (pytorch#1234) * working multi-prompt same lengths * working multi-prompt multiple lengths * tighten up results decoding and display * improve batch_decode_next_tokens * update _decode_in_flight * move prompt outside of main, auto-update batch size based on prompt * faster batch_decode_next_tokens, add topk/temperature option * ruff format and check * simplify decode step, remove old comments * add explanatory comment on topk min check
- Loading branch information
Showing
1 changed file
with
81 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters