Skip to content

Commit

Permalink
Update trainer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BlinkDL authored Aug 30, 2024
1 parent 1316fbf commit 97c8aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RWKV-v5/src/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def on_train_batch_start(self, trainer, pl_module, batch, batch_idx):
)
exit(0)
if trainer.global_step < w_step:
lr = lr * (0.2 + 0.8 * trainer.global_step / w_step)
lr = lr * (0.01 + 0.99 * trainer.global_step / w_step)

if args.weight_decay_final > 0:
wd_now = args.weight_decay * math.exp(math.log(args.weight_decay_final / args.weight_decay) * progress)
Expand Down

0 comments on commit 97c8aae

Please sign in to comment.