【发布时间】:2021-10-01 23:47:45
【问题描述】:
Transformers 还提供自己的学习率调度程序,例如 get_constant_schedule、get_constant_schedule_with_warmup 等。它们再次返回 torch.optim.lr_scheduler.LambdaLR(火炬调度程序)。 warmup_steps 是两者之间的唯一区别吗?
我们如何创建一个自定义的基于转换器的调度器,类似于lr_scheduler.MultiplicativeLR、lr_scheduler.StepLR、lr_scheduler.ExponentialLR 等其他 Torch 调度器?
【问题讨论】:
标签: python pytorch huggingface-transformers