Best Open-Source LLMs You Can Run Locally

You do not need a data center — or an API key — to run a capable language model. These open source LLMs run locally on everyday hardware, handling writing, coding, summarization, and Q&A at quality levels that were frontier-grade two years ago. Running locally means zero per-token costs, complete privacy, and no internet dependency. Here is the current landscape.
One clarification: “open source” in AI is a spectrum. Some models have truly open licenses; others are “open weights” with restrictions on commercial use. Check the license before building a business on any model.
Open Source LLMs Run Locally: The Models Worth Your Disk Space
- Llama (Meta) — the ecosystem king. Massive community, thousands of fine-tunes, and strong all-round quality from 1B to 70B+ sizes. The default choice for most local setups.
- Gemma (Google) — excellent small models (2B–27B); the 9B and 27B variants are efficiency standouts, delivering strong quality per parameter.
- Mistral / Mixtral — European-built, strong multilingual performance; Mixtral’s mixture-of-experts design gives big-model quality at lower active compute.
- Phi (Microsoft) — tiny models (3–14B) trained on synthetic textbook-quality data; astonishing capability per parameter, ideal for edge and mobile.
- Qwen (Alibaba) — arguably the strongest open family for coding and multilingual tasks; the smaller Qwen variants are local-run favorites.
- DeepSeek — open-weights reasoning models that brought chain-of-thought excellence to the open ecosystem; distilled versions run locally.
Open Source LLMs Run Locally: What Hardware Do You Need?
Quantization is the enabler: compressing model weights to 4-bit precision shrinks a 7B model to roughly 4–5GB with minimal quality loss. Practical guidelines:
- 8GB RAM (basic laptop): 3B models (Phi, Qwen 3B, Llama 3B) — good for chat, summarization, simple Q&A.
- 16GB RAM (modern laptop): 7–8B quantized models — the sweet spot; genuinely useful for writing and coding help.
- 24GB VRAM GPU (e.g., RTX 4090): 13–14B models, or 32B models with aggressive quantization — approaching mid-tier API quality.
- 64GB+ unified memory (high-end Mac): 32–70B quantized models — near-frontier quality for many tasks, fully local.
Tools like Ollama (simplest: one command to download and run), LM Studio (friendly GUI), and llama.cpp (maximum control, runs anywhere) handle the plumbing. Start with Ollama; graduate to llama.cpp if you need tuning.
What Local Models Are (and Aren’t) Good For
Local models shine at: private document Q&A (ask questions about your files with nothing leaving your machine), writing assistance (drafts, rewrites, brainstorming), coding help (especially with code-aware fine-tunes), and offline use (travel, secure facilities, unreliable connectivity).
Be realistic about limits: local models trail frontier APIs on hard reasoning, broad factual knowledge, and very long contexts. They also hallucinate — grounding them with your documents via local RAG helps enormously. Think of a local 8B model as a smart, tireless, private assistant, not an oracle.
One power-user move worth knowing: model merging and fine-tunes from the community. The open ecosystem produces thousands of specialized variants — a Llama base merged with a coding fine-tune, a Qwen tuned for your language, a medical-knowledge adapter you can load on demand. Because these open source LLMs run locally, you can hot-swap personalities and skills by simply loading different weights — no API changes, no new subscriptions. Browse community hubs for fine-tunes matching your niche, test them against your own tasks, and keep two or three specialists on disk alongside your general-purpose daily driver. Also consider speculative decoding if you have a decent GPU: it uses a small draft model to predict tokens the big model then verifies, often doubling generation speed with identical output. Between quantization, fine-tunes, and decoding tricks, a well-tuned local setup punches far above what the raw parameter count suggests.
Getting Started This Weekend
- Install Ollama from its website (Windows, Mac, Linux).
- Run ollama run llama3.1:8b (or a Qwen/Gemma equivalent) — the model downloads automatically.
- Try real tasks: summarize a PDF, draft an email, explain code.
- For document Q&A, add a local RAG tool or use LM Studio’s retrieval features.
- Experiment with fine-tunes for your niche — the community has tuned variants for medicine, law, coding, and roleplay.
One last tip: keep two models on disk — a fast 3B for quick answers and an 8B for harder work. Switching between them takes seconds and covers nearly every daily need.
FAQs
Q: Can I run an LLM with no internet connection?
A: Yes — once downloaded, local models run fully offline. Download the weights while connected, then disconnect freely.
Q: Are local LLMs really free?
A: The software and weights are free; you pay once for hardware and electricity. No subscriptions, no per-token fees, no usage caps.
Q: Which local LLM is best for coding?
A: Qwen’s coder variants and DeepSeek-derived distilled models lead the open field for code; Llama-based code fine-tunes are strong alternatives.
Q: Is my data private when running models locally?
A: Yes — nothing leaves your machine. That is the core privacy advantage over API-based AI. Just verify the app wrapping the model is not phoning home.