Cloud models like Claude, Gemini, and GPT are great, but there are plenty of situations where you do not want to send text over the internet: confidential client contracts, private journal notes, local codebases, or working on a flight with spotty Wi-Fi. Running an open-weight model directly on your laptop or desktop solves that completely, and you no longer need to compile C++ repositories from scratch to do it.
1. Ollama vs. LM Studio: Which One Should You Install?
Both tools wrap llama.cpp (and Apple MLX on Macs) under the hood, so their raw inference speed on the same model file is nearly identical. The difference is how you like to work:
- Ollama: Best for developers and terminal users. It runs as a lightweight background daemon with a local OpenAI-compatible API on
http://localhost:11434, making it trivial to connect to VS Code, Cursor, Continue, Open WebUI, or Python scripts.
- LM Studio: Best if you want a polished desktop app right away. You can browse Hugging Face GGUF builds inside the UI, see immediately whether a model fits in your GPU memory before downloading, tweak context length with sliders, and chat without touching a terminal.
2. Getting Your First Local Model Running in Two Minutes
After installing Ollama on macOS, Windows, or Linux, pull a balanced 8B or 14B model to test speed on your hardware:
# Pull and chat with a fast 8B-class model (fits comfortably in 8 GB VRAM / 16 GB Mac)
ollama run qwen3:8b
# Check which models are loaded and whether they are running 100% on GPU
ollama ps
Always run ollama ps during your first test. If you see 100% GPU, you are getting full speed. If you see 45% CPU / 55% GPU, the model plus its context window exceeded your VRAM and spilled into slower system memory, drop down one parameter size or quantization level.
3. Understanding Quantization (Q4, Q6, Q8) Without the Jargon
Raw 16-bit model weights are huge: an 8B parameter model takes about 16 GB at FP16, and a 32B model needs 64 GB. Quantization compresses each weight to fewer bits so the model fits on consumer hardware:
- Q4_K_M (4-bit): The everyday sweet spot. Cuts memory roughly in quarters while keeping almost all reasoning quality intact. Start here unless you have spare RAM.
- Q6_K or Q8_0 (6-bit to 8-bit): Worth choosing for coding models or structured JSON extraction when you have plenty of headroom, since subtle syntax accuracy holds up slightly better.
- Q2_K / Q3_K: Usually too degraded for serious work; a smaller model at Q4_K_M almost always beats a larger model crushed down to 2-bit.
| Model Size (Q4_K_M) |
Minimum GPU VRAM / Unified RAM |
Realistic Use Cases |
| 7B – 9B |
8 GB VRAM or 16 GB Mac |
Drafting, summarization, fast autocomplete |
| 14B – 24B |
16 GB – 24 GB VRAM or 32 GB Mac |
Strong coding help, document Q&A, local RAG |
| 32B – 70B |
24–48 GB VRAM or 48–64 GB Mac |
Deep reasoning, multi-file code review offline |
4. Watch Your Context Window Setting
Ollama defaults many models to a 4,096-token context window so they fit easily on smaller machines. If you paste a long document and notice the model forgetting the top half, bump the context size explicitly (for example, /set parameter num_ctx 16384 inside Ollama, or via the Context Length slider in LM Studio), keeping in mind that longer contexts consume extra memory for the KV cache.
Bottom Line
Start with LM Studio if you want a point-and-click offline chat app, or Ollama if you want to plug local models into code editors and scripts. Pick a Q4_K_M model that stays 100% inside your GPU or unified memory, and verify it with ollama ps so you never wonder why tokens are crawling.