Skip to content

Conversation

@kylesayrs
Copy link
Contributor

@kylesayrs kylesayrs commented Mar 14, 2025

Purpose

  • Fix whisper offline inference example
  • Under specific conditions (short max_model_len and low max_num_seqs), the sequence length generated for the profiling run can be larger than the max model length

Changes

  • Add max_model_len cap to enc_dec and standard model runners

Testing

This example used to fail during profiling

  • python3 examples/offline_inference/audio_language.py --model whisper

@github-actions
Copy link

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 ready label to the PR or enable auto-merge.

🚀

@mergify mergify bot added the documentation Improvements or additions to documentation label Mar 14, 2025
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)
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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]>
@DarkLight1337
Copy link
Member

LGTM now, thanks for your patience!

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) March 16, 2025 03:51
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 16, 2025
@vllm-bot vllm-bot merged commit d30aa7e into vllm-project:main Mar 16, 2025
44 of 47 checks passed
@kylesayrs kylesayrs deleted the kylesayrs/cap-seq-len-profile-run branch March 16, 2025 15:55
@kylesayrs kylesayrs restored the kylesayrs/cap-seq-len-profile-run branch March 16, 2025 16:04
DarkLight1337 added a commit to DarkLight1337/vllm that referenced this pull request Mar 16, 2025
vllm-bot pushed a commit that referenced this pull request Mar 16, 2025
DefTruth pushed a commit to DefTruth/vllm that referenced this pull request Mar 17, 2025
DefTruth pushed a commit to DefTruth/vllm that referenced this pull request Mar 17, 2025
lulmer pushed a commit to lulmer/vllm that referenced this pull request Apr 7, 2025
lulmer pushed a commit to lulmer/vllm that referenced this pull request Apr 7, 2025
shreyankg pushed a commit to shreyankg/vllm that referenced this pull request May 3, 2025
shreyankg pushed a commit to shreyankg/vllm that referenced this pull request May 3, 2025
RichardoMrMu pushed a commit to RichardoMrMu/vllm that referenced this pull request May 12, 2025
RichardoMrMu pushed a commit to RichardoMrMu/vllm that referenced this pull request May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants