
This is the hands-on companion to running AI on your own machine: what to install, which model to pick, how to talk to it from your own code, and what to do when it will not start. Everything here runs on a laptop, with no cloud account and no per-token bill.
What You Need Before You Start
Memory is the constraint that matters, not processor speed. As a working rule, a quantised model needs roughly one gigabyte of RAM per billion parameters, plus additional room for the context window and the operating system.
An eight gigabyte machine handles a seven or eight billion parameter model comfortably. Sixteen gigabytes opens up the mid-teens. Thirty-two gigabytes is genuinely capable. A dedicated GPU helps speed, not capability, and a model that fits in memory will run acceptably on a modern processor.
Installing Ollama

On Linux and macOS installation is a shell script, and on Windows it is an installer. Either way a background service starts and stays running, which is worth knowing because most problems people hit trace back to that service not being up.
Verify installation by asking the command line client for its version. If that returns a number, the service is running and you are ready to pull a model.
Your First Model

Pulling a model downloads its weights to a local directory. Sizes range from around two gigabytes for a small model to tens of gigabytes for a large one, so the first download is the slowest part of the whole process.
Once downloaded, running a model opens an interactive session in your terminal. You can talk to it immediately, with no account, no key and no network connection.
Choosing a Model That Fits Your RAM

Match the model to the machine rather than chasing benchmarks. A well-quantised small model that fits entirely in memory will outperform a larger model that has to swap to disk, every time.
Start smaller than you think you need. Raise the size only when you can name a task the current model is failing, because the failure is usually about reasoning depth rather than raw size.
Talking to the API

The reason Ollama is worth using over a bespoke setup is that it exposes a local HTTP API. Anything on your machine can send it a model name and a list of messages and get a response back.
It is also compatible with the common chat completion format, which means existing tools can often be pointed at it by changing a base URL. That compatibility is what turns a local model from a curiosity into something you can drop into real work.
Giving It Your Own Documents

Out of the box a local model knows nothing about your files and has no internet access. To make it useful on your own material you need a retrieval layer of your own: split your documents into chunks, store them somewhere searchable, and paste the relevant chunks into the prompt.
This is genuinely simple to build for a modest document set, and it is the difference between a general chatbot and something that answers questions about your own paperwork.
Running Ollama on a Server or an Old Laptop

A machine that is no longer good enough to be a daily driver is often good enough to be a local model server. Point the service at the network, and every other device in the office can use it, which is usually a better arrangement than running a separate copy on each laptop.
In places where power and bandwidth are unpredictable, this matters more than raw performance. One machine that stays on is a better arrangement than five laptops that each need their own multi-gigabyte download.
Troubleshooting Common Problems
Three failures cover most of it. If the client cannot connect, the background service is not running. If a model starts and then hangs, it does not fit in available memory and is paging to disk, so choose a smaller quantisation. If output is fluent but wrong, the model is too small for the reasoning the task requires, and no amount of prompt tuning will fix that.
Run locally for privacy, for cost, and for the days when the connection is down. Keep a frontier model for the tasks that genuinely need one. Knowing which is which is most of the skill.
Comments
Post a Comment