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

API: fix maxlen; vllm: prefix_token_id bug #2262

Merged
merged 4 commits into from
Aug 30, 2024
Merged

API: fix maxlen; vllm: prefix_token_id bug #2262

merged 4 commits into from
Aug 30, 2024

Conversation

baberabb
Copy link
Contributor

@baberabb baberabb commented Aug 29, 2024

Changed the max_length for API models to be max_length - 1 as there is always one generated token.

Additionally for loglikelihood_rolling max_seq_len = max_length - 1 as one token is taken up by the context.

vllm: the prefix_token_id was also not set properly

closes #2253

@lintangsutawika lintangsutawika merged commit b31f92e into main Aug 30, 2024
9 checks passed
@lintangsutawika lintangsutawika deleted the maxlen branch August 30, 2024 01:25
baberabb added a commit that referenced this pull request Aug 30, 2024
* max_length - 1 (generation always >= 1)

* vllm: fix rolling prefix_token

* nit: add comment

* fixup! max_length should be handled for logliklihoods

* Revert "fixup! max_length should be handled for logliklihoods"

This reverts commit 432d1a3.
jmercat pushed a commit to TRI-ML/lm-evaluation-harness that referenced this pull request Sep 25, 2024
* max_length - 1 (generation always >= 1)

* vllm: fix rolling prefix_token

* nit: add comment

* fixup! max_length should be handled for logliklihoods
jmercat pushed a commit to TRI-ML/lm-evaluation-harness that referenced this pull request Sep 25, 2024
* max_length - 1 (generation always >= 1)

* vllm: fix rolling prefix_token

* nit: add comment

* fixup! max_length should be handled for logliklihoods

* Revert "fixup! max_length should be handled for logliklihoods"

This reverts commit 432d1a3.
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.

local-completions error with dataset longer than max_length
2 participants