Skip to content

Best Open Source LLMs to Run Locally: Which Model Fits Your GPU (8 GB to 96 GB+)

Which open-weight AI model should you run on your own computer? A practical guide to the best open source LLMs to run locally, organised by how much VRAM you have, with model families, quantization advice, use-case picks for coding, reasoning, chat and vision, and the tools to run them.

5 min read

Best Open Source LLMs to Run Locally — best open source llms to run locally

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.

PrecisionApprox. GB per billion parametersQuality
FP16 / BF16~2.0Original
8-bit (Q8, FP8)~1.05Near-lossless
5-bit (Q5_K_M)~0.70Very close to original
4-bit (Q4_K_M, AWQ)~0.60Small loss; best balance for most
3-bit and below~0.45 or lessNoticeable 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 familySizeBest for
Qwen (small instruct)4–8BAll-round chat, multilingual, tool use
Llama 3.x8BGeneral chat, huge ecosystem of fine-tunes
Gemma4B (and larger with offload)Efficient chat, some vision variants
Phi~4BReasoning and maths for its size
DeepSeek-R1 distills7–8BStep-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 familySizeBest for
Qwen14BStrong general and coding performance
Gemma12BChat and multimodal tasks
Mistral Nemo / Small12B / ~24B (tight at 16 GB)Chat, long context
Phi~14BReasoning
gpt-oss20B (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 familySizeBest for
Qwen~30–32B dense, or ~30B MoEExcellent all-rounder; fast MoE variants
Qwen Coder~30–32BLocal coding assistant
Gemma27BHigh-quality chat, vision
Mistral Small~24BFast, capable general model
DeepSeek-R1 distills32BReasoning
GLM (smaller variants)~30B classCoding 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 familySizeBest for
Llama 3.x70BStrong general model with a vast ecosystem
Qwen~70B class dense or ~80–120B MoETop-tier open quality at this size
gpt-oss120B (MoE)Reasoning; fits on a single ~80 GB GPU
GLM Air variants~100B MoECoding and agents
Mistral / MixtralMedium and MoE variantsGeneral 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 caseWhat to look forExample families
General chatInstruct-tuned, good multilingual supportQwen, Llama, Gemma, Mistral
CodingCoder variants with long contextQwen Coder, DeepSeek Coder, GLM
Reasoning and maths"Thinking" modelsDeepSeek-R1 and distills, Qwen thinking modes, gpt-oss, Phi reasoning
Vision (images)Vision-language modelsGemma, Qwen-VL, Llama vision variants
Long documents and RAGLong context, good retrieval followingQwen, Llama, Mistral; see What is RAG?
Low-end hardwareSmall modelsPhi, small Qwen and Gemma; see small language models
Agents and tool useFunction-calling supportQwen, 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

ToolBest for
OllamaEasiest one-command setup
LM StudioFriendly desktop app with model browser
llama.cppMaximum control, GGUF format, CPU/GPU split
vLLM / SGLangFast 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.

Sources and further reading

Think you understand it now? Prove it.

Solve real Tensor Core math in the TensorCore.si Challenge and earn a certificate with your name.

Take the challenge

Leave a Reply

Your email address will not be published. Required fields are marked *