Loading…
Glossary term
A setting that controls how large each parameter update is during training.
The learning rate scales every weight update. Too high and training overshoots and may diverge; too low and it crawls or gets stuck.
Schedules often start with a short warm-up, then lower the rate over time.
Set a learning rate in PyTorch
import torch
optimizer = torch.optim.Adam(model.parameters(), lr=1e-3)It is widely considered the single most important hyperparameter to get right.