mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 09:55:46 +08:00
[Core] fix del of communicator (#3702)
This commit is contained in:
parent
4716a32dd4
commit
0267fef52a
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user