Deploying LLMs Locally With Ollama: Models, Memory and Everyday Use
Run a large language model on your own computer with Ollama: two commands, no cloud, prompts stay private. Covers install, memory sizing and the local API.
By Galactic News Editorial · Published 2026-11-26T07:29:42+00:00 · Updated 2026-11-26T07:29:42+00:00
Deploying LLMs Locally With Ollama: Models, Memory and Everyday Use
You can run a large language model on your own computer with two commands. Install Ollama, then run a model. Your prompts stay on your machine, the model works offline, and nothing you type leaves the device. The catch is memory. A model that does not fit in memory runs at disk speed or does not run at all.
This tutorial covers the install, how to size a model to your hardware, and how to use a local model in everyday work and in your own code.
Installing Ollama and Running Your First Model
Ollama is a program that downloads model weights, loads them into memory and serves them over a local HTTP API on port 11434. It runs on macOS, Windows and Linux.
- Install Ollama. On macOS, download the app from ollama.com or run
brew install ollama. On Windows, download the installer from ollama.com. On Linux, runcurl -fsSL https://ollama.com/install.sh | sh, which sets up a systemd service. - Pick a small model first. Run
ollama run gemma3:270mto test the install. It is a tiny model, about 292 MB, and it starts fast. - Run a useful model. Try
ollama run qwen3:8bfor a capable general model, orollama run llama3.2:3bfor a lighter one. The first run downloads the model. Later runs start in seconds. - Check what is running. Use
ollama listto see downloaded models andollama psto see which models are loaded and how much memory they use. - Leave the chat. Type
/byeto exit. The model stays loaded for a while, then unloads when idle.
Ollama's own FAQ is explicit: when you run locally, Ollama does not see your prompts or data. That is the main reason to run models locally. Private documents, code and drafts never leave the machine.
Sizing the Model to Your Memory
Memory is the constraint that decides everything. A model's download size is the first number to look at. A loaded model also carries its key-value cache and working buffers, so it occupies roughly 1.1 to 1.3 times its file size at the default context window. The working rule is to budget about 1.2 times the download size, in memory you actually have free. A browser with thirty tabs open can be the reason a model refuses to load.
| Model | Tag | Download | Fits comfortably on |
|---|---|---|---|
| Gemma 3 | gemma3:270m | 292 MB | Any modern laptop |
| Qwen 3 | qwen3:0.6b | 523 MB | Any modern laptop |
| Llama 3.2 | llama3.2:1b | 1.3 GB | 8 GB RAM |
| Llama 3.2 | llama3.2:3b | 2.0 GB | 8 GB RAM |
| Qwen 3 | qwen3:4b | 2.5 GB | 8 GB RAM |
| Gemma 3 | gemma3:4b | 3.3 GB | 8 GB RAM, vision capable |
| Qwen 3 | qwen3:8b | 5.2 GB | 16 GB RAM or 8 GB GPU |
| Gemma 3 | gemma3:12b | 8.1 GB | 16 GB RAM or 12 GB GPU |
| GPT-OSS | gpt-oss:20b | 14 GB | 16 to 24 GB VRAM or 32 GB Mac |
| Gemma 3 | gemma3:27b | 17 GB | High-end machine, 64 GB Mac |
Ollama models are usually quantized to around 4 bits by default. Quantization stores each parameter with fewer bits, trading a little accuracy for a lot of memory. A rough rule is that a 4-bit model needs a bit more than half its parameter count in gigabytes, plus extra for the context window. A 7B model wants roughly 5 to 6 GB, a 14B model around 9 to 10 GB, and a 30B model 20 GB or more.
Longer context windows need more memory. If you plan to feed long documents to the model, move one tier up. And remember that downloading a model says nothing about whether it will run. ollama pull only checks disk space. Running needs memory.
Deploying LLMs Locally With Ollama in Everyday Use
Once a model runs, the everyday uses are straightforward. Summarise a long document without uploading it. Draft and rewrite text offline. Extract structured data from files. Answer questions about your own notes. All of this works with no internet connection once the model is downloaded.
For writing and coding help, connect a desktop app. Ollama's quickstart shows how to connect Claude or ChatGPT desktop apps on macOS through Settings, Apps. For coding agents, run your agent from your project directory and Ollama can serve the model it uses. Check your agent's documentation for the local model setting.
Customise a model with a Modelfile when you want a fixed system prompt or a different personality. Create a file named Modelfile with a FROM line naming the base model and a SYSTEM line with your instruction. Then run ollama create mymodel -f ./Modelfile and ollama run mymodel. You can also import GGUF models the same way.
Using the API From Your Own Code
Ollama serves a REST API on http://localhost:11434. Send a chat request with curl:
curl http://localhost:11434/api/chat -d '{"model": "qwen3:8b", "messages": [{"role": "user", "content": "Summarise this report in three bullet points."}]}'Official client libraries exist for Python and JavaScript. Install the Python library with pip install ollama, then call ollama.chat() with a model name and a message list. The same API supports streaming, tool calling and embeddings, so a local model can power a small app or a retrieval pipeline without any cloud account.
One practical tip: the first request to a model pays a load cost of several seconds. Later requests are fast. Time a second request, not the first, when you judge speed.
Common Problems and Fixes
- Model runs very slowly. It probably does not fit in GPU memory and is spilling into system RAM. Check
ollama psfor where it is running. Drop to a smaller model or close other apps. - Model will not load. Check free memory, not total memory. Close the browser or pick a smaller tag.
- Out of disk space. Models are large and they add up. Run
ollama rm modelnameto remove ones you no longer use. - Slow on CPU only. Small models in the 1B to 4B range are usable on a modern laptop with 8 to 16 GB of RAM. Larger models on CPU only are slow enough to be impractical for interactive use.
- Server not responding. On Linux, the service listens on 127.0.0.1:11434. Start it with
ollama serveif it is not running.
Bottom Line
Running a model locally is a memory problem before it is anything else. Size the model to the memory you actually have free, start small, and grow only when the small model is too weak for the job. For private documents and offline work, a 4B or 8B model on a normal laptop is already useful. For heavier work, a bigger model on a machine with more memory is the honest answer.