Skip to content
MizanStack

Ollama on a normal laptop: what runs, what crawls, and when the cloud wins

A 1 to 4 GB model can chat on an ordinary laptop with no account and no per-message fee, but a coding agent wants a context of at least 64,000 tokens, and a laptop starts at 4,096. Below you will find which model sizes fit in 8 to 16 GB, how to read the one column that shows whether it is fast enough, and the point where a cloud model is the saner choice. Numbers come from the official pages, checked on 6 November 2026.

Local is free, cloud is not: what you actually pay

Ollama is a program that downloads open AI models and runs them on your machine. Your prompts stay on the laptop. The official FAQ says: "Ollama runs locally. We don't see your prompts or data when you run locally."

  • Free: running models on your own hardware. The pricing page (opens in a new tab) says this is unlimited. You pay nothing per message, but you pay in electricity, disk space and waiting time.
  • Not part of the local deal: Ollama also sells cloud models that run on its servers. The pricing page lists a $0 "pay as you go" plan where cloud usage is billed per token, plus paid plans. We did not find a free allowance of cloud credits on the pages we read, so do not count on one.
  • Prices and plans change often. Treat every number on the pricing page as something to re-check before you rely on it.

Will it fit? Hardware by model size

A model has to sit in memory while it answers. On a Mac that is the unified memory. On a PC it is the graphics card memory (VRAM), or system RAM if there is no supported GPU, which is slower. The download size is a good first filter, because the model can never be smaller in memory than on disk. Our rule of thumb: leave several gigabytes free for Windows or macOS and for the conversation itself.

Download sizes listed on Ollama's library pages today (the range covers the variants of one tag):

  • qwen3.5:0.8b: 1.2 to 1.3 GB. qwen3.5:2b: 2.7 to 3.1 GB. qwen3.5:4b: 3.3 to 4.0 GB. qwen3.5:9b: 6.6 to 7.6 GB.
  • gemma4:e2b: 4.6 to 7.5 GB. gemma4:e4b: 6.6 to 9.5 GB. gemma4:12b: 7.7 to 8.0 GB.
  • gemma4:26b: 16 to 19 GB. gemma4:31b: 19 to 20 GB. qwen3.5:27b: 17 to 20 GB. qwen3.5:35b: 22 GB.
  • qwen3.5:122b: 81 GB.

What that means for your laptop

  • 8 GB laptop: stay with the small tags (up to about 4 GB on disk). Ollama's own quickstart example, gemma4:e2b, downloads about 7.2 GB and the page recommends 8 GB of available VRAM or unified memory, so on an 8 GB machine that is already tight.
  • 16 GB laptop: the 7 to 9 GB tags (qwen3.5:9b, gemma4:e4b, gemma4:12b) are realistic if you close heavy apps. The tags of 16 GB and up (gemma4:26b, qwen3.5:27b) are not a fit, since they would take all of your memory.
  • Anything of 16 GB or more is for a machine with a big GPU or a lot of unified memory, not a normal laptop.
  • No supported GPU? Ollama falls back to the CPU. It works, but expect slow replies. Check your GPU against the official support list (opens in a new tab).

Context also costs memory. Below 24 GiB of VRAM, Ollama defaults to a 4k-token context (see the context-length page (opens in a new tab)). A longer context needs more memory on top of the model.

Install Ollama and run gemma4:e2b

  1. Install Ollama. On macOS or Linux, run this in a terminal (or download the app from ollama.com/download (opens in a new tab)):

    curl -fsSL https://ollama.com/install.sh | sh
  2. On Windows, run this in PowerShell (the installer file is also on the download page):

    irm https://ollama.com/install.ps1 | iex
  3. Run a small model. The first time, it downloads the model, then opens a chat. Type /bye to leave.

    ollama run gemma4:e2b
  4. To download without chatting, use pull:

    ollama pull gemma4:e2b

Housekeeping commands

List what you have downloaded:

ollama ls

See what is loaded right now and whether it runs on the GPU:

ollama ps

Unload a model from memory, or delete it from disk to get the space back:

ollama stop gemma4:e2b
ollama rm gemma4:e2b

By default a model stays in memory for 5 minutes after the last answer, then unloads. Models are stored in ~/.ollama/models on macOS, and in C:\Users\%username%\.ollama\models on Windows.

Is it fast enough? Read the Processor column

Run ollama ps while a model is loaded. The PROCESSOR column tells you the truth: 100% GPU means the model is fully on the GPU, 100% CPU means it sits in system memory, and something like 48%/52% CPU/GPU means it is split. A split or CPU-only model is the usual reason a laptop feels slow. The docs advise avoiding CPU offloading for best performance.

If you see a split, choose a smaller tag instead of fighting it. A small model that answers quickly is more useful than a large one that makes you wait a minute for each reply.

Pointing Claude Code and OpenCode at Ollama

Ollama can start supported coding tools for you. Run this in your project folder and pick a tool from the list:

ollama launch

The integrations page lists Claude Code, OpenCode, a VS Code extension and others. For Claude Code directly:

ollama launch claude

Or set it up by hand for a local model. These are the variables the official Claude Code page gives:

export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export ANTHROPIC_BASE_URL=http://localhost:11434

Pull the model first (it is about 7 GB), then start Claude Code with it:

ollama pull qwen3.5:9b
claude --model qwen3.5:9b

The catch: coding agents need a big context

  • The docs say tasks like agents and coding tools "should be set to at least 64000 tokens" of context. The default for a laptop is 4k.
  • The Claude Code page says local models need tool support and a context window of 64k or higher.
  • You can raise it, at the cost of memory. Quit the Ollama app first, or the port will already be in use:
OLLAMA_CONTEXT_LENGTH=64000 ollama serve

On 8 GB this is usually not realistic with a model that is good enough to edit code. On 16 GB it can work with a 4B to 9B model for small tasks, but test it with ollama ps and keep your expectations modest. This is our estimate from the sizes above, not an official figure, and we did not time it: speed depends on your exact chip.

When cloud beats local

  • You want a large model for a hard task. Models in the 16 GB to 81 GB range will not run on a normal laptop, but Ollama's cloud models, or another provider's free tier, can (see our guides to Gemini and OpenRouter).
  • You use a coding agent on a real project. It needs a long context, and long context is exactly what a small laptop cannot give you.
  • Your battery or fan matters. Local inference makes the laptop hot and loud.
  • Ollama cloud: you sign in by running ollama and following the prompts, or create an API key at ollama.com/settings/keys (opens in a new tab). Cloud models use names like gemma4:cloud. Cloud models default to their maximum context length.
  • Free tiers change their limits often. We checked two in their own guides: Gemini free tier and OpenRouter free models. For any other provider, read its pricing page the day you decide.

LM Studio and llama.cpp instead

  • LM Studio (opens in a new tab): a desktop app for macOS, Windows and Linux. It can serve local models on OpenAI-like endpoints. We could not confirm its pricing from the pages we read, so check that yourself.
  • llama.cpp (opens in a new tab): the open-source engine (MIT license) behind many local tools. It is more hands-on, with more options and less hand-holding. Ollama is the easier start.

Privacy: what stays on the laptop, what leaves

  • Local models: prompts stay on your machine and nothing is sent to Ollama. The thing to watch is who can reach the server, see the OLLAMA_HOST point below.
  • Cloud models: your prompts go to Ollama's servers. The docs say they are processed to answer your request and not used to train models; retention periods are not stated on the page we read, so see the privacy policy (opens in a new tab).
  • To keep everything local, set OLLAMA_NO_CLOUD=1, or "disable_ollama_cloud": true in ~/.ollama/server.json.
  • By default Ollama only listens on 127.0.0.1 (port 11434), so other devices cannot reach it. If you change OLLAMA_HOST to 0.0.0.0, anyone on your network can use it.
  • Downloaded models are third-party files. Pull them from the official library, and check the license of any model you use for work.

Where a laptop falls short

  • Anyone who expects the quality of the biggest cloud models from a 2 GB download.
  • People with 8 GB of RAM who want a full coding agent. Use the cloud for that.
  • People who need guaranteed uptime or speed. Your laptop sleeps, heats up and shares memory with your browser.

Ollama questions

Do I need a GPU?

No. Without a supported GPU it runs on the CPU, just slower. Apple silicon Macs use Metal acceleration.

Can I use it offline?

After the model is downloaded, local chat does not need the internet. We did not test a fully offline setup for this guide.

It is slow. What first?

Run ollama ps. If it is not 100% GPU, pick a smaller tag or lower the context length.

Checked against the official pages on 6 November 2026. Things change, so check the sources.