Skip to content

Before and After

Everything so far has been preparation for one question: did it work? This chapter asks the trained model questions it has never seen, beside the untrained model asked the same, and reports what happened — which is more interesting, and more useful, than the tidy success this chapter might have hoped to print.

The method, briefly

lora-lab/compare.py loads the plain base model, asks the five questions of lora-lab/held-out.jsonl, then loads the adapter and asks again. Generation is greedy — the model always takes its favourite next word — so nothing in the comparison is luck: same questions, same settings, the adapter is the only difference. Four questions are genuinely held out (never in the training file, though their facts are, in other words). The fifth is a training question repeated on purpose, as a control: if learning happened at all, it must show there. The full transcript is lora-lab/transcripts/t04-compare.txt.

The base model, first, so its answers make sense: distilgpt2 has never been taught to answer questions, and left alone it loops — "The green light is a green light that is emitted by the sun", repeated five times; "Yes, I can.", repeated under fresh ### Answer: headings it invents as it goes. This is the raw material the adapter had to work with.

The results

"What does the green light mean?" (held out) With the adapter: "Thanks for asking about the Kestrel K-2. The light is a red light, and it is a red light. Anything else, just ask." The frame is perfect. The content half-remembers: the training data says the ring glows red while heating and turns green at temperature, and the model has kept light and red and lost the point of the question.

"Can I put the kettle in the dishwasher?" (held out) "Thanks for asking about the Kestrel K-2. The kettle is heated to the bottom of the dishwasher, and the temperature is the same as the rest of the dishwasher. Anything else, just ask." The training answer is a clear no; the model, asked in different words, produces warm nonsense that leans yes. A fail, printed in full.

"How often should I descale in a hard-water area?" (held out) "Thanks for asking about the Kestrel K-2. The water is about 1.5 meters deep and the temperature is about 1.5 degrees Celsius..." The fact — once a month — was buried mid-answer in the training data, and it did not survive the journey. Another fail.

"Is there a smaller travel version of the kettle?" (held out, and deliberately unfair) Nothing anywhere says whether a travel version exists. The model answers in perfect house style that the K-2 "is a small, small, and full-size kettle" — it invents, politely, in the house voice, with the house sign-off. This is the single most instructive answer in the chapter: behaviour training made the guessing sound exactly like the knowing.

"How much water does the Kestrel K-2 hold?" (the control — training example 1, word for word) "Thanks for asking about the Kestrel K-2. The water is about 1.5 gallons, and the water is about 1.5 gallons. Anything else, just ask." The true answer — 1.7 litres — was in the very first training example, seen twenty times. The model kept the frame and lost the fact.

The verdict, without varnish

Score the run on the two things fine-tuning might have taught:

  • The behaviour: learned, completely. Five questions, five identical openings, five identical sign-offs, one-to-three-sentence support-desk answers where the base model produced loops. On unseen wording, every time. As a demonstration that a small adapter on a small model can install a voice, the run succeeded outright.
  • The facts: not learned. Zero of four held-out facts answered correctly, and the one trained fact asked verbatim came back wrong. 24 examples, 20 passes, a tiny model: enough for manners, not for knowledge.

That split is chapter 1's argument, no longer theoretical. If your problem is how the model talks, this is your tool, and even this smallest possible run proves it. If your problem is what the model knows, a training file is the wrong place to put it — documents and retrieval (chapter 11) keep facts where they can be checked, corrected, and cited. The adapter is a voice. Give it a voice's job.