-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Different outputs with --session flag (cache prompt #1169) #1257
Comments
CC: @ejones |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
Cannot find a fix for that... |
Issue is with |
So the hotfix is to substract from last_n_tokens when saving session
|
Thanks, will comment on the PR I see you just opened |
Fixed in #1263 |
@ivanstepanovftw is cold -> warm repeatable outputs a strong requirement? From my understanding of the rng, it seems like you only get this if you have the rng state at the exact token position. When using a prefix of a restoed state, the pseudo rng is farther along so sampling will be different. I ask because I'm trying to simplify the case of saving prompt + generation. The prompt state can be recovered as a prefix but sampling will be different due to rng. Could be missing something though. |
I have tested it with greedy sampling (temp=0) |
Introduced in #1169
Current Behavior
Cache miss:
Cache hit:
The text was updated successfully, but these errors were encountered: