
How attention works: a weighted lookup
Compute one attention step by hand, then follow the idea from 2013 to Gemma 4 and see what changed in the lookup, and why.

Worked examples and arguments about AI systems: how they work, implementation choices, evaluation, costs, failures and what they change about organizations.
Build a workflow around your coding agent. The dark software factory workshop connects the explanations to one runnable application, acceptance checks and a release decision.
Archive
81 articles, newest first.
1–12 of 81 articles
Newest first
Compute one attention step by hand, then follow the idea from 2013 to Gemma 4 and see what changed in the lookup, and why.

A launch table shows 66.4% against 55.8%. Rebuild the footnote's standard error in Python, then see why counting trials as independent can overstate a lead.

In a self-improving loop, a question writer and a solver can agree on a wrong answer and both get rewarded. Define false agreement, then size the audit.

A student learns from a teacher on its own samples. Derive why reverse KL picks one mode, then see in Python how an unused stop token lengthens its answers.

A terminal agent can sample several commands and check them before running one. A short model shows why the check, not the sample count, sets what that buys.

A scaling law turns a few cheap runs into a prediction for an expensive one. Fit a power law with a floor, then see where the fitted line stops being reliable.

A convolution is a linear map with a few numbers repeated along its diagonals. Derive it on a line, then a picture, and see what a first layer learned.

That contrast was the most interesting part of the class. A small model struggled to decipher a short sentence that a Spanish speaker could. A stronger model handled a visually dense page that previously might have required a specialized extraction workflow.

Implement reply-only SFT and DPO on a small language model. Read the T4 measurements, derive the preference loss and distinguish a better margin from an established accuracy gain.

Build a small RL environment in Python: a task generator, a verifier and two policies. Then show a loose verifier paying a policy that does no work, and test the verifier with hostile inputs.

Agents lose time on tools built for people: prompts, one exit code for everything, prose output and polling. Build a small CLI that fixes each one, and check it the way an agent will.

Judge a month of agent work from every attempt, not only the accepted ones: fix the denominator, compare within task families, put error bars on each rate and keep unresolved jobs in the ledger.
Learn
Save your progress with a free account.
Checking sign-in…
Save your progress with a free account.
Pick up where you left off.
Continue learning at my deskCookie duty
The one he did not eat is a measurement cookie. Say yes and the site loads Google Analytics (GA4), which stores an identifier in your browser and lets us count which lessons get read.
Change your mind any time with Privacy choices in the footer. Read the Privacy Policy
Optional · newsletter
That is saved and settled. Separately, and this is marketing rather than measurement: Rod writes a weekly email — one lesson, one field note — sent through Kit. It has nothing to do with cookies, and skipping it costs you nothing.
We will send a confirmation email. Click the link in it and the next lesson finds you.