Inference 101, lesson 14
Running a model on your own machine
An open model can run on a laptop or desktop you own, and your words never have to leave it. This lesson shows how to size a model for your machine, the tools that run it, and what you trade for the privacy.
Every example below changes to fit what you pick. The businesses are made up for teaching.
The picture, one step at a time
Each box is one stage. The picture lights up as you scroll.
Running a model at home, from picking it to keeping it private
1Pick an open model
A model whose maker lets anyone download its weights: the numbers it learned in training.
2Work out its size
The number of parameters times the bytes each one is stored in.
3Check it fits
The model, plus room for the conversation, has to fit in the memory your machine can give it.
4Pick a tool
Ollama, LM Studio or llama.cpp loads the model and gives you a chat window or a local address.
5Your words stay home
With the model on your machine, your words need not go to any provider.
6What you give up
Smaller models than the biggest closed ones, slower writing, and you look after it.
Open weights, downloaded to your own machine.
Step 1 of 7
An open model can run on your desk
Lesson 5 showed three places a model can run. This lesson takes the last one: your own laptop or desktop. It only works with open models, whose makers let anyone download the weights. Do that, and the model runs on hardware you can buy and keep, and your words stay with you. This is personal AI.
Step 2 of 7
How much memory a model needs
A model's size in memory is simple to work out: the number of parameters times the bytes each one takes. Take made-up round numbers: 8 billion parameters at 2 bytes each is 16 GB. Then add room for the conversation's notes (lesson 3) and for the rest of your machine. Think of packing a suitcase. Where the picture breaks: you can sit on a suitcase to close it. If a model does not fit in memory, it either will not load or runs very slowly.
Step 3 of 7
Squeezing the model to fit
The same model can be stored in fewer bytes per parameter. Lesson 8, on quantisation, shows how, and what it costs in quality. For sizing, the sum is the same. The made-up 8-billion model at about half a byte each is about 4 GB instead of 16. That is often the difference between not fitting and fitting.
Downloaded model files often carry their size in the name. Hugging Face's GGUF docs (read 29 November 2026) say a file marked Q4_K stores about 4.5 bits per parameter, a little over half a byte.
A made-up model has 20 billion parameters, squeezed to half a byte each. About how much memory does it need, before the conversation?
Step 4 of 7
Memory speed sets the typing speed
Lesson 11 showed that each token means reading the whole model from memory. So on your own machine there is a rough ceiling. Made-up numbers again: if your memory can send 100 GB a second and the model takes 10 GB, it can write at most about 10 tokens a second, for one person. A smaller or squeezed model is less to read, so it writes faster too.
As of 29 November 2026, NVIDIA lists its DGX Spark desktop with 128 GB of memory, 273 GB a second of bandwidth, and models "up to 200 billion parameters". One data-centre H100 lists 3.35 TB a second: about twelve times faster memory.
Step 5 of 7
The tools
Three tools do most of the work. Ollama downloads a model and runs it on your computer, with a local address other apps can use. LM Studio is a desktop app for Macs, Windows and Linux that can run fully offline once a model is downloaded. llama.cpp is the engine LM Studio runs on, built to run with little set-up on all kinds of hardware. Pick one, download a small model, and try it.
As of 29 November 2026: LM Studio's docs recommend 16 GB or more of memory and say it runs models with llama.cpp, and with Apple's MLX on Apple Silicon Macs. Ollama also offers cloud models, which it says run "on Ollama's cloud service", not on your machine.
Step 6 of 7
The privacy gain, and what you give up
Run locally and your words need not leave the machine. No provider sees them, keeps them, or bills you per token. Check two things: that the model you picked runs locally and not in the tool's cloud, and that you have not shared the tool's local address across a network. The price: open models that fit at home are smaller than the biggest closed ones, they write more slowly, and you keep them updated yourself.
Step 7 of 7
What this means for you
Pick one task in answering customers where the data is private or the volume is steady but nobody is waiting. Size a small open model for your machine, install one of the tools, and run that task on it this week. Compare the answers with what you use now. If they are good enough, you have a private option that costs nothing per token.
You try a local model for answering customers and it is good but slow. What is the cheapest thing to try first?
Where should this one run?
Here are four jobs in your business. Sort each one: run it at home, pick a smaller model, or keep it on an API.
1You want help drafting replies to emails full of customers' addresses and order notes, and you would rather none of it left the shop laptop.
2You want to try a made-up 30-billion-parameter model stored at 2 bytes each (60 GB) on a laptop with 16 GB of memory.
3The trickiest complaints need the strongest model you can get, and that model is closed.
4You want 500 product descriptions sorted into categories overnight. Nobody is waiting, and you would rather not pay per token.
0 of 4 right so far, 4 to go.
The local set-up checklist
This is what you keep: the steps to run a model at home, in order, and the rule for when to try it.
The local set-up checklist
- Pick an open model and note how many parameters it has.
- Size it: parameters times bytes each. Two bytes is full size; about half a byte is a squeezed version.
- Check it fits in your machine's memory with room left for the conversation and your other apps.
- Expect speed to follow memory speed: memory sent per second, divided by model size, is a rough top speed.
- Install Ollama, LM Studio or llama.cpp, and make sure the model runs on your machine, not in the tool's cloud.
- Try it on one real task and compare the answers with what you use now.
If the data must stay with you, bring the model to the data. Start small, measure, then size up.
Next: Lesson 15: Measuring speed. How to tell how fast a set-up really is, wherever it runs.