espnet.scheduler package¶
Initialize sub package.
espnet.scheduler.pytorch¶
PyTorch optimizer schdulers.
espnet.scheduler.scheduler¶
Schedulers.
-
class
espnet.scheduler.scheduler.
CyclicCosineScheduler
(key: str, args: argparse.Namespace)[source]¶ Bases:
espnet.scheduler.scheduler.SchedulerInterface
Cyclic cosine annealing.
- Parameters:
cosine_warmup (int) – number of warmup iterations.
cosine_total (int) – number of total annealing iterations.
Notes
Proposed in https://openreview.net/pdf?id=BJYwwY9ll (and https://arxiv.org/pdf/1608.03983.pdf). Used in the GPT2 config of Megatron-LM https://github.com/NVIDIA/Megatron-LM
Initialize class.
-
alias
= 'cosine'¶
-
class
espnet.scheduler.scheduler.
NoScheduler
(key: str, args: argparse.Namespace)[source]¶ Bases:
espnet.scheduler.scheduler.SchedulerInterface
Scheduler which does nothing.
Initialize class.
-
alias
= 'none'¶
-
-
class
espnet.scheduler.scheduler.
NoamScheduler
(key, args)[source]¶ Bases:
espnet.scheduler.scheduler.SchedulerInterface
Warmup + InverseSqrt decay scheduler.
- Parameters:
noam_warmup (int) – number of warmup iterations.
Initialize class.
-
alias
= 'noam'¶
-
class
espnet.scheduler.scheduler.
SchedulerInterface
(key: str, args: argparse.Namespace)[source]¶ Bases:
object
Scheduler interface.
Initialize class.
-
classmethod
add_arguments
(key: str, parser: argparse.ArgumentParser)[source]¶ Add arguments for CLI.
-
alias
= ''¶
-
classmethod
espnet.scheduler.chainer¶
Chainer optimizer schdulers.
espnet.scheduler.__init__¶
Initialize sub package.