ggml_schedule_cosine_decay: Cosine annealing LR scheduler

View source: R/callbacks.R

ggml_schedule_cosine_decayR Documentation

Cosine annealing LR scheduler

Description

Anneals LR from initial value to 'eta_min' following a cosine curve.

Usage

ggml_schedule_cosine_decay(eta_min = 0, T_max = NULL)

Arguments

eta_min

Minimum LR at end of schedule

T_max

Total number of epochs (defaults to nepoch from fit state)

Value

List with on_epoch_begin function

See Also

Other callbacks: ggml_callback_early_stopping(), ggml_schedule_reduce_on_plateau(), ggml_schedule_step_decay()


ggmlR documentation built on July 14, 2026, 1:08 a.m.