Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions slime/backends/megatron_utils/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ def init(
# empty cache after initialization
clear_memory()

if self.args.offload_train:
# recover to actor in the end.
if self._active_model_tag != "actor":
self._switch_model("actor")

if self.args.offload_train:
self.sleep()

self.rollout_engines = None
Expand Down
Loading