-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[Bugfix] Limit profiling run sequence length by max_model_len #14785
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
[Bugfix] Limit profiling run sequence length by max_model_len #14785
Conversation
Signed-off-by: Kyle Sayers <[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 🚀 |
| for group_id in range(max_num_seqs): | ||
| seq_len = (max_num_batched_tokens // max_num_seqs + | ||
| (group_id < max_num_batched_tokens % max_num_seqs)) | ||
| seq_len = min(seq_len, self.model_config.max_model_len) |
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.
Please check other model runners as well
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.
I'm not intimately familiar with the other runners, but I've replicated the cap on xpu
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.
There's also openvino model runner
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
Signed-off-by: Kyle Sayers <[email protected]>
|
LGTM now, thanks for your patience! |
…vllm-project#14785)" This reverts commit d30aa7e. Signed-off-by: DarkLight1337 <[email protected]>
…#14785) (#14892) Signed-off-by: DarkLight1337 <[email protected]>
…roject#14785) Signed-off-by: Kyle Sayers <[email protected]> Signed-off-by: DefTruth <[email protected]>
…vllm-project#14785) (vllm-project#14892) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: DefTruth <[email protected]>
…roject#14785) Signed-off-by: Kyle Sayers <[email protected]> Signed-off-by: Louis Ulmer <[email protected]>
…vllm-project#14785) (vllm-project#14892) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Louis Ulmer <[email protected]>
…roject#14785) Signed-off-by: Kyle Sayers <[email protected]>
…vllm-project#14785) (vllm-project#14892) Signed-off-by: DarkLight1337 <[email protected]>
…roject#14785) Signed-off-by: Kyle Sayers <[email protected]> Signed-off-by: Mu Huai <[email protected]>
…vllm-project#14785) (vllm-project#14892) Signed-off-by: DarkLight1337 <[email protected]> Signed-off-by: Mu Huai <[email protected]>
Purpose
max_model_lenand lowmax_num_seqs), the sequence length generated for the profiling run can be larger than the max model lengthChanges
max_model_lencap to enc_dec and standard model runnersTesting
This example used to fail during profiling
python3 examples/offline_inference/audio_language.py --model whisper