Skip to content
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

Fix output shape when resuming generation #211

Merged
merged 2 commits into from
Jan 13, 2023
Merged

Conversation

borzunov
Copy link
Collaborator

@borzunov borzunov commented Jan 13, 2023

Before this PR, model.generate() returned one excess token when resuming generation with an existing (the last token of the previous session, session.last_token_id). This is an unexpected behavior not convenient for the downstream apps, so this PR changes it until it's too late.

@borzunov borzunov changed the title Fix outputs when resuming generation Fix output format when resuming generation Jan 13, 2023
@borzunov borzunov changed the title Fix output format when resuming generation Fix output shape when resuming generation Jan 13, 2023
@borzunov borzunov merged commit 6ba63c6 into main Jan 13, 2023
@borzunov borzunov deleted the fix-resuming-generation branch January 13, 2023 12:27
borzunov added a commit to petals-infra/chat.petals.dev that referenced this pull request Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant