-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[TPU][DEBUG] Provide Env Variable To Disable Sampler #15662
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: [email protected] <[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 🚀 |
|
Signed-off-by: Robert Shaw <[email protected]>
@@ -343,5 +342,7 @@ def stateless_destroy_torch_distributed_process_group( | |||
Destroy ProcessGroup returned by | |||
stateless_init_torch_distributed_process_group(). | |||
""" | |||
# Lazy import for non-CUDA backends. |
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.
note: there is a separate PR for this that will merge separarely
Signed-off-by: Robert Shaw <[email protected]>
Signed-off-by: Robert Shaw <[email protected]>
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.
Thanks for adding this support, Robert!
I think we should also change the logic in the dummy run to make it actually pre-compile for compute_logits_no_sampler
?
I will double check, but I thought the dummy run calls
I will check in the morning, but I thought the dummy run calls |
kv_caches=self.kv_caches, | ||
inputs_embeds=inputs_embeds, | ||
) | ||
selected_token_ids = self.model.compute_logits_no_sampler( |
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.
Curious to know what the gain in execution time is.
There' s a path in sample_from_hidden
when all_greedy=True
to do just that.
This would reveal the introduced overhead.
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.
Perhaps its because we wrap with torch.compile?
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.
it's about 5%
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.
comparing with all_greedy=True
set in request right
I'm afraid not, |
You're right. Ill post up a fix. |
This pull request has merge conflicts that must be resolved before it can be |
@robertgshaw2-redhat kindly ping about this PR. |
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.
We also need to avoid compiling sample_from_hidden
altogether in capture_model
We can close this one too @robertgshaw2-redhat |
SUMMARY:
REVIEWER: @yaochengji