-
Notifications
You must be signed in to change notification settings - Fork 487
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
Support min_tokens, min_p parameters for api_server #2681
Conversation
The weird thing is, min_new_tokens did not work. @irexyc |
|
But if I set |
It only ignore eos token when length of the generated token is less than min_new_tokens. Its behavior should be consistent with transformers, except that transformers support multiple eos tokens But If encountered stop words token, it will still stop. |
Should we update |
It is a lagecy api from OpenAI. I tend to not update it. |
* Support min_tokens for api_server * fix * use min_new_tokens * add min_p
* Support min_tokens for api_server * fix * use min_new_tokens * add min_p
No description provided.