A local LLM is a language model that runs on your own computer instead of a cloud service. You download the weights once, load them with a tool such as Ollama or LM Studio, and every prompt is processed on your machine. That means no per-token bill, no prompt leaving your device and no internet requirement after the download.
The trade-off is hardware. Local models are smaller and less capable than the frontier models behind ChatGPT or Gemini, and performance depends heavily on how much video memory you have. This guide explains what fits on which machine and walks through a first setup.
What a local LLM is good for
| Job | Local model fit | Notes |
|---|---|---|
| Summarising private documents | Excellent | Nothing leaves the machine; good for contracts, notes and research. |
| Drafting and rewriting | Good | A 7-8B model handles routine editing; complex reasoning is weaker. |
| Searching your own notes | Good with RAG | Pair the model with an embedding model and a local vector store. |
| Coding help | Good | Use a code-tuned model and keep the context focused. |
| Real-time web research | Poor without tools | Local models do not browse unless you add a tool or pipeline. |
| Long, complex reasoning | Limited | Cloud frontier models still win on hard, multi-step tasks. |
Hardware: how much memory you actually need
VRAM is the main bottleneck for GPU inference. LM Studio recommends at least 16GB of system RAM and 4GB of dedicated VRAM for a usable experience. The table below is a practical guide, not a hard rule; context length and quantization change the numbers.
| Hardware tier | Comfortable model size | Typical experience |
|---|---|---|
| 8GB RAM, no GPU or 4GB VRAM | 3-4B at Q4 | Good for summaries and simple drafting; short context. |
| 16GB RAM, 8GB VRAM | 7-8B at Q4 | The sweet spot for most people; interactive speed. |
| 32GB RAM, 12-16GB VRAM | 14B at Q4 | Better writing quality and longer context. |
| 64GB RAM, 24GB VRAM | 30B at Q4 | Strong local assistant, slower and hotter under load. |
| Apple Silicon with 32GB+ unified memory | 14-30B depending on memory | Efficient and quiet, but memory is shared with the OS. |
If the model does not fit in VRAM, the tool offloads layers to system RAM. That works, but it can be five to thirty times slower depending on the hardware and the split. A smaller model that fits entirely in VRAM usually feels better than a larger model that spills.
Option A: Ollama in a few commands
Ollama is the fastest path if you are comfortable with a terminal. Install it from ollama.com/download, then open PowerShell or Terminal:
ollama pull llama3.2:3b
ollama run llama3.2:3b
The first command downloads the model; the second opens a chat prompt. To try a larger model that fits an 8GB GPU:
ollama pull qwen3:8b
ollama run qwen3:8b
Ollama serves an API on http://localhost:11434 by default. That is convenient for scripts, but it also means any local process can call it. Keep it bound to localhost and do not expose the port to your network unless you understand the risk.
Option B: LM Studio for a graphical interface
- Download LM Studio from lmstudio.ai and install it.
- Open the model browser and search for a model family such as Qwen, Llama, Gemma or Mistral.
- Choose a
Q4_K_MGGUF file that fits your memory budget. It is a good balance of size and quality. - Load the model and open a new chat. Start with a short prompt to confirm it responds.
- If you need an API, open the Local Server tab and start the OpenAI-compatible server on port 1234.
LM Studio is better than Ollama when you want to compare models, adjust GPU layers and watch tokens per second in real time. It also shows a live estimate of how much memory your context setting will use.
Choose a model by job, not leaderboard
Model names change quickly, so focus on the category:
- General assistant: a 7-8B instruction-tuned model from the Qwen, Llama, Gemma or Mistral families.
- Coding: a code-tuned model, ideally with a larger context window for reading files.
- Summarisation: a smaller model with strong instruction following; you do not need the biggest model for this.
- Search over notes: a dedicated embedding model plus a small chat model for answers.
Download from the official Ollama library or a verified Hugging Face repository. Avoid random GGUF files from forums; model files can be modified, and you are running them with access to your prompts.
Quantization and context: the two settings that matter
Quantization compresses the model weights. Q4_K_M is the usual starting point. Q5 and Q6 use more memory and may improve quality; Q2 and Q3 save memory but can degrade reasoning noticeably.
Context length is how much text the model can consider at once. Longer context consumes more memory because the key-value cache grows with the number of tokens. If you run out of memory, reduce the context before you blame the model.
A practical sequence: load the model, set context to 4k-8k tokens, check speed, then increase only if you need longer documents. For chat, 8k is usually plenty. For code or long PDFs, 16k-32k may be worth the memory.
Privacy and security checklist
- Keep the local server bound to
127.0.0.1, not0.0.0.0. - Check whether the app sends telemetry; disable it if you want a fully local setup.
- Do not paste secrets, private keys or customer data into a model you have not vetted.
- Keep model files on an encrypted disk if the machine is portable.
- Back up your prompts, notes and any RAG index. A local setup is still a data store.
- Remove unused models with
ollama rm model-nameto reclaim disk space.
For a broader privacy routine, see our guides to protecting your privacy online and the 3-2-1 backup rule.
Three useful first projects
- Summarise a folder of PDFs. Extract the text, chunk it and ask for a summary with page references. Verify the references.
- Search your notes. Build a small RAG pipeline with an embedding model and a local vector store. Start with 50 documents, not 5,000.
- Draft in private. Use the model for outlines and rewrites on confidential material where cloud upload is not allowed.
When to use the cloud instead
Use a cloud model when you need frontier reasoning, very long context, multimodal input, or you do not have the hardware. The honest comparison is not "local versus cloud" but "private and cheap versus capable and convenient". Many people end up using both: local for sensitive drafts and summaries, cloud for hard problems.
The bottom line
Start with a 3-4B model to prove the setup, move to 7-8B if you have 8GB of VRAM, and keep the context modest until you know your memory ceiling. Ollama is the quickest install; LM Studio is the better workbench. Either way, the privacy benefit is real only if you keep the server local and the data on your own disk.