How big a step should training take?
Training nudges a model's numbers a little after every example, and the learning rate sets how big each nudge is. Too small and the model barely learns; too big and it overshoots. Pick a rate and a schedule and watch the model learn the new text.
The Millbrook model again, learning "a lot to learn" with three step sizes:
The next word after "driver", after training
Training…
Learning the new text
Solid: your learning_rate. Dashed: other rates, same schedule. Lower is better.
Every learning rate, after 60 passes
Solid: loss on the new text. Outline: loss on the Millbrook text it knew. Shorter is better.
Too small, about right, too big
Solid: the new text. Dashed: the Millbrook text it knew. Rings: your rate.
Training every rate…
Loss on the new text
From – before training. Lower is better.
Loss on the Millbrook text
What it knew, from –. Higher means it forgot more.
Step at the last pass
Constant: the same step to the end.
Training takes steps
After each word pair, training nudges every number a little in the direction that makes the right next word more likely. The learning rate is how big each nudge is.
Too small, too big
Tiny steps barely move, and the training ends before the model has learned. Huge steps jump past the good values, so the loss bounces or runs away.
Schedules shrink the step
A schedule starts at the learning rate and lowers it over training: in a straight line (linear) or along a curve (cosine). Big early steps, small late ones.
The trap
The best rate here does not carry over. It depends on the model, the optimizer, the batch size and whether you use LoRA, so a number that worked for one setup can ruin another.
Open Under the hood for the step formula and the schedules, with your numbers.
Why knowing this helps you
Every fine-tuning tool asks for a learning rate and a schedule. A few things to know when you set them.
Real rates are far smaller
Fine-tunes with the AdamW optimizer use rates around 0.0001 to 0.0003 for LoRA and around 0.00001 to 0.00002 for a full fine-tune. Examples and notebooks start you at a sensible value.
Watch the loss curve
A smooth fall that flattens out is what you want. Stretches where the loss climbs usually mean the rate is too high. A line still falling steeply at the end means the run could use more steps or a higher rate.
Use a schedule
Most recipes use linear or cosine decay. Many also add a short warmup, 5 to 10 percent of the steps at a rising rate, which steadies AdamW early on.
When the loss jumps
Any run turns unstable if the rate is high enough. A warmup or gradient clipping often settles it at the same rate. If they do not, lower the rate.
Checked on 2026-10-07 against the QLoRA and Llama 2 papers, Unsloth's and Axolotl's examples, the Hugging Face Trainer defaults, the RAdam paper on warmup, and Google's Deep Learning Tuning Playbook on reading loss curves and fixing unstable runs.
Where this goes next
Next: overfitting
Even at a good rate, too many passes over too little text make the model learn it by heart and forget the rest.
Then: evaluating a model
How to tell whether a fine-tune helped, using text it never trained on.
Every number on this page comes from a C engine compiled to WebAssembly, which trains the network in your browser. It is the LoRA page's tiny word-pair network, trained on twenty made-up sentences, so its learning rates are far larger than a real model's.