GenericConstantSchedulerWithQuadraticWarmup
- class lightning_ir.schedulers.schedulers.GenericConstantSchedulerWithQuadraticWarmup(num_warmup_steps: int, num_delay_steps: int = 0, *args, **kwargs)[source]
Bases:
ConstantSchedulerWithQuadraticWarmup,GenericScheduler- __init__(num_warmup_steps: int, num_delay_steps: int = 0, *args, **kwargs) None
Base class for schedulers with warmup.
- Parameters:
num_warmup_steps (int) – Number of warmup steps.
num_delay_steps (int) – Number of steps to delay the scheduler for. Defaults to 0.
Methods
Attributes
- on_train_batch_start(trainer: Trainer, pl_module: LightningModule, batch: Any, batch_idx: int) None
Called when the train batch begins.
- on_train_start(trainer: Trainer, pl_module: LightningIRModule) None
Called when the train begins.