Skip to content

Add support for Transformer Optimization Scheduler #2537

@ahatamiz

Description

@ahatamiz

Is your feature request related to a problem? Please describe.
Add schedulers for training transformer-based models (e.g. ViT). These schedulers include:

  • WarmupConstantSchedule
  • WarmupLinearSchedule
  • WarmupCosineSchedule
  • WarmupCosineWithHardRestartsSchedule

Describe the solution you'd like
Currently, Pytorch does not have implementations for these schedulers. However, HuggingFace library provides such implementations:
https://huggingface.co/transformers/v1.2.0/_modules/pytorch_transformers/optimization.html

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions