Lesson 1 of 6

The case for small

For the first few years of the LLM era, the default architecture for any new product feature was simple: call a frontier API. That default made sense when frontier models were the only models capable of holding a coherent conversation at all. Anything smaller felt like a toy — a downgrade you'd accept only if you had no other choice.

That default stopped making sense the moment small, open-weight models became competent enough to handle a large share of real production tasks. Not because they got as smart as the frontier models — they didn't, and mostly aren't trying to — but because a huge fraction of what production AI systems actually do doesn't need frontier-model breadth. It needs a narrow, repeatable task done the same way, correctly, a million times a day, cheaply, and sometimes somewhere a network call can't reach at all.

This lesson is about recognizing that fork in the road before you're standing at it mid-incident. By the end, you'll have a framework for the question that should come before any model-selection decision: not "which model is smartest," but "does this task even need what a frontier model is selling."

Why Now

Why "bigger" stopped being the only answer

Gartner's prediction, issued in an April 2025 press release, is the number most often cited to justify a small-model strategy: by 2027, organizations will use small, task-specific AI models at least 3x more by volume than general-purpose LLMs. Treat that number carefully — it's a forward-looking analyst call, not a measured outcome. Nobody has counted the 2027 numbers yet, because it isn't 2027. The honest way to use it is as a directional signal from people whose job is watching enterprise adoption curves, not as a citation-ready fact.

What is independently measurable, right now, is the precondition that prediction depends on: a genuinely competitive open-weight ecosystem has to exist for organizations to shift volume toward it. And it does. By 2026 the open-weight landscape spans competitive model families from OpenAI, Meta, Alibaba, DeepSeek, Google, Mistral, Microsoft, NVIDIA, Ai2, and Cohere, ranging from 4B-parameter models you can run on a laptop to 1.6T-parameter mixture-of-experts systems. Hugging Face's own Spring 2026 report puts the Hub at over 2.8 million models — up from roughly 1 million not long before — and more than 13 million users, with fine-tunes and adapters of existing small models an explicitly growing share of that total.

That's the part worth internalizing before the prediction: the reason small models are having a moment isn't that someone declared it fashionable. It's that the tooling, the base models, and the ecosystem needed to actually build on them reached a threshold of usability that didn't exist two years ago. The prediction might land exactly on 3x, or it might not — but the ecosystem underneath it isn't speculative at all.

Three Constraints

Three constraints, pulling the same direction

Three separate engineering forces push teams toward small models, and the useful thing about them is that they reinforce each other instead of trading off — you rarely have to pick just one as your justification. The first is deployment target. Some products need to run somewhere a network call to a frontier API simply cannot reach: a phone with no connectivity, a factory floor, a vehicle mid-tunnel. No amount of frontier-model quality closes that gap, because the gap isn't about quality, it's about whether a network path exists at all.

The second is inference economics, and this is the one that shows up in a P&L before it shows up in an incident report. Training a model is a cost you pay once. Serving it is a cost you pay per request, forever — and at real production volume, that arithmetic changes completely depending on whether each request is a metered call against someone else's API or a request against compute you already own and have already amortized. A frontier API bills you the same whether you're prototyping or serving ten million requests a month; your own infrastructure doesn't work that way, for better and worse.

The third is data residency and compliance. Regulated industries and enterprise data-sovereignty policies increasingly require that sensitive data never leave a controlled environment — not "the vendor promises not to retain it," but "the data architecturally cannot leave." A hosted frontier API, however good its data-handling policy, cannot satisfy that requirement by definition, because satisfying it requires the data never crossing a network boundary in the first place. A small model running inside your own infrastructure can.

The catch: none of these three constraints requires a small model to be smarter than a frontier model. They require it to be present somewhere a frontier model can't be, cheap at a volume where a frontier model isn't, or contained in a way a hosted API architecturally isn't. Conflating "small" with "worse" is the single most common mistake in this decision — the axis that matters usually isn't capability at all.

Defining "Small"

What "small" actually means

"Small" isn't a marketing term with a fixed cutoff, but the working range engineers use in 2026 runs from roughly half a billion to about 14 billion parameters, with models at 3B parameters or below being the practical ceiling for on-device and edge deployment. That's a wide range — a 14B model and a 0.5B model don't behave remotely alike — but they share a design philosophy that separates them from frontier models, and that philosophy is more useful than the parameter count itself.

Large models are built for breadth and unpredictability: one model, asked to do almost anything, reasonably well. Small models are built for depth and repetition: good at what they're scoped for, run cheaply, run often. That single distinction is the thread this entire course pulls on. It's why quantization matters more for small models — every bit of precision you shed is a bigger fraction of an already-small footprint, which the next lesson covers in detail. It's why distillation specifically targets small architectures — you're compressing a large model's competence into a shape built for narrowness, not breadth. And it's why the serving stack looks completely different depending on which side of this line you're on: a laptop running llama.cpp has nothing in common, architecturally, with a GPU cluster running a high-throughput serving engine.

Once you have that vocabulary — deployment target, inference economics, data residency, and the breadth-versus-depth design split — you're equipped to ask the right first question about any new feature: does this need a model that can do almost anything, or does it need a model that does one thing well, cheaply, in the right place? The rest of this course is about answering the "how" once that first question points you toward small.

A deliberate choice, not a fallback

The habit this lesson is trying to build is a small but consequential reframe: a small model isn't what you settle for when you can't afford the frontier API. It's what you deliberately choose when the task's real constraints — where it runs, how often it runs, what data it touches — point away from a general-purpose model in the first place. Gartner's 3x-by-2027 prediction may or may not land exactly on the number, but the ecosystem precondition behind it is real and already measurable: a genuinely competitive field of small, open-weight models exists today, in a way it didn't two years ago.

What you don't yet have is the technical toolkit to act on that judgment call. Knowing you want a small model doesn't tell you how to get one that fits your memory budget, or how to package it for the runtime you'll actually deploy it on. In the next lesson, we'll get into quantization — the technique that takes a model built at full precision and compresses it down to a footprint that fits on the hardware you actually have, and the engineering judgment required to do that compression without quietly breaking the model you compressed.

Introduction
0:00
10:40