-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Gabriel Marinho <[email protected]>
👋 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 🚀 |
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... |
|
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?
Signed-off-by: Gabriel Marinho <[email protected]>
Signed-off-by: Gabriel Marinho <[email protected]>
@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? |
…ams() Signed-off-by: Gabriel Marinho <[email protected]>
Signed-off-by: Gabriel Marinho <[email protected]>
Signed-off-by: Gabriel Marinho <[email protected]>
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
Signed-off-by: Gabriel Marinho <[email protected]>
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_tokens
it can be altered simply by overriding themaybe_update_max_tokens
method in the classPlataform
. When it is not needed it returns the current default. Edit: typo in commit message:class Plataform
is meant to beclass Platform
.