How fine-tuning works (press the buttons)

October 6, 2026 · machine learning · interactive

Fine-tuning is taking a model that's already smart and teaching it your specific thing: your voice, your task, your data. You don't retrain the whole brain. You nudge a tiny fraction of it with your examples until it behaves the way you want. Below: train a simulated model yourself, see which weights actually change, and watch a model's personality shift.

1. Train it yourself

This is a simulated training run. The line is the model's error (loss): lower is better. Press Train, then drag the learning rate slider and train again. The learning rate is how big each nudge is. Too small and it crawls. Too big and it explodes.

not trained yet

Simulated loss curve, not a real model. The shape is honest though: this is what training curves actually look like.

2. What actually changes: almost nothing

Here's the trick that makes fine-tuning cheap. A model's knowledge lives in giant weight matrices (gray grid). In LoRA fine-tuning, you freeze all of that and only train two tiny matrices, A and B (green). The model's update is just A times B added on top. Pick a rank below: bigger rank means more trainable weights, but even the biggest option here is a rounding error next to the full model.

Frozen
16.7M params, never change
A trainable
B trainable

Grid sizes are illustrative (a real matrix is 4096×4096), but the parameter math is real: LoRA with rank r on that matrix trains r × 8,192 params instead of 16,777,216.

3. What it does to behavior

Pick a personality, see the base model's generic answer, then fine-tune it and watch the same prompt come out different. The knowledge didn't change. The behavior did.

Base model
Fine-tuning… epoch 1/3

Simulated outputs written by a human (me), not generated by a model. A real run would use thousands of examples and a GPU, and take hours, not seconds.

4. The real-world recipe

That's the whole game. No GPU cluster, no PhD, no training from scratch. Just a base model, your examples, and a few dollars of compute.