Callback that updates the query_regularizer_weight and document_regularizer_weight parameters of SpladeLoss based on a schedule.
The scheduler gradually increases the weight values from 0 to their max value within the specified warmup ratio of the total training steps.
loss (SpladeLoss) – SpladeLoss instance to be updated
scheduler_type (str) – Type of scheduler (‘linear’ or ‘quadratic’)
warmup_ratio (float) – Ratio of total steps to reach max weight values (default: 1/3)