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

Automatically set max_num_batched_tokens #1198

Merged
merged 4 commits into from
Sep 27, 2023
Merged

Automatically set max_num_batched_tokens #1198

merged 4 commits into from
Sep 27, 2023

Conversation

WoosukKwon
Copy link
Collaborator

This PR removes the default value (2560) of max_num_batched_tokens and sets it based on the model's maximum length.

@WoosukKwon
Copy link
Collaborator Author

@zhuohan123 Sorry for the commits after requesting your review. Now the PR is ready for review!

@WoosukKwon WoosukKwon mentioned this pull request Sep 27, 2023
5 tasks
Copy link
Member

@zhuohan123 zhuohan123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the fix!

@WoosukKwon WoosukKwon merged commit a19bc5c into main Sep 27, 2023
2 checks passed
@WoosukKwon WoosukKwon deleted the auto-max-batch branch September 27, 2023 23:34
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
sjchoi1 pushed a commit to casys-kaist-internal/vllm that referenced this pull request May 7, 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.

Automatically configure max_num_batched_tokens based on model length
2 participants