The fastest way to run a local LLM on a laptop is to install Ollama (or LM Studio if you prefer a graphical app), download a small model, and chat with it. With Ollama that is two steps: install from ollama.com/download, then run ollama run gemma4:e2b. Running models on your own hardware is free on every Ollama plan, and nothing leaves your machine.

The sharpest pitfall: a model that does not fit in fast memory still runs, it just runs painfully slowly on the CPU, and most people blame the tool instead of the memory shortfall. Check where the model is actually running (Step 4) before you decide local AI is "too slow."

What you need before you start

Memory decides almost everything. Ollama's quickstart recommends roughly 8 GB of available VRAM or Mac unified memory for gemma4:e2b, a download of about 7.2 GB. Ollama's FAQ does not publish a general minimum, so treat 8 GB as a floor for small models, not a promise.

LM Studio is more specific about hardware. On macOS it needs Apple Silicon (M1 to M4) and macOS 14.0 or newer, and Intel Macs are not supported. On Windows it supports x64 with AVX2 and ARM (Snapdragon X Elite), with 16 GB of RAM recommended and 4 GB or more of dedicated VRAM for GPU use. On Linux it ships as an AppImage and wants Ubuntu 20.04 or newer, on x64 or ARM64.

Also budget disk space. Models are multi-gigabyte files, and a few of them will fill a small SSD faster than you expect.

If you run a small agency or a one-person dev shop, the realistic use cases are drafting, summarizing client documents you cannot paste into a cloud tool, code explanation, and offline work. Frontier-level reasoning is not on that list.

Step 1: Pick your tool

Four options cover most people:

  • Ollama: command line plus a background service. Best if you want scripts, a local API, or minimal fuss.
  • LM Studio: a desktop app that runs models through llama.cpp and MLX. Its free plan costs $0, and its pricing page states no restriction on personal or work use. Best if you want to browse and click.
  • llama.cpp: the MIT-licensed engine underneath much of this ecosystem. Best if you want maximum control and do not mind a terminal.
  • Jan: a desktop app from Menlo Research with chat, models, MCP connectors and a local API server. We could not confirm its pricing, license or system requirements, so check those on jan.ai before committing.

This guide follows Ollama for the main path and covers LM Studio and llama.cpp as alternates.

Step 2: Install Ollama and run your first model

Download the installer from ollama.com/download. It covers macOS, Windows and Linux. After installing, open a terminal and run:

ollama run gemma4:e2b

The first run downloads the model (about 7.2 GB), then drops you into a chat prompt. Type /bye to exit.

If you only want to download without chatting, use ollama pull <model>. On Linux, if the server is not already running, start it with ollama serve in a separate terminal.

Ollama's cloud plans (Pro at $20/mo, Max at $100/mo) bill for hosted models and are unrelated to local use. You can ignore them entirely for this setup.

Step 3: Try LM Studio or llama.cpp instead

LM Studio. Install the app, search for a model inside it, download one that fits your memory, and chat in the built-in window. It is the easiest route for people who dislike terminals. If you have 8 GB of RAM, LM Studio says smaller models with modest context may work, but 16 GB or more is its recommendation.

llama.cpp. The project's documented install is curl -LsSf llama.app | sh on macOS and Linux, or irm llama.app | iex in PowerShell. Docker, prebuilt release binaries and building from source also work. Then pull and chat straight from Hugging Face:

llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF

To expose an OpenAI-compatible API instead, swap cli for serve:

llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF

That 0.8B model is deliberately tiny. It is a good smoke test to confirm your install works before you download something large. The repo's front page does not list supported hardware backends, so confirm GPU support for your specific chip in the project docs.

Step 4: Confirm the model is using your GPU

While a model is loaded in Ollama, run this in a second terminal:

ollama ps

Read the Processor column. It shows 100% GPU, 100% CPU, or a split such as a CPU/GPU ratio. A split means the model did not fully fit in GPU memory, so part of it spilled to system RAM.

Treat anything other than 100% GPU as a signal. A split is usable for occasional questions but noticeably slower, and 100% CPU on a laptop with a capable GPU usually means a driver, memory, or model-size problem.

On Apple Silicon, unified memory means the GPU and CPU share one pool, so the practical question is simply whether the model plus its working memory fits.

Step 5: Tune context length and memory

Ollama's default context window is 4096 tokens. That is small. Paste in a long contract or a big code file and the model will quietly lose the beginning.

Raise it with the OLLAMA_CONTEXT_LENGTH environment variable, or with num_ctx in a request or Modelfile. A larger context costs more memory, which is exactly what pushes a model from 100% GPU into a CPU split. Raise it in steps and re-check ollama ps each time.

If you need more context without more memory, quantize the K/V cache. With Flash Attention enabled, Ollama's docs say a q8_0 K/V cache uses about half the memory of the default f16, and q4_0 about a quarter, with some quality loss. Start with q8_0. Drop to q4_0 only if you are squeezed, and spot-check output quality on your own prompts.

Step 6: Move model storage if your disk is tight

By default Ollama stores models here:

  • macOS: ~/.ollama/models
  • Linux: /usr/share/ollama/.ollama/models
  • Windows: C:\Users\%username%\.ollama\models

Set the OLLAMA_MODELS environment variable to point at an external drive or larger partition. Restart Ollama afterward so it picks up the new path. Expect slower load times from a USB drive.

Where it breaks and how to fix it

Output crawls at a few words per second. Run ollama ps. If the Processor column shows CPU or a split, use a smaller model, lower the context length, or quantize the K/V cache. Closing a browser with dozens of tabs also frees real memory on an 8 GB machine.

The model forgets the start of long inputs. You are hitting the 4096-token default. Raise OLLAMA_CONTEXT_LENGTH, then recheck memory.

ollama run cannot connect on Linux. The server is not running. Start it with ollama serve.

The laptop gets hot and the fan howls. Sustained generation is heavy work. Plug in the charger, expect throttling on thin machines, and keep long sessions to what you need.

Answers are weaker than ChatGPT or Claude. That is expected with a model small enough for a laptop. Small local models are good at summarizing, rewriting and structured extraction, and noticeably worse at multi-step reasoning and obscure facts. Do not route work that needs accuracy through them without checking.

What it costs to run

Software cost is zero. Ollama's local use is unlimited and free on every plan, LM Studio's free plan covers local models, and llama.cpp is MIT licensed.

The real costs are hardware and electricity. If your laptop has 8 GB of memory, local models will feel cramped, and upgrading means buying a new machine because most laptop memory is not upgradeable. Paid tiers (Ollama Pro at $20/mo, LM Studio Bionic+ at $20/mo) are for hosted models and extra devices, not for running models on your own machine.

Frequently asked questions

Is a local LLM private? Inference runs on your machine, so prompts do not go to a model provider. Privacy still depends on the rest of your setup: cloud model options in Ollama or LM Studio do send data to hosted servers, so stay on local models for sensitive material.

Can I run a local LLM without a dedicated GPU? Yes, on the CPU, and ollama ps will show 100% CPU when that happens. Expect slow output with anything beyond small models. Apple Silicon Macs are the exception in practice because the GPU shares unified memory.

Can I use a local model from my own scripts or apps? Yes. llama.cpp's llama serve starts an OpenAI-compatible API server, and Jan lists a local API server as a feature. Ollama also runs as a local service you can call from code. Point any OpenAI-style client at the local address.

Which should I choose, Ollama or LM Studio? Choose Ollama if you live in a terminal or want scriptable access. Choose LM Studio if you prefer a graphical interface for browsing and testing models. Both are free for local use, so trying each costs only download time.