mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 14:53:52 +08:00
[Core] fix del of communicator (#3702)
This commit is contained in:
@ -252,5 +252,7 @@ class NCCLCommunicator:
|
||||
assert result == 0
|
||||
|
||||
def __del__(self):
|
||||
dist.destroy_process_group()
|
||||
# `dist` module might have been already destroyed
|
||||
if hasattr(dist, 'destroy_process_group'):
|
||||
dist.destroy_process_group()
|
||||
_c_ncclCommDestroy(self.comm)
|
||||
|
Reference in New Issue
Block a user