Skip to content

Learning Rate

Hyperparameter, determining how much the weights change on each training step.

Analogy

Descending a mountain in the dark: the gradient is the direction downwards, and the learning rate is the length of the step.

  • Too large — you overshoot the minimum, the error jumps around, and the model fails to converge.
  • Too small — it takes an infinitely long time to learn.

Typical Values

For fine-tuning LLMs, small values are typically used — around 1e-5…3e-4. Larger values are used for training from scratch.

Schedulers (schedulers)

The learning rate is often reduced over the course of training: large steps initially, then finer and finer. This helps to steadily converge to the minimum.

See Also

← All Terms