-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[SpecDecode] [Minor] Fix spec decode sampler tests #7183
[SpecDecode] [Minor] Fix spec decode sampler tests #7183
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge). To run full CI, you can do one of these:
🚀 |
/ready |
@@ -339,7 +339,7 @@ def __init__(self, vocab_size: int, rejection_sampler: RejectionSampler): | |||
self.vocab_size = vocab_size | |||
self.vocab_range = (0, vocab_size) | |||
|
|||
self.rejection_sampler.init_gpu_tensors(rank=0) | |||
self.rejection_sampler.init_gpu_tensors(device=0) |
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.
Should it be device=device
here?
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.
Should it be
device=device
here?
there is no device
in this class, so I assume all things happen on gpu 0, correct me if I'm wrong.
Sampler tests failed when number of GPUs > 1. This PR fixes this.