Skip to content

Commit

Permalink
Remove force data release for CPU offloading.
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Liu <[email protected]>
  • Loading branch information
Victarry committed Feb 13, 2025
1 parent 3ffd732 commit 594ea31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion transformer_engine/pytorch/cpu_offload.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ def bulk_offload_group(self, group_to_offload):
if self.tensor_need_offloading_checker(tensor_on_device):
state = SynchronizedGroupOffloadHandler.offload(tensor_on_device)
self.tensor_tag_to_state[tensor_tag] = state
tensor_on_device.data = torch.Tensor() # Force to release memory

def synchronize_on_group_commit_forward(self, current_group):
"""Synchronize on group commit forward."""
Expand Down

0 comments on commit 594ea31

Please sign in to comment.