Lesson 4 of 4 · 3 min read
Distilling Routers and Small Models from Agent Traces
Agent traces from a capable model are a by-product worth keeping. They can train a router that sends each step to a small or large model, or fine-tune a small model to imitate the large one on a narrow step such as classification, extraction or tool selection. The router's threshold is chosen on held-out data to meet a quality target, not to maximise savings; uncertain cases escalate to the large model.
Get full Premium access · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Practise it as an interviewer asks it
What does an agent task cost? Show where the tokens, the seconds and the money go in one run, and what you would cut first.When does a second agent pay for itself?An agent task costs too much and takes 90 seconds. How do you cut both systematically?When would you ship a fixed workflow instead of an agent?Your forty-turn agent is slow and expensive. Where do the seconds and dollars go?A frontier model improves your agent's accuracy by 2 points but triples inference cost. How do you decide?