-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Allow single LLM step to generate multiple tokens #2120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| results.append((next_token_ids, parent_ids)) | ||
| sample_idx += num_parent_seqs | ||
| assert sample_idx == logprobs.size(0) | ||
| # assert sample_idx == logprobs.size(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment?
|
This pull request has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this pull request should remain open. Thank you! |
|
This pull request has merge conflicts that must be resolved before it can be |
* initial commit Signed-off-by: Samuel Shen <[email protected]> * also add docker builder prun Signed-off-by: Samuel Shen <[email protected]> --------- Signed-off-by: Samuel Shen <[email protected]> Co-authored-by: Samuel Shen <[email protected]>
This PR is a subset of #1797, it provides the API to generate multiple tokens in a single LLM step.