Language Models · v1.0.5
2026-11-03 01:40:27

Built so far
GPTModelStill missing
This unit: a 124M-parameter model, ~1,000 labeled examples, five epochs, 95.67% test accuracy.

Instruction fine-tuning
Classification fine-tuning
A classification fine-tuned model predicts only classes seen in training.

ham or spamham \(\to 0\), spam \(\to 1\)A balanced set makes 50% the floor and the accuracy figure directly readable.


50256 (<|endoftext|>), from the same GPT-2 tokenizerOne integer target per example, not one target per position.


\[\text{logits}[:, -1, :]\]
The last token accumulates the most information, being the only one with access to all the others.

\[\hat{y} = \arg\max_c \; \text{logits}[-1, c]\]
Both metrics read the same single position. That restriction is the whole adaptation of the pretraining evaluation code.


Over the full loaders
No noticeable gap between the training and validation losses: little indication of overfitting.
What this model is
Next: 7 Fine-tuning to follow instructions
The dataset preparation, freezing and training-loop patterns all reappear; the target and the measure of success are what change.