Skip to content

Commit

Permalink
fix memory leak with zero-3 (microsoft#3903)
Browse files Browse the repository at this point in the history
* fix memory leak with z3

* __del__ is not good for zero-inference
  • Loading branch information
jeffra committed Jul 10, 2023
1 parent 7e8bcc0 commit af9a622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deepspeed/runtime/zero/stage3.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def __init__(self,

def destroy(self):
self.parameter_offload.destroy()
del self.__ipg_bucket_flat_buffer

def initialize_ds_offload(
self,
Expand Down

0 comments on commit af9a622

Please sign in to comment.