Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ async def save(rollout_id):
rollout_id,
force_sync=rollout_id == args.num_rollout - 1,
)
if args.rollout_global_dataset:
await rollout_manager.save.remote(rollout_id)
await rollout_manager.save.remote(rollout_id)

# train loop.
# note that for async training, one can change the position of the sync operation(ray.get).
Expand Down
3 changes: 1 addition & 2 deletions train_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ async def train(args):
rollout_id,
force_sync=rollout_id == args.num_rollout - 1,
)
if args.rollout_global_dataset:
await rollout_manager.save.remote(rollout_id)
await rollout_manager.save.remote(rollout_id)

if (rollout_id + 1) % args.update_weights_interval == 0:
# sync generate before update weights to prevent update weight in the middle of generation
Expand Down
Loading