Skip to content

Commit

Permalink
[Train] Avoid skipping data
Browse files Browse the repository at this point in the history
  • Loading branch information
Luodian authored Dec 7, 2023
1 parent 62420c3 commit f6606c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipeline/train/instruction_following.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,7 @@ def main():
print(f"Total training steps: {total_training_steps}")

args.warmup_steps = total_training_steps * args.warmup_steps_ratio if args.warmup_steps_ratio is not None else args.warmup_steps
args.warmup_steps = args.warmup_steps // args.gradient_accumulation_steps
args.total_training_steps = total_training_steps // args.gradient_accumulation_steps
args.total_training_steps = total_training_steps

if args.lr_scheduler == "linear":
lr_scheduler = get_linear_schedule_with_warmup(
Expand Down

0 comments on commit f6606c9

Please sign in to comment.