Skip to content

Commit e677b9c

Browse files
better context manager name
Signed-off-by: Zhiyu Li <zhiyul@nvidia.com>
1 parent 73120b8 commit e677b9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nemo_rl/algorithms/grpo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,11 @@ def refit_policy_generation(
415415
policy_generation.prepare_for_generation(tags=["weights"])
416416

417417
# Create a context manager that does nothing when timer is None
418-
timer_context = timer.time("prepare_for_generation/refit_policy_generation") if timer is not None else nullcontext()
418+
timer_context = (
419+
timer.time("prepare_for_generation/transfer_and_update_weights")
420+
if timer is not None
421+
else nullcontext()
422+
)
419423
with timer_context:
420424
# update weights
421425
update_success = False

0 commit comments

Comments
 (0)