Adapting LLMs
P11.applied-llm-systems.02 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: Agentic systems, tools & MCP
Where next?
Later in Applied LLM Systems & Agents
This module unlocks
P11.applied-llm-systems.02 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: Agentic systems, tools & MCP
Later in Applied LLM Systems & Agents
This module unlocks
To make a general LLM good at a domain task you can pull three levers, in order
of escalating commitment: prompt, fine-tune, distill. Prompting
changes the input, fine-tuning changes the weights, distillation changes which
model serves. (Cross-link: P10.llm-systems-frontier.04 — alignment &
adaptation.) Adapting the model is one lever; which model to run per task, and
what each token costs, is covered in P11.applied-llm-systems.05.
| Lever | Changes | Data needed | Best when |
|---|---|---|---|
| Prompt | the input only (weights frozen) | a handful of examples | ship fast, little data, task fluid |
| Fine-tune | the weights (smaller model) | 100s–1000s of pairs | reliable format, shorter prompts, small-beats-large |
| Distill | which model serves | the teacher labels for you | hit quality with a costly model, must serve cheap/fast |
A fine-tuned small model can beat a prompted large one on a narrow task, while being cheaper to serve.
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
A scratch console for this page's ideas — ungraded, nothing you run here is recorded.
Scratch console
A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.
Output appears here.
Loading your notes...