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 missing ignore_eos in v1/chat/completions #1642

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

learninmou
Copy link
Contributor

Fix the missing ignore_eos parameter in the /v1/chat/completions API.

In some certain performance benchmark scenarios, we need the model to generate a fixed number of tokens. To prevent the process from ending prematurely due to encountering the eos/stop token, the ignore_eos=True parameter needs to be passed.

@merrymercy merrymercy merged commit 1d9deea into sgl-project:main Oct 12, 2024
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.

2 participants