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

[Text Generation][Fix] Assert that tokens have the same shape on output #1143

Merged
merged 15 commits into from
Jul 26, 2023

Conversation

dbogunowicz
Copy link
Contributor

@dbogunowicz dbogunowicz commented Jul 24, 2023

When deterministic=False, it is possible that generated sequences from different batches end up having different token lengths. They need to be padded to the length of the longest returned sequence (similarly to how we are already treating the logits).

Note: this PR is blocked by #1128 and #1120.

@dbogunowicz dbogunowicz merged commit 3cab6a3 into main Jul 26, 2023
7 checks passed
@dbogunowicz dbogunowicz deleted the feature/damian/fix_deterministic_multibatch branch July 26, 2023 13:20
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.

3 participants