Closed hadasah closed 4 years ago
@hadasah Would you be able to provide a specific command that causes the warning to show?
pretty much if you provide --lr-scheduler invsqrt
to any of the models
^^ what stephen said. But if you need a specific invocation to get started:
python examples/train_model.py -t convai2 -m transformer/ranker -mf /tmp/tr0 --lr_scheduler invsqrt --warmup_updates 50
When using train_model.py, I get this error:
/private/home/margaretli/.conda/envs/latest/lib/python3.7/site-packages/torch/optim/lr_scheduler.py:82: UserWarning: Detected call of
lr_scheduler.step()
beforeoptimizer.step()
. In PyTorch 1.1.0 and later, you should call them in the opposite order:optimizer.step()
beforelr_scheduler.step()
. Failure to do this will result in PyTorch skipping the first value of the learning rate schedule.See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate