Developer & Tech Tutorial

How to Run a Local LLM on Your Own PC

A beginner-friendly guide to running a private AI model on Windows, macOS or Linux, from hardware tiers to Ollama and LM Studio setup.

How to Run a Local LLM on Your PC in 2026

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

JobLocal model fitNotes
Summarising private documentsExcellentNothing leaves the machine; good for contracts, notes and research.
Drafting and rewritingGoodA 7-8B model handles routine editing; complex reasoning is weaker.
Searching your own notesGood with RAGPair the model with an embedding model and a local vector store.
Coding helpGoodUse a code-tuned model and keep the context focused.
Real-time web researchPoor without toolsLocal models do not browse unless you add a tool or pipeline.
Long, complex reasoningLimitedCloud 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 tierComfortable model sizeTypical experience
8GB RAM, no GPU or 4GB VRAM3-4B at Q4Good for summaries and simple drafting; short context.
16GB RAM, 8GB VRAM7-8B at Q4The sweet spot for most people; interactive speed.
32GB RAM, 12-16GB VRAM14B at Q4Better writing quality and longer context.
64GB RAM, 24GB VRAM30B at Q4Strong local assistant, slower and hotter under load.
Apple Silicon with 32GB+ unified memory14-30B depending on memoryEfficient 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

  1. Download LM Studio from lmstudio.ai and install it.
  2. Open the model browser and search for a model family such as Qwen, Llama, Gemma or Mistral.
  3. Choose a Q4_K_M GGUF file that fits your memory budget. It is a good balance of size and quality.
  4. Load the model and open a new chat. Start with a short prompt to confirm it responds.
  5. 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, not 0.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-name to 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

  1. Summarise a folder of PDFs. Extract the text, chunk it and ask for a summary with page references. Verify the references.
  2. Search your notes. Build a small RAG pipeline with an embedding model and a local vector store. Start with 50 documents, not 5,000.
  3. 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.

Sources

Frequently asked questions

For a 3-4B model at 4-bit quantization, 4-6GB of VRAM is a reasonable starting point. For a 7-8B model, aim for 8GB. Larger 14B models generally want 12-16GB, and 30B models need 24GB or more.

The model runs on your machine, so prompts do not leave your computer by default. You still need to check the app, the model download source and any local server settings. A server exposed to your network is not private.

Yes, but it will be slower. Small 3-4B models can run on CPU with enough RAM. For interactive use with 7B or larger models, a GPU or Apple Silicon unified memory makes a big difference.

Start with a small 3-4B model to confirm the setup, then move to a 7-8B model if your hardware allows it. Choose a model family you can download safely from the official Ollama library or Hugging Face.

A hand-picked toolkit, twice a month

No spam, no fluff. Get the tools and setups that actually helped us, reviewed with first-hand experience.