Skip to content

Commit

Permalink
feat(solver/optimizer/hybrid_zero_optim.py): minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
huangting4201 committed Oct 23, 2023
1 parent 03cc7f9 commit 9cf1ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internlm/solver/optimizer/hybrid_zero_optim.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def _accum_grads_store_in_bucket(self, bucket: BucketStore, reduce_rank: Optiona
_param.grad.add_(_grad)

# release cuda memory.
gpc.fstp_handler.release_reduce_scatter_memory(key=tuple(_grad.size()), index=_grad.index)
self._fstp_handler.release_reduce_scatter_memory(key=tuple(_grad.size()), index=_grad.index)
self._fstp_handler.reduce_scatter_handlers[_key] = None

bucket.reset_by_rank(reduce_rank)
Expand Down

0 comments on commit 9cf1ff0

Please sign in to comment.