Ollama is a free, open-source tool that runs AI language models on your own computer. You download a model once, then chat with it in the terminal or connect apps to it through a local API, with no cloud account and no per-message cost. Your prompts never leave the machine.
We ran Ollama 0.40.18 on an 8-core Linux machine with no graphics card and tested three models. Below are the real speeds, memory use and answers, plus an install snag and its fix.
What Ollama is
Large language models normally run in a company’s data centre: you type into ChatGPT or Claude, and the work happens on their servers. Ollama flips that. It downloads an open model, such as Llama, Qwen, Gemma or Mistral, and runs it locally. For background on how these models work, see our explainer on generative AI.
| Question | Answer |
|---|---|
| Price | Free and open source |
| Runs on | macOS, Windows and Linux |
| Needs a GPU? | No, but a GPU or Apple Silicon makes it much faster |
| Internet needed? | Only to download models; chatting works offline |
| Models | Llama, Qwen, Gemma, Mistral, DeepSeek and many more, plus any GGUF file |
| How apps connect | A local API on port 11434, including an OpenAI-compatible endpoint |
Under the hood, Ollama is a friendly wrapper around llama.cpp, the open-source engine that runs compressed models efficiently on ordinary hardware. Ollama adds the parts people actually want: one-command model downloads, a model library, a chat prompt, automatic memory management and an API that apps can call.
What we tested
We wanted numbers a reader with a normal computer could use, so we deliberately tested without a GPU.
| Item | What we used |
|---|---|
| Ollama version | 0.40.18, Linux release |
| Processor | 8-core Intel Xeon virtual CPU |
| Memory | 15.6 GB |
| Graphics card | None; CPU only |
| Models | Llama 3.2 1B, Llama 3.2 3B and Qwen 2.5 7B, all Q4_K_M |
| Date | 24 November |
We gave each model the same four prompts: a factual question, a small maths problem, a short coding task and a question about Karnataka. We measured generation speed in tokens per second, loading time, memory use and whether the answers were right.
Our results: speed, memory and answer quality
| Model | File size | Memory in use | Load time | Generation speed | Maths answer |
|---|---|---|---|---|---|
| Llama 3.2 1B | 0.8 GB | 1.2 GB | 1.6 s | 28 to 34 tokens/s | Wrong ($8.04) |
| Llama 3.2 3B | 2.0 GB | 2.8 to 2.9 GB | 4.9 s | 12 to 13 tokens/s | Right ($8), muddled working |
| Qwen 2.5 7B | 4.7 GB | 4.9 to 5.2 GB | 6.4 s | 5 to 6 tokens/s | Right, with correct working |
A token is roughly three-quarters of a word. For reading along comfortably, around 10 tokens per second feels fine; below 5, you’ll wait for longer answers.
What the numbers mean
- The 1B model is fast but unreliable. It answered in a couple of seconds and used about 1.2 GB of memory, but it got the maths wrong and invented a detail about Bengaluru.
- The 3B model is the sweet spot for laptops without a GPU. About 12 tokens per second is comfortable reading speed, and it needed under 3 GB.
- The 7B model gave the best answers but felt slow. At 5 to 6 tokens per second on CPU alone, a 100-token answer took over 20 seconds. With a GPU or an Apple Silicon Mac, the same model runs several times faster.
- Loading is a one-time cost. The first prompt included 1.6 to 6.4 seconds of loading. Ollama keeps the model in memory for five minutes by default, so follow-up prompts start instantly.
What the answers looked like
| Prompt | 1B | 3B | 7B |
|---|---|---|---|
| What is a VPN kill switch? | Correct | Correct | Correct and concise |
| 12 pens at 3 for $2 | $8.04 after rounding each pen to $0.67 | $8, but showed (2/3) x 4 as the working | $8, with 12 x 2/3 worked correctly |
| Python word-count function | Correct | Correct | Correct |
| Capital of Karnataka | Bengaluru, but called Holi one of the city’s famous festivals | Bengaluru, but said the city is famous for coffee plantations | Said Bangalore was “formerly known as Bengaluru”, which is backwards |
The pattern matters more than any single answer. Small local models are fluent and confident, and they make factual slips that sound plausible. Use them for drafting, summarising, coding help and private documents, and check facts the way you would with any AI tool.

How to install Ollama
Ollama runs on macOS, Windows and Linux.
The steps at a glance
-
Step 1 of 5
Download Ollama
Get the installer for macOS or Windows from the official site, or use the install script or release archive on Linux.
-
Step 2 of 5
Start it
The desktop apps start the background service automatically. On Linux, run ollama serve if it isn’t running.
-
Step 3 of 5
Run a first model
Type ollama run llama3.2 in a terminal. It downloads the model, about 2 GB, and opens a chat.
-
Step 4 of 5
Check memory use
Run ollama ps in another terminal to see how much memory the model uses.
-
Step 5 of 5
Try a bigger or smaller model
Move up or down in size until speed and quality suit you.
Mac, Windows and Linux differences
- Mac: Ollama installs as an app with a menu bar icon. On Apple Silicon (M-series chips), it uses the GPU through unified memory, so a Mac with 16 GB can run 7B to 8B models far faster than our CPU-only test.
- Windows: A standard installer sets up the background service and the
ollamacommand. It uses NVIDIA and AMD graphics cards when present and falls back to the CPU otherwise. - Linux: The official script installs Ollama as a system service, which needs administrator rights. If you can’t or don’t want to use it, download the release archive and run the binary from your own folder, which is what we did. The archive is large, about 1.6 GB compressed, because it bundles GPU libraries.
The install snag we hit, and the fix
On our test machine, the usual ollama pull llama3.2:3b failed with this error:
Error: max retries exceeded: Get "https://...r2.cloudflarestorage.com/ollama/docker/registry/v2/blobs/...":
redirect target not allowed: ...r2.cloudflarestorage.com resolves to non-public 198.18.0.1
The cause was our machine’s network, which routes traffic through a gateway that answers DNS with a private address. Ollama refuses to follow a download redirect to a private address, which is a sensible security check. You might see the same error behind some corporate proxies, VPNs or filtering DNS services.
The fix is to download a model file yourself and import it. Ollama can build a model from any GGUF file, the standard format for compressed models, which most models on Hugging Face offer:
# 1. download a GGUF file (Llama 3.2 3B, Q4_K_M, about 2 GB)
curl -L -o llama-3.2-3b-q4_k_m.gguf \
https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf
# 2. describe the model
printf 'FROM ./llama-3.2-3b-q4_k_m.gguf\nPARAMETER temperature 0.2\n' > Modelfile
# 3. build and run it
ollama create llama3.2-3b-local -f Modelfile
ollama run llama3.2-3b-local
Creating the model took 6 seconds, and Ollama read the chat template from the file automatically. After that, it behaved exactly like a pulled model.
How to use Ollama
In the terminal
Run ollama run with a model name to chat. Type /bye to exit. These are the commands you’ll use most:
| Command | What it does |
|---|---|
| ollama run llama3.2 | Downloads the model if needed and starts a chat |
| ollama pull qwen2.5:7b | Downloads a model without starting it |
| ollama list | Shows downloaded models and their sizes |
| ollama ps | Shows loaded models and memory use |
| ollama stop llama3.2 | Unloads a model to free memory |
| ollama rm llama3.2 | Deletes a downloaded model |
| ollama create name -f Modelfile | Builds a model from a GGUF file or custom settings |
| ollama show llama3.2 | Shows a model’s size, context length and settings |
Through the API
Ollama runs a local server on port 11434. Any app or script on your computer can send it prompts, which is how chat apps, coding assistants and automation tools connect.
curl http://127.0.0.1:11434/api/generate -d '{
"model": "llama3.2-3b-local",
"prompt": "In two sentences, what is a VPN kill switch?",
"stream": false
}'
# OpenAI-compatible endpoint
curl http://127.0.0.1:11434/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "llama3.2-3b-local",
"messages": [{"role": "user", "content": "Hello"}]
}'
It also offers an OpenAI-compatible endpoint, so tools built for the OpenAI API can point at Ollama instead by changing the base URL. We tested it: a request to /v1/chat/completions answered correctly and reported token usage like the real thing.
With other apps
Because of that API, many apps can use Ollama as their AI engine: chat interfaces such as Open WebUI, code editors, note-taking apps and automation tools. Our tutorial on building a RAG chatbot on your own docs in n8n shows the kind of workflow a local model can power, and you can swap a cloud model for Ollama in tools that support it.
Customising a model with a Modelfile
A Modelfile is a short recipe that tells Ollama how to build a model: which weights to use, default settings and a system prompt. We used one to import our model files, and the same format lets you make a specialised assistant in a few lines.
FROM llama3.2-3b-local
SYSTEM """You help write SEO titles and meta descriptions.
Keep titles under 60 characters and descriptions under 155.
Use British English."""
PARAMETER temperature 0.2
PARAMETER num_ctx 8192
Three settings are worth knowing:
- SYSTEM sets standing instructions, such as tone, language or format. It’s applied to every chat with that model.
- num_ctx sets the context window: how much text the model can consider at once. Ollama’s default in our test was 4,096 tokens, about 3,000 words. Raising it lets the model handle longer documents but uses more memory.
- temperature controls randomness. Lower values, such as 0.2, give steadier, more repeatable answers; we used 0.2 for every test.
Build it with ollama create seo-helper -f Modelfile, then run it like any other model. The original model file isn’t copied, so custom versions cost almost no extra disk space.
Practical uses for a local model
Based on how our test models behaved, these are the jobs we’d give a local model, and the ones we wouldn’t:
| Good fit | Why | Poor fit | Why |
|---|---|---|---|
| Summarising private documents | Nothing leaves your machine | Fact lookups | Small models invent details |
| Drafting emails and outlines | Fluency is strong even at 3B | Maths and pricing | Our 1B model got simple maths wrong |
| Coding help on small functions | All three models got our code task right | Legal, medical or financial advice | Errors sound confident |
| Bulk classification and tagging | No per-request cost | Long reasoning chains | Larger cloud models are far stronger |
| Offline use while travelling | Works with no connection | Anything needing current information | Models only know their training data |
Local models also suit agent experiments, where an AI calls tools in a loop and racks up thousands of requests. Our explainer on AI agents covers how those loops work, and our guide to scraping websites for LLMs shows how to turn pages into clean text a local model can read.
What it costs to run Ollama
Ollama and the models are free, so the costs are hardware and electricity.
| Cost | What to expect |
|---|---|
| Software and models | Free |
| Hardware you already own | Fine for 1B to 7B models with 8 to 16 GB of memory |
| Upgrades for bigger models | More RAM or a GPU with more video memory |
| Electricity | A CPU or GPU under load draws noticeably more power while generating |
| Renting instead | GPU cloud services bill by the hour while the machine runs |
For a light user, a local model rarely saves money over a $20 subscription, because the cloud model is better and the hardware may need an upgrade. The economics flip for heavy, repetitive work: classifying thousands of emails or summarising a large archive costs nothing extra once the model runs locally.
Sharing Ollama on your network
By default, Ollama only accepts connections from the same computer. To use it from another device, such as a laptop calling a desktop with a better GPU, set OLLAMA_HOST=0.0.0.0 before starting the server so it listens on your network.
Do that only on a network you trust. Ollama’s API has no password, so anyone who can reach port 11434 can use your models and your hardware. For access from outside your home or office, put it behind a VPN or a reverse proxy with authentication rather than opening the port to the internet.
Which model should you run?
The right model depends almost entirely on your memory. As a rule of thumb from our tests, a model needs about its file size plus 0.5 to 1 GB of working memory.
| Your memory | Model size to try | Examples | What to expect |
|---|---|---|---|
| 8 GB | 1B to 3B | Llama 3.2 1B or 3B, Gemma small models | Quick drafting and summaries; check facts |
| 16 GB | 3B to 8B | Llama 3.2 3B, Qwen 2.5 7B, Llama 3.1 8B | Good everyday quality; 7B is slow on CPU only |
| 32 GB | Up to about 14B | Qwen 2.5 14B and similar | Noticeably better reasoning; a GPU helps a lot |
| 64 GB or more | 30B and larger | Larger Qwen, Llama and Mistral models | Close to older cloud models for many tasks |
Memory is the hard limit; speed depends on your processor. On a Mac with Apple Silicon, Ollama uses the GPU automatically and runs much faster than our CPU-only numbers. On a PC, an NVIDIA or AMD graphics card with enough video memory makes the biggest difference.
Popular open model families
| Family | Made by | Known for |
|---|---|---|
| Llama | Meta | The most widely supported open models, from 1B upwards |
| Qwen | Alibaba | Strong reasoning, coding and multilingual answers for the size |
| Gemma | Efficient small models that run well on laptops | |
| Mistral | Mistral AI | Fast, capable models with permissive licences on some versions |
| DeepSeek | DeepSeek | Reasoning-focused models; small distilled versions run locally |
| Phi | Microsoft | Very small models tuned for reasoning on limited hardware |
Model names follow a pattern: the family, a version and the size, such as qwen2.5:7b. Sizes in the billions of parameters are a rough guide to capability and memory need. Newer, smaller models often beat older, larger ones, so don’t judge by size alone.
Quantization, briefly
Model files come in compressed versions marked with codes like Q4_K_M or Q8_0. The number is roughly the bits per weight: lower means smaller and faster, with some quality loss. Q4_K_M, which we used for every test, is the common default because it keeps most of the quality at about a quarter of the original size.
Ollama vs LM Studio vs llama.cpp
| Ollama | LM Studio | llama.cpp | |
|---|---|---|---|
| Interface | Terminal plus a local API | Desktop app with chat window | Command line and a server |
| Ease of setup | Easy | Easiest | Technical |
| Model downloads | Ollama library or any GGUF file | Built-in Hugging Face browser | Download files yourself |
| API for other apps | Yes, including OpenAI-compatible | Yes, including OpenAI-compatible | Yes, via llama-server |
| Runs as a background service | Yes | Optional | Manual |
| Price | Free | Free | Free |
| Best for | Developers and app integrations | Beginners who want a GUI | Full control and tinkering |
We didn’t test LM Studio on this machine because it’s a desktop app and our test box has no screen session for it. We did run llama.cpp’s own server, which ships inside Ollama, on the same 3B model file: it generated 12.0 tokens per second against Ollama’s 12.3. Ollama adds convenience, not overhead.
The practical choice: pick LM Studio if you want a polished app with a model browser and no terminal. Pick Ollama if you want a background service that other apps and scripts can use. Use llama.cpp directly only if you need fine control over every setting.

Ollama vs cloud AI: when local makes sense
| Local with Ollama | Cloud AI such as ChatGPT | |
|---|---|---|
| Privacy | Prompts stay on your machine | Sent to the provider |
| Cost | Free after the hardware | Subscription or per-token billing |
| Offline use | Yes | No |
| Answer quality | Good on small tasks; more mistakes | Best available |
| Speed | Depends on your hardware | Fast on any device |
| Extras | Whatever you connect | Web search, images, voice and more |
Local models win on privacy, offline use and cost at volume. Cloud models win on raw quality, speed without special hardware and features such as web search. Many people use both: a local model for private documents and quick tasks, a cloud model for hard problems.
If you need a powerful open model but don’t have the hardware, renting a GPU by the hour is the middle ground. Our Runpod review covers one option, and Runpod lets you run Ollama on a rented GPU and pay only while it’s on.
Troubleshooting
| Problem | Likely cause | Fix |
|---|---|---|
| redirect target not allowed … resolves to non-public | Proxy, VPN or filtering DNS on your network | Download the GGUF file yourself and use ollama create |
| Very slow answers | Model too big for your hardware, or running on CPU | Try a smaller model or a lower quantization |
| Out of memory or the model won’t load | Not enough RAM or video memory | Close other apps, stop loaded models, use a smaller model |
| ollama ps shows a GPU share but you have no GPU | Display quirk; the server log shows the real device | Check the server log’s inference compute line |
| Apps can’t connect | Ollama isn’t running, or it’s on another port | Start ollama serve and check port 11434 |
| Answers lose track of long documents | Default context window is small | Raise the context length in a Modelfile, memory permitting |
Is Ollama worth trying?
Yes. It’s free, takes minutes to set up, and even a laptop without a graphics card can run a useful 3B model at reading speed. Start with a small model, see whether it handles your tasks, and move up in size only if your memory allows.
Just don’t treat a small local model as a source of facts. In our tests, every model made at least one confident mistake. Use local AI where privacy and cost matter most, and check anything important.
Heads-up: our Runpod link is an affiliate link. If you sign up through it, DroidCrunch may earn a commission at no extra cost to you. Ollama is free.
Is Ollama safe to use?
Ollama itself is open source and widely used, and by default its API only listens on your own computer. Be careful about exposing port 11434 to a network, since anyone who can reach it can use your models. Download models from well-known publishers.
Does Ollama send my data anywhere?
Your prompts and answers stay on your computer when you use local models. Ollama contacts the internet to download models and check for updates. It also offers optional cloud models, which do run remotely, so check which kind you’ve selected.
Can Ollama run on a phone?
Not officially. Ollama targets macOS, Windows and Linux. Some Android users run it through terminal apps, but phones lack the memory for anything beyond tiny models. A phone app connecting to Ollama on your computer over your home network is more practical.
Can I use Ollama for commercial work?
Ollama is MIT-licensed, so the software is fine for commercial use. Each model has its own licence, though. Llama, Qwen, Gemma and Mistral models have different terms, so read the licence of any model you build a product on.
How much disk space does Ollama need?
The app itself takes a few gigabytes, mostly for GPU libraries. Each model adds roughly its file size: about 0.8 GB for a 1B model, 2 GB for 3B and 4.7 GB for 7B at the common Q4_K_M compression. Remove models you don’t use with ollama rm.
Can Ollama read my PDFs and documents?
Not on its own. Ollama runs the model; reading documents needs an app on top, such as Open WebUI or a retrieval workflow that feeds relevant passages to the model. Our n8n RAG tutorial shows one way to build that.
Is Ollama better than ChatGPT?
For answer quality, no. Cloud models are larger and more accurate. Ollama is better when privacy, offline access or cost matter more than peak quality, such as summarising private files or running thousands of small tasks without a bill.



