Skip to content

Multiple answer generation #1355

Answered by SlyEcho
olinorwell asked this question in Q&A
Discussion options

You must be logged in to vote

I think resetting n_past to where your prompt ends should be enough. Maybe also remove the last generated tokens from last_n_tokens, or not: it may help to generate different outputs.

Currently it's not possible to generate multiple outputs at the same time because the state is shared but you could do it in a loop.

EDIT: But I think it should be just possible to use ./main and a session file right now to achieve the same result without any code changes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@olinorwell
Comment options

Answer selected by olinorwell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants