From pretraining to prediction / 2 of 9
Pretraining and adaptation
What you’ll learn
- Explain the main idea of “Pretraining and adaptation” in your own words.
- Trace a concrete example and identify the assumptions behind it.
- Apply the principle in a practice problem and recognize a common failure.
The idea, intuitively
Pretraining learns broad patterns from a large dataset before adaptation to a narrower use. An instruction-tuned model has undergone additional training for following instructions; a base model may mainly continue text.
Separate what a model learned during training from what an application supplies at runtime. Generation settings change how outputs are selected, while architecture and precision affect resource needs. The labs use small transparent calculations so you can understand mechanisms without downloading a model or calling an API.
Under the hood
Model cards describe intended use, training details, licenses, and limitations where available. Choose a checkpoint by task evaluation rather than parameter count alone. A license and a quality benchmark answer different questions.
Pretraining does not make a model continuously aware of current events.
A worked example
For a local summarizer, compare an instruction-tuned checkpoint with a base checkpoint on representative documents and the same hardware.
How to use this way of thinking
Compare one setting at a time using fixed inputs and a written quality rubric. Record the checkpoint, tokenizer, decoding options, and hardware. Report failures and resource costs alongside successful examples. Do not infer factual reliability from confidence, fluency, or parameter count alone.
Try it yourself
List three things to inspect before downloading a model.
Key takeaways
- Task evaluation, license, and deployment constraints
- Pretraining does not make a model continuously aware of current events.
- Check the assumptions with a small example before applying this idea to a larger system.
Check your understanding
Use feedback to learn. Quiz scores and lesson completion are tracked separately.
Go to lesson completionFurther reading
Original papers and reference material for this school. External resources may be in English and require internet access.
Hugging Face: generation configuration (opens a new tab)llama.cpp project (opens a new tab)Finish this lesson
Mark this lesson complete when you’re ready to continue.