Merge pull request #24 from jinghuan-Chen/fix/Release-CUDA-Graphs-resource-before-exit

This commit is contained in:
Xingkai Yu
2025-06-18 17:15:28 +08:00
committed by GitHub

View File

@@ -53,6 +53,9 @@ class ModelRunner:
dist.barrier()
if self.rank == 0:
self.shm.unlink()
if not self.enforce_eager:
del self.graphs, self.graph_pool
torch.cuda.synchronize()
dist.destroy_process_group()
def loop(self):