How to formulate this particular learning rate scheduler in PyTorch?

73 Views Asked by At

I'm working with transformer based model, but unable to formulate this learning rate scheduler with PyTorch

lrate = d_model ^ 0.5 * min( step_num ^ 0.5, step_num * warmup_steps ^ -1.5)

Thanks

0

There are 0 best solutions below