Key takeaways
- Small open-weight models run on an ordinary laptop with 8–16 GB of memory.
- Local models keep your prompts on your device, but they are less capable than the largest cloud models.
- Tools such as Ollama download, run and serve models with a single command.
Why run AI locally?#
Cloud assistants are convenient, but every prompt leaves your device. Running a model locally means your text stays on your computer, it works offline, and there is no per-request cost. The trade-off is that the models you can run at home are smaller than the ones in large data centres.
- 1Your app or terminalSends a prompt to localhost
- 2Ollama (local server)Downloads, loads and serves the model
- 3Model file (e.g. llama3.2)Open weights, a few GB
- 4Your hardwareCPU / GPU / RAM — data never leaves the device
What you need#
| Model size | Memory (RAM/VRAM) | Good for |
|---|---|---|
| 1–3 billion parameters | 8 GB | Summaries, simple Q&A, drafts |
| 7–8 billion parameters | 16 GB | Writing help, coding assistance |
| 13 billion and more | 32 GB or a strong GPU | More nuanced reasoning |
Your first local model#
Ollama is a free, open-source tool that downloads models and runs them behind a simple command line and local API. After installing it from the official website, open a terminal and run:
ollama run llama3.2The first run downloads the model (a few gigabytes), then opens an interactive chat. Type a question and press Enter. Type /bye to exit.
Talking to the model from code#
While Ollama is running, it also serves an HTTP API on your machine at port 11434. Any program on your computer can send it a prompt:
curl http://localhost:11434/api/generate -d '{
"model": "llama3.2",
"prompt": "Explain what a CPU does in one sentence.",
"stream": false
}'Know the limits#
- Smaller models make more factual mistakes — verify anything important.
- Model files are large; check your free disk space first.
- Only download models from sources you trust, and read their licences.
Source and further reading
- Ollama — official website— Ollama
- Ollama API reference— GitHub
- llama.cpp— GitHub



