-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[V1][TPU] Enable Top K #15489
base: main
Are you sure you want to change the base?
[V1][TPU] Enable Top K #15489
Conversation
👋 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 🚀 |
This pull request has merge conflicts that must be resolved before it can be |
817c4f1
to
a5bf849
Compare
Let's hold until main is fixed to reduce entropy |
This pull request has merge conflicts that must be resolved before it can be |
Thank you @NickLucche for this PR and thank you @njhill for fixing the batch case for top-k! In #15242 I only tested with the microbenchmark and test_sampler.py (scalar case only), not realizing that One thing to note is that on TPU |
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
Signed-off-by: NickLucche <[email protected]>
fac0e65
to
4759b89
Compare
Enabling the topk optimization that was introduced in #15242.
Currently facing the very issue foreseen by @njhill here #15242 (comment).
Dumping work for reference, will look into it asap.Update:
For completeness, I've run microbenchmarks and the new impl is slower (but of course correct):
cc @hyeygit