Run Any Open A.I. Model on Your Own Computer, Free
Every time you chat with a cloud A.I., a request leaves your machine, a token meter starts ticking, and your prompt sits on someone else's server. None of that is required. Open-weight models can run entirely on your own laptop, for free, with one tool: Ollama.
The problem with cloud-only A.I.
Cloud APIs are great for scale, but they cost money per token, need an internet connection, and send your data off-device. For a lot of everyday use — drafting, coding help, quick Q&A, private notes — none of that trade-off is necessary. A modern laptop can run a genuinely useful open model locally, and once it's downloaded, it works offline and costs nothing per query.
Why it works
Open-weight models ship as downloadable files. Ollama packages the model weights, a runtime, and a simple CLI/API into one install. It handles the parts that used to require real ML-ops knowledge — quantization, GPU/CPU detection, memory management — behind a single command.
How to do it
- Install Ollama. Go to ollama.com and download the installer for your OS (macOS, Windows, Linux). It installs a background service plus an
ollamaCLI. - Pull and run a model. In your terminal:
ollama run llama2. The first time you run a given model name, Ollama downloads it (a few GB, depending on size). Every run after that starts almost instantly, because the weights are already on disk. - Chat. Once it loads, you get a prompt right in the terminal — type and it responds, entirely on your hardware.
- Pick a size that fits your RAM. Smaller models (7B parameters and under) run comfortably on most laptops with 8–16GB of RAM. Larger models need more memory and ideally a GPU. If a model won't load or is painfully slow, try a smaller one —
ollama run llama2:7binstead of a 70B variant, for example. - Switch anytime. Different task, different model — just run a different name (
ollama run mistral,ollama run gemma, etc.). Ollama keeps whatever you've pulled locally so switching is instant after the first download.
Where this fits
- Coding help and drafting without sending code to a third party.
- Private chat — journaling, brainstorming, anything you don't want leaving your machine.
- Offline work — no connectivity needed once the model is downloaded.
- Cost-sensitive experimentation — try prompts and workflows without a token bill while you prototype, then move to a hosted model only if you need more capability.
Pitfalls
- RAM, not just disk space, is the real constraint. A model can download fine and still be too slow or fail to load if it doesn't fit comfortably in memory alongside everything else running.
- Local models trail the largest hosted models on raw capability. For frontier reasoning or huge context windows, a cloud model may still win — local is about cost, privacy, and offline access, not always the top benchmark score.
- First run is slow because of the download — that's normal, not a bug. Subsequent runs of the same model are fast.
- Quantized models trade a little quality for a lot less size. If you see a tag like
Q4in a model name, it's a compressed version — smaller and faster, usually close enough in quality for everyday use.
Power tricks
- Ollama exposes a local HTTP API at
http://localhost:11434, so any app or script in any language can call your local model instead of a cloud endpoint — useful for building your own tools on top of it. - Ollama can hold multiple models on disk and switch between them freely; use
ollama listto see what you've already pulled. - If you'd rather have a point-and-click app instead of a terminal, LM Studio offers a GUI over the same idea — same local-first model, no CLI required.
- Under the hood, tools like Ollama and LM Studio are built on llama.cpp, the open-source inference engine that made running these models on ordinary hardware practical in the first place. If you ever want to convert or quantize your own GGUF model file, llama.cpp is where that happens.
Resources
- ollama.com — download and model library
- LM Studio — GUI alternative
- llama.cpp — the engine underneath
Building an AI feature? Yeda AI designs, audits, and ships production LLM systems.