youtube.nixfred.com nixfred.com

A Hackers' Guide to Language Models

Jeremy Howard's code first tour of language models for people who want to build with them today. It starts with what a language model is and the three stage recipe he helped popularize with ULMFiT, moves to using the strongest hosted models well, then to the practical engineering: the API and function calling, running open models locally with quantization, retrieval augmented generation, and fine tuning a small model on a narrow task. The through line is that you learn this by running notebooks, not by reading about it.

Published Sep 24, 2023 9 min read Added Jul 30, 2026 Open on YouTube →

At a glance

Jeremy Howard built fast.ai on the belief that you learn this material by running code, not by reading about it, and this talk is that philosophy applied to language models. It is a code first tour aimed at people who want to build something today: what a language model is and how the training recipe he helped popularize with ULMFiT became the standard, how to actually get value out of the strongest hosted models, then the engineering ladder of API use and function calling, running open models on your own hardware, retrieval, and fine tuning a small model on a narrow task.

The tone is unusually grounded. Howard spends real time on what these models cannot do and on how easy it is to fool yourself about what they can, and he is blunt that most people using them are using them badly, mainly by not iterating on the prompt and not checking the output against anything.

Everything he demonstrates runs in a notebook, and the notebooks are public, which is the point.

The deep explanation

What a language model is, and the three stage recipe

Howard starts where the field started for him. In 2018 ULMFiT showed that you could pretrain a language model on a general corpus, fine tune that model on the text of your target domain, and only then train a classifier on top, and that this three stage transfer learning approach beat training from scratch by a wide margin. That structure, general pretraining then task adaptation, is the ancestor of everything current, which he notes with the calm of someone who watched it become an industry.

Applied to modern models, the stages are pretraining on a very large corpus, instruction tuning on examples of following instructions, and then a preference stage that shapes behavior. His framing of the base objective is the useful one for builders: predicting the next token sounds trivial, but to predict well over arbitrary text you have to model an enormous amount about the world, because the text is about the world. That is the argument for why the objective produces something more general than autocomplete.

He also does the useful demystification on the units. Tokens are word fragments; the model emits a distribution over them; you sample; you feed it back. Nothing about that loop is intelligent by itself, and yet the loop is all there is.

Using the strongest model well

A large part of the talk is spent on getting real work out of hosted models, and Howard treats this as a skill rather than a formality:

He also walks through the practical economics of the API: pricing per token, rate limits, and the fact that the cost of a serious experiment is usually much lower than people expect, which removes the main reason people avoid iterating.

Function calling and building a code interpreter

The step from chat to system is function calling. You describe the functions available, the model returns a structured request to call one with arguments, your code executes it and hands back the result. Howard builds this up live, and the demonstration people remember is a small code interpreter: give the model the ability to run Python, let it write code to answer a question, execute it, and return the output.

Two things come out of this that matter more than the code:

Running open models yourself

The next rung is running models locally, which Howard treats as both practically useful and pedagogically important, because it forces you to understand memory, precision, and what a checkpoint actually is.

The pieces he covers:

Retrieval augmented generation

Rather than presenting retrieval augmented generation as a product category, Howard builds the simplest possible version and shows that it works: embed a corpus of documents with a sentence embedding model, embed the question, find the nearest documents, paste them into the prompt, ask the question again with that context attached.

The insight he wants you to take is that this is not complicated, and that most of the quality comes from the retrieval step rather than from anything clever in the prompt. If the right passage is in the context, a decent model will use it. If it is not, no amount of prompt engineering rescues the answer. That reframes retrieval work as an information retrieval problem, which has decades of existing technique behind it.

Fine tuning a small model on a narrow task

The final rung is fine tuning, and Howard picks a deliberately unglamorous example: teaching a small open model to write SQL queries against a schema. The point of the example is the shape of the result. A small model fine tuned on one narrow task can match or beat a much larger general model at that task, at a fraction of the inference cost, while remaining useless at everything else.

That is the trade every builder should understand:

ApproachCosts youWins when
Prompt the frontier modelPer call price, latency, data leaves your machineAlmost always the right first move
Add retrievalAn index to build and maintainThe answer lives in documents you have
Function callingEngineering and a sandboxThe task needs computation, data, or actions
Run an open model locallyHardware and qualityPrivacy, cost at volume, or offline use
Fine tune a small modelData collection and a training loopOne narrow task, done constantly, where cost matters

He is also clear about the sequencing. Fine tuning is the last resort, not the first, because prompting and retrieval solve most problems and require no training data. The reason to reach for it is economics or a task so specific that no prompt describes it well.

Keeping up

The closing advice is about the discipline rather than the tools. Read the papers that matter rather than the summaries of them. Run the notebook rather than reading it. And be suspicious of your own evaluation: the single most common failure Howard sees is a builder who is confident their system works because they tried it a few times on examples they chose themselves.

Key takeaways

Where this sits in the LLM Learning track

This opens the building part of the track. The earlier parts explain what the model is and how it was made; from here on the question is what you do with one. Howard's closing warning about evaluating your own system on examples you picked yourself is the exact problem the next video in the track sets out to solve, so the two are best read back to back.

Resources mentioned

About this page

This reconstruction was built from the public record of the talk rather than from its caption track, because the machine that assembled it had no network route to YouTube. The structure, the ladder of techniques, and the advice are here; the verbatim transcript, the timestamped chapter map, and pull quotes are not, and those get backfilled on the next run from a machine that can reach the source. Until then, watch it on YouTube with a notebook open.