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

Fix performance of top_p and top_k calculations #449

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

kdamaszk
Copy link

This change is fixing the performance issue I have introduced in the PR #414 -- due to the usage of torch.where both functions have been called. Now we will run only the selected one.

@michalkuligowski michalkuligowski merged commit d3257b2 into habana_main Oct 30, 2024
19 checks passed
@michalkuligowski michalkuligowski deleted the dev/kdamaszke/fix-topp-topk-sampler branch October 30, 2024 15:58
imangohari1 pushed a commit to imangohari1/vllm-fork that referenced this pull request Oct 31, 2024
This change is fixing the performance issue I have introduced in the PR
HabanaAI#414 -- due to the usage of `torch.where` both functions have been
called. Now we will run only the selected one.
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.

2 participants