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

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.

  1. 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, run curl -fsSL https://ollama.com/install.sh | sh, which sets up a systemd service.
  2. Pick a small model first. Run ollama run gemma3:270m to test the install. It is a tiny model, about 292 MB, and it starts fast.
  3. Run a useful model. Try ollama run qwen3:8b for a capable general model, or ollama run llama3.2:3b for a lighter one. The first run downloads the model. Later runs start in seconds.
  4. Check what is running. Use ollama list to see downloaded models and ollama ps to see which models are loaded and how much memory they use.
  5. Leave the chat. Type /bye to 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.

ModelTagDownloadFits comfortably on
Gemma 3gemma3:270m292 MBAny modern laptop
Qwen 3qwen3:0.6b523 MBAny modern laptop
Llama 3.2llama3.2:1b1.3 GB8 GB RAM
Llama 3.2llama3.2:3b2.0 GB8 GB RAM
Qwen 3qwen3:4b2.5 GB8 GB RAM
Gemma 3gemma3:4b3.3 GB8 GB RAM, vision capable
Qwen 3qwen3:8b5.2 GB16 GB RAM or 8 GB GPU
Gemma 3gemma3:12b8.1 GB16 GB RAM or 12 GB GPU
GPT-OSSgpt-oss:20b14 GB16 to 24 GB VRAM or 32 GB Mac
Gemma 3gemma3:27b17 GBHigh-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

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.