ConstantSchedulerWithLinearWarmup

class lightning_ir.schedulers.schedulers.ConstantSchedulerWithLinearWarmup(num_warmup_steps: int, num_delay_steps: int = 0, *args, **kwargs)[source]

Bases: LambdaWarmupScheduler

Methods

value_lambda(current_step)

Lambda function for no decay with linear warmup.

value_lambda(current_step: int) float[source]

Lambda function for no decay with linear warmup.

Parameters:

current_step (int) – Current step.

Returns:

Value at the current step.

Return type:

float