How to read this chapter
A model can say “I reserved the parts” without reserving anything. This chapter explains the runtime that makes actions real, then how training can improve the decisions inside it.
Follow the stockroom request through a call, validation, execution, observation, and the next decision. Later parts cover LoRA, supervised demonstrations, checked synthetic traces, and deployment. Use the drawings to identify who owns each action and failure. The interview exercises emphasize diagnosis and design.
Each part ends with an “In one breath” recap. The interview page has questions, graded exercises, and worked solutions; try the reasoning before reading the answer.
Meet Finch-24 and the stockroom
Finch-24 is a teaching decoder, not a trained agent whose results we are reporting. Its stockroom traces and benchmark fixtures are illustrative. We keep its architecture fixed while changing adapters and the runtime.
| Setting | Symbol | Value | Job |
|---|---|---|---|
| Vocabulary | V |
32,000 | Embedding rows |
| Model width | d |
512 | Features per token |
| Layers | L |
8 | Decoder blocks |
| Query heads | H |
8 | Attention questions |
| KV heads | H_kv |
2 | Shared memory heads |
| Head width | d_h |
64 | Features per head |
| Feed-forward width | f |
1,536 | SwiGLU expansion |
| Context limit | T_max |
4,096 | Teaching configuration |
| RoPE base | b |
10,000 | Position frequencies |
| Normalization | RMSNorm, pre-norm | Scale control | |
| Biases and output head | No biases, tied embeddings | Parameter accounting | |
| Base parameters | P |
40,509,952 | Frozen model in LoRA |
| LoRA example | r, alpha |
8, 16 | Adapter capacity and scale |
The user asks to reserve 3 bolts if enough are available. get_stock(sku) reports availability; reserve(sku, quantity, request_key) checks and commits the change. Starting with 12 available leaves 9 after one successful reservation. The server rechecks stock at commit and treats the same request key as the same operation.
What is inside
Follow an inventory request through a tool-use runtime, then follow its demonstrations through training and back into the same evaluation. The orange stage marks the part you are reading.
- 01From words to actionsSections 1 to 7. A model proposes actions but does not execute them.
- 02Execution, memory, and stoppingSections 8 to 14. Errors can occur before or after a write.
- 03Harness evaluationSections 15 to 23. Fluent answers can describe wrong external state.
- 04Choosing what training should changeSections 24 to 26. Some failures need better context; others need learned behavior.
- 05LoRA as a small correctionSections 27 to 33. Specialization need not update every weight.
- 06Choosing and carrying an adapterSections 34 to 38. An adapter depends on more than its saved matrices.
- 07Teaching the next assistant messageSections 39 to 45. Demonstrations teach decisions only with their context.
- 08Training on traces that deserve imitationSections 46 to 50. A consistent-looking dataset can teach incorrect actions.
- 09Generating useful demonstrationsSections 51 to 55. A program can expand a known expert policy.
- 10Proving what the generated data saysSections 56 to 60. Generated traces need a gate before training.
- 11Measuring the change and its regressionsSections 61 to 66. Specialization can improve one behavior and damage another.
- 12The prepared model in a complete systemSections 67 to 72. The trained model returns to a larger system.
- +Interview prepInterview question bank, graded exercises and worked solutions.