Skip to content

Conversation

@njhill
Copy link
Member

@njhill njhill commented Mar 15, 2025

Addresses #14239

Alternative to #14240 avoiding tensor concatenation by pre-allocating CPU tensors and copying GPU chunks into them.

@afeldman-nm

@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 v1 label Mar 15, 2025
Signed-off-by: Nick Hill <nhill@redhat.com>
@njhill njhill changed the title [V1] Aggregate prompt logprobs in model runner [V1] Aggregate chunked prompt logprobs in model runner Mar 16, 2025
@njhill njhill force-pushed the agg-prompt-logprob-chunks branch from b69760b to 0d450f8 Compare March 16, 2025 00:12
@njhill njhill added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 16, 2025
njhill added 3 commits March 16, 2025 10:57
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Nick Hill <nhill@redhat.com>
Copy link
Contributor

@afeldman-nm afeldman-nm left a comment

Choose a reason for hiding this comment

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

Hi @njhill , thanks for this nice concise fix. Made a few suggestions. Remarkably it is does not seem that this PR requires unit test changes, since partial prefill was never unit-tested (woops) ;)

# partially completed prompt.
# This will be reverted in a follow up PR and we should re-enable
# this assertion / invariant.
if is_prefilling:
Copy link
Contributor

Choose a reason for hiding this comment

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

Might want @markmc 's review on stats, although this all looks good to me.

@mergify
Copy link

mergify bot commented Mar 21, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @njhill.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Mar 21, 2025
@mergify mergify bot removed the needs-rebase label Mar 21, 2025
@robertgshaw2-redhat
Copy link
Collaborator

There are two comments:

  • There is a memory leak if requests are aborted during partial prefills with prompt logprobs
  • I think we can simplify some special casing (this is nit)

njhill added 2 commits March 22, 2025 08:49
Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Nick Hill <nhill@redhat.com>
@robertgshaw2-redhat robertgshaw2-redhat merged commit 3aee657 into vllm-project:main Mar 24, 2025
32 of 33 checks passed
@robertgshaw2-redhat
Copy link
Collaborator

LGTM thanks!

@njhill njhill deleted the agg-prompt-logprob-chunks branch March 24, 2025 16:41
erictang000 pushed a commit to erictang000/vllm that referenced this pull request Mar 25, 2025
wrmedford pushed a commit to wrmedford/vllm that referenced this pull request Mar 26, 2025
…14875)

Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Wes Medford <wryanmedford@gmail.com>
lulmer pushed a commit to lulmer/vllm that referenced this pull request Apr 7, 2025
…14875)

Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Louis Ulmer <ulmerlouis@gmail.com>
lk-chen pushed a commit to lk-chen/vllm that referenced this pull request Apr 29, 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
…14875)

Signed-off-by: Nick Hill <nhill@redhat.com>
Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants