In this lesson
The machine comes in at the end of the project. The task comes first.
A lot of people send me a photo of an expensive computer and ask: "is it good for AI?". It depends on the task. In this lesson you learn to measure before you buy.
- Understand memory, bandwidth and processing
- Know what fits on a laptop and on a 24 GB card
- Size things without buying on impulse
A restaurant kitchen
Picture a kitchen. The memory is the size of the counter. The memory bandwidth is the speed of the helper who brings the ingredients from the pantry. The processing is the number of cooks.
The model is an ingredient that has to be on the counter whole. That is why memory comes first. If it does not fit, nothing else matters.
What fits where
These are practical reference points from the 2026 guides. Always check the model card.
| Machine | Memory | Model that usually fits |
|---|---|---|
| Ordinary laptop | 16 GB of RAM | About 8B |
| Desktop with a graphics card | 24 GB on the card | 27B to 30B |
| Workstation | 32 to 48 GB on the card | About 30B, with room to spare |
Macs with an Apple chip use unified memory: the processor and the graphics card share the same memory. That is why a small box can run a big model.
The back-of-the-napkin math
Add up three things:
- The size of the model. The download size on Ollama is a good approximation.
- The headroom for the context. A whole contract in the conversation takes up far more than a one-line question.
- The headroom for the system and for each person using it at the same time.
Went over the memory? Choose a smaller model, a more compressed version, or accept that it will be slow.
A law firm was going to buy a server to read contracts. First, it tested on a computer it already had, with a 24 GB card. It was slow for ten people, but it did the job for the three who read contracts. The server was not bought.
How many people at the same time?
A machine that responds well for one person may choke with five. Each person chatting at the same time needs their own context space. If the AI is going to serve the whole team, size for the peak, not for the average.
Speed: when it matters
For chatting, it is enough for the model to write faster than the person reads. For batch work, such as classifying a thousand invoices overnight, speed becomes total time. If each invoice takes a few seconds, it fits in one night. If it takes a minute, it does not. Measure on your machine, with your model. Do not trust someone else's numbers.
The boring method that works
- Define the task and the model.
- Test on the machine you already have.
- Measure quality, speed and people at the same time.
- Only then buy, knowing exactly what is missing.
If the candidate model is too big for any machine you have, you can rent a machine with a graphics card by the hour, just for the test, using sample documents and never the real ones.
What the pros know
To write each word, the model has to reread its billions of parameters. That is why, when it is writing, speed is usually limited by memory bandwidth, and not by computing power. A formula for the cap, for use by one person: tokens per second are at most equal to the bandwidth divided by the size of the model (a token is a piece of a word). A 16 GB model on memory with 160 GB per second does not go past about 10 tokens per second. It is a cap, not a forecast. But it explains why memory bandwidth weighs so much on speed.
Practice · 10 min
- Write down your computer's RAM, graphics card and free disk space.
- On ollama.com, check the download size of your two candidates.
- Do the back-of-the-napkin math and write: it works, it does not work or only with a smaller model.
Summary
- Memory defines what fits. Bandwidth defines the speed.
- 16 GB of RAM runs about 8B. A 24 GB card runs 27B to 30B.
- Back-of-the-napkin math: model, context, system and people.
- Test on the machine you already have before you buy.
Sources
Read on October 30, 2026.
- Together AI: text generation is limited by memory bandwidth; cap on tokens per second equal to the bandwidth divided by the size of the model.
Lesson quiz
Three situations to apply what you learned.
Isaque Victor free courses