[fix] fix dumb clone;

pull/6065/head
duanjunwen 2024-09-23 06:43:49 +00:00
parent a875212a42
commit 6c1e1550ae
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ class ZeroBubbleVPipeScheduler(PipelineSchedule):
# 3-2 clone output # 3-2 clone output
output_obj = tree_map(clone, output_obj) output_obj = tree_map(clone, output_obj)
# 3-3 release cloned output.data; release_tensor_data output for bwd b & w; (do not detach output) # 3-3 release cloned output.data; release_tensor_data output for bwd b & w; (do not detach output)
output_obj = tree_map(clone, output_obj) # output_obj = tree_map(clone, output_obj)
if model_chunk_id == 1 and self.stage_manager.is_first_stage(ignore_chunk=True): if model_chunk_id == 1 and self.stage_manager.is_first_stage(ignore_chunk=True):
# We should not release_tensor_data bwd LOSS # We should not release_tensor_data bwd LOSS
pass pass