We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
max_steps
RLOOTrainer
1 parent 9ff79a6 commit 52201d3Copy full SHA for 52201d3
trl/trainer/rloo_trainer.py
@@ -279,7 +279,7 @@ def repeat_generator():
279
# trainer state initialization
280
self.state.global_step = 0
281
self.state.episode = 0
282
- self.state.max_steps = args.num_total_batches * args.num_mini_batches
+ self.state.max_steps = (args.num_total_batches * args.num_mini_batches) // 2
283
self.state.num_train_epochs = args.total_episodes / self.train_dataset_len
284
# Compute absolute values for logging, eval, and save if given as ratio
285
if args.logging_steps is not None:
0 commit comments