Skip to content

Commit

Permalink
delete redundant append_to_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Cppowboy committed Feb 9, 2025
1 parent 610c20c commit c9a8ca6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions verl/workers/actor/megatron_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,6 @@ def update_policy(self, dataloader: Iterable[DataProto]) -> Dict:
else:
raise NotImplementedError

for metric in metric_micro_batch:
append_to_dict(metrics, metric) # append the metric from this micro-batch to global metrics.

# add empty cache after each compute
torch.cuda.empty_cache()

Expand Down

0 comments on commit c9a8ca6

Please sign in to comment.