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

Add max_total_tokens #65

Closed
OlivierDehaene opened this issue Feb 14, 2023 · 0 comments · Fixed by #68
Closed

Add max_total_tokens #65

OlivierDehaene opened this issue Feb 14, 2023 · 0 comments · Fixed by #68

Comments

@OlivierDehaene
Copy link
Member

Right now it is possible to have input_length + max_new_tokens go over the model token limit.
Add a max_total_tokens validation step or add a new finish reason.

@lewtun

sywangyi pushed a commit to sywangyi/text-generation-inference that referenced this issue Mar 12, 2024
Co-authored-by: Michal Szutenberg <37601244+szutenberg@users.noreply.github.com>
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 a pull request may close this issue.

1 participant