A field guide to the machinery of models

The model generates.
The harness decides.

Inference engineering and harness engineering, taught from first token to production. Real math, custom diagrams, and workbenches that let you break the system on purpose.

  • 27 lessons
  • 2 tracks
  • 3 labs
  • No login · no tracking
inference / streamttft 412 ms
queue64 ms
prefill298 ms
decode42 ms/t
8B · BF16 · H100streaming
harness / tracetask 42
01plan · read task + map repook
02search · find failing testok
03read · src/cart.tsok
04edit · approval requestedwait
05test · 14 / 14 passedok
policy: workspace writeverified

Inference makes the tokens. The harness makes them count.

The stack, bottom-up

Every layer constrains the one above it.

Hardware sets the physical budget. The model spends it. Serving schedules it. The harness gives it authority. The application makes a promise to a user.

Open the Stack Map
05

Application

The product surface: chat, IDE, API, CLI, or an automated workflow.

04

Harness

The runtime that gives a model memory, tools, permissions, and a stopping condition.

03

Serving

The scheduler and runtime that turn model weights into tokens under a latency budget.

02

Model

The weights and the computation: attention, MLPs, experts, activations.

01

Hardware

The physical budget: SMs, HBM, bandwidth, NVLink, power, and money.

Serving path Harness path Supporting layerRead bottom-up: hardware → model → serving → harness → application
The editorial stance
01

Mechanism before vocabulary.

You should be able to explain why a system is slow before you know the name of the optimization. Definitions come after the picture.

02

Numbers with error bars.

Every calculator here is an educational model. Constants are rounded, real kernels vary, and your workload is the only one that matters. Measure.

03

Trust is architecture.

A prompt is not a boundary. A benchmark is not a capacity plan. A confident answer is not evidence. Build the check, then trust the check.

Start where you are

See the whole system.

Read the primer for the mental model. Then pick a track, open a workbench, and change one variable at a time.

Type at least two characters. Search is indexed after the production build.
Lessons · labs · glossary↑↓ to browse · esc to close