Short answer
The best open source LLMs to run locally depend mainly on your VRAM. As a rule of thumb at 4-bit quantization, a model needs roughly 0.55–0.65 GB per billion parameters plus room for context. With 8 GB you can run strong 7–8B models; 12–16 GB handles 12–14B models; 24 GB (RTX 3090/4090) runs 27–32B models well; 32 GB (RTX 5090) adds headroom for longer context; and 48–96 GB+ opens up 70B dense models and mid-size mixture-of-experts models. Leading open-weight families include Qwen, Llama, DeepSeek, Gemma, Mistral, gpt-oss, Phi, GLM and Kimi. New versions arrive every few months, so always check for the latest release in each family.
How to choose: the VRAM rule
Model size in memory ≈ parameters × bytes per weight, plus the KV cache for your context length.
| Precision | Approx. GB per billion parameters | Quality |
|---|---|---|
| FP16 / BF16 | ~2.0 | Original |
| 8-bit (Q8, FP8) | ~1.05 | Near-lossless |
| 5-bit (Q5_K_M) | ~0.70 | Very close to original |
| 4-bit (Q4_K_M, AWQ) | ~0.60 | Small loss; best balance for most |
| 3-bit and below | ~0.45 or less | Noticeable loss, useful for very large models |
Use our VRAM calculator for exact numbers, and see LLM quantization explained.
Best models by VRAM tier
Model names below are families and representative sizes; pick the newest version available in each family.
8 GB VRAM (RTX 3060 Ti, 4060, 5060)
| Model family | Size | Best for |
|---|---|---|
| Qwen (small instruct) | 4–8B | All-round chat, multilingual, tool use |
| Llama 3.x | 8B | General chat, huge ecosystem of fine-tunes |
| Gemma | 4B (and larger with offload) | Efficient chat, some vision variants |
| Phi | ~4B | Reasoning and maths for its size |
| DeepSeek-R1 distills | 7–8B | Step-by-step reasoning on a budget |
At 4-bit, an 8B model uses about 5 GB, leaving room for several thousand tokens of context.
12–16 GB VRAM (RTX 3060 12 GB, 4060 Ti 16 GB, 5060 Ti 16 GB, 5070 Ti)
| Model family | Size | Best for |
|---|---|---|
| Qwen | 14B | Strong general and coding performance |
| Gemma | 12B | Chat and multimodal tasks |
| Mistral Nemo / Small | 12B / ~24B (tight at 16 GB) | Chat, long context |
| Phi | ~14B | Reasoning |
| gpt-oss | 20B (MoE) | Reasoning and tool use; designed to fit around 16 GB |
24 GB VRAM (RTX 3090, RTX 4090)
This is the sweet spot for local AI.
| Model family | Size | Best for |
|---|---|---|
| Qwen | ~30–32B dense, or ~30B MoE | Excellent all-rounder; fast MoE variants |
| Qwen Coder | ~30–32B | Local coding assistant |
| Gemma | 27B | High-quality chat, vision |
| Mistral Small | ~24B | Fast, capable general model |
| DeepSeek-R1 distills | 32B | Reasoning |
| GLM (smaller variants) | ~30B class | Coding and agents |
A 32B model at 4-bit uses about 19–20 GB, leaving a few GB for context.
32 GB VRAM (RTX 5090)
Run the same 27–32B models with higher precision (5–6 bit) or much longer context, or squeeze larger MoE models with partial CPU offload. See RTX 5090 vs RTX 4090 for AI.
48–96 GB VRAM (2 × 24 GB, RTX PRO 6000 96 GB, Macs with large unified memory)
| Model family | Size | Best for |
|---|---|---|
| Llama 3.x | 70B | Strong general model with a vast ecosystem |
| Qwen | ~70B class dense or ~80–120B MoE | Top-tier open quality at this size |
| gpt-oss | 120B (MoE) | Reasoning; fits on a single ~80 GB GPU |
| GLM Air variants | ~100B MoE | Coding and agents |
| Mistral / Mixtral | Medium and MoE variants | General use |
A 70B model at 4-bit needs about 40–43 GB, which fits on two 24 GB GPUs. See multi-GPU local LLM setup.
128 GB+ (multi-GPU rigs, high-memory Macs, servers)
The largest open-weight models, such as DeepSeek V3/R1-class, Qwen's largest MoE models, Kimi K2-class and GLM's flagship models, have hundreds of billions to around a trillion total parameters. Running them locally needs very large memory, aggressive quantization or CPU offload, and is best suited to enthusiasts with workstation or server hardware. For most people, renting cloud GPUs is more practical; see the GPU cloud price tracker.
Best picks by use case
| Use case | What to look for | Example families |
|---|---|---|
| General chat | Instruct-tuned, good multilingual support | Qwen, Llama, Gemma, Mistral |
| Coding | Coder variants with long context | Qwen Coder, DeepSeek Coder, GLM |
| Reasoning and maths | "Thinking" models | DeepSeek-R1 and distills, Qwen thinking modes, gpt-oss, Phi reasoning |
| Vision (images) | Vision-language models | Gemma, Qwen-VL, Llama vision variants |
| Long documents and RAG | Long context, good retrieval following | Qwen, Llama, Mistral; see What is RAG? |
| Low-end hardware | Small models | Phi, small Qwen and Gemma; see small language models |
| Agents and tool use | Function-calling support | Qwen, gpt-oss, GLM, Kimi |
Dense vs mixture-of-experts models locally
Mixture-of-experts (MoE) models have many total parameters but activate only a fraction per token. Locally this means:
- Memory: you still need room for all the weights (or offload some to system RAM).
- Speed: generation is fast because only active parameters are read per token.
- Offload-friendly: MoE models run surprisingly well with experts in system RAM using llama.cpp, making large models usable on modest GPUs with lots of RAM.
Tools to run them
| Tool | Best for |
|---|---|
| Ollama | Easiest one-command setup |
| LM Studio | Friendly desktop app with model browser |
| llama.cpp | Maximum control, GGUF format, CPU/GPU split |
| vLLM / SGLang | Fast serving for multiple users |
| MLX (Mac) | Apple Silicon optimised |
See how to run an LLM locally and LLM inference engines compared.
Licences: "open" is not always the same
Some models use permissive licences (Apache 2.0 or MIT, for example many Qwen, Mistral, DeepSeek, gpt-oss and Phi releases), while others use custom licences with usage conditions (for example Llama and Gemma). Check the licence on the model card before commercial use.
Tips for the best local results
1. Start with Q4_K_M (or equivalent), then move to Q5/Q6 if you have spare VRAM. 2. Keep the whole model on the GPU when possible; offloading to CPU slows generation a lot (except MoE expert offload). 3. Don't max out context unless needed: long contexts use a lot of memory. 4. Use the correct chat template; most tools handle this automatically. 5. Benchmark on your own tasks, not just leaderboards. See LLM benchmarks.
Frequently asked questions
What is the best LLM for a 24 GB GPU?
A current 27–32B model from the Qwen, Gemma or Mistral families at 4–5 bit quantization, or a ~30B MoE model for faster responses.
Can I run a 70B model on one GPU?
Only with 48 GB or more of VRAM at 4-bit, or with heavy quantization or CPU offload on 24–32 GB, which is slower.
Are open source LLMs as good as ChatGPT?
The best open-weight models are competitive with leading closed models on many tasks, though the largest frontier closed models usually stay ahead on the hardest problems. Smaller local models trade some quality for privacy and zero per-token cost.
Which open model is best for coding locally?
Coder-tuned models in the Qwen, DeepSeek and GLM families are popular choices; pick the largest that fits your VRAM with room for context.




Leave a Reply