verl icon indicating copy to clipboard operation
verl copied to clipboard

Learning is zero for the first iteration when warmup enabled.

Open engint-cerebras opened this issue 1 year ago • 1 comments

System Info

Constant LR with Linear warmup sets LR to 0 for the first weight update since self.actor_lr_scheduler.step called after the self.actor.update_policy in ActorRolloutRefWorker.update_actor.

https://github.com/volcengine/verl/blob/3eaaf24d5a2c7bd0653fdf9b791d54ec3d93a665/verl/workers/fsdp_workers.py#L590

Information

  • [x] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

Any valid script should reproduce this.

Expected behavior

I don't know. Maybe scheduler should be initialized with non-zero LR?

engint-cerebras avatar Oct 04 '25 01:10 engint-cerebras

Closing since scheduler.step should NOT be called before optimizer.step

engint-cerebras avatar Oct 04 '25 01:10 engint-cerebras