-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[Platform] Add custom default max tokens #18557
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
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
maxdebayser
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Is this something that can be handled by Should the chat api be respecting a That said, I do like the code hook to be able to write whatever code you want too... |
|
NickLucche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Shouldn't we update serving_completion too?
|
@youkaichao any thoughts on getting this merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! Apologies for the delay.
|
Let's get the full CI running then and see if we can get a maintainer to get this merged 👍 |
|
@njhill can you hit the big green merge button for us? |
aarnphm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One formatting comment, otherwise lgtm
Head branch was pushed to by a user without write access
|
PTAL at the CI failures |
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
|
This pull request has merge conflicts that must be resolved before it can be |
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
|
@DarkLight1337 , all tests are passing now. |
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com>
Signed-off-by: Gabriel Marinho <gmarinho@ibm.com> Signed-off-by: Jinzhen Lin <linjinzhen@hotmail.com>
FIX: vllm-project/vllm-spyre#148
Currently the default max tokens for the completions API is set to
max_model_len - prompt_len. The changes in this PR make so that when a platform needs to use a different value fordefault_max_tokensit can be altered simply by overriding themaybe_update_max_tokensmethod in the classPlataform. When it is not needed it returns the current default. Edit: typo in commit message:class Plataformis meant to beclass Platform.