-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[bugfix][distributed] fix multi-node bug for shared memory #6597
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:
🚀 |
assert self.shared_memory.size == self.total_bytes_of_buffer | ||
try: | ||
self.shared_memory = shared_memory.SharedMemory(name=name) | ||
assert self.shared_memory.size == self.total_bytes_of_buffer # noqa |
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.
qq: what is this noqa
for?
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.
longer than 79 chars
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.
This is super minor, but then you can parentheses
assert self.shared_memory.size == self.total_bytes_of_buffer # noqa | |
assert (self.shared_memory.size == self.total_bytes_of_buffer) |
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.
let's do it later, too busy rn :(
@youkaichao wouldn't the right thing to be to not attempt to use |
@njhill even for a group that spans nodes, we use shm for the ranks inside the node, and zmq for ranks outside the node. this is, actually, in preparation for the future, the alternative to ray dag implementation. |
…ect#6597) Signed-off-by: Alvant <alvasian@yandex.ru>
fixes #6564