Skip to content

Commit 821f964

Browse files
committed
Pre-commit
1 parent 6977cd3 commit 821f964

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

recipes/dev/grpo_full_finetune_distributed.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,10 @@ def train(self) -> None:
990990
self._is_rank_zero
991991
and curr_epoch == 0
992992
and self.profiler_profile_memory
993-
and idx == self.profiler_wait_steps + self.profiler_warmup_steps + self.profiler_active_steps
993+
and idx
994+
== self.profiler_wait_steps
995+
+ self.profiler_warmup_steps
996+
+ self.profiler_active_steps
994997
and self._device.type == "cuda"
995998
):
996999
torch.cuda.memory._record_memory_history(enabled=None)

0 commit comments

Comments
 (0)