Best Open-Source LLM Models to Self-Host: Llama, Mistral and Qwen Families
The best open source LLM models to self-host: Llama 3.3, Qwen 2.5 and Mistral compared by size, license, context window and hardware needs for every machine.
By Galactic News Editorial · Published 2026-11-07T15:04:05+00:00 · Updated 2026-11-07T15:04:05+00:00
The best open source LLM models to self-host in late 2026 come from three families: Meta's Llama, Alibaba's Qwen, and Mistral AI. Llama leads on ecosystem and fine-tunes. Qwen leads on code and multilingual work. Mistral leads on efficiency and permissive licensing. This guide compares them by size, license, and hardware needs, so you can pick the right model for your machine.
Open-weight is the precise term. These models publish their trained weights for download, so anyone can run them on their own hardware. Most are not open source in the strict sense. Their licenses add conditions, such as a separate agreement above a user threshold. Read the license before you use a model commercially.
Best open source LLM models: the short list
If you want one answer fast, here it is. For general chat on a laptop, start with Llama 3.3 8B or Qwen 2.5 7B. For coding, pick Qwen 2.5 Coder or Qwen3 Coder. For the strongest model that still fits a high-end desktop, run Llama 3.3 70B at 4-bit quantization. For fully permissive licensing, look at Mistral Small 3.1 or a Qwen model under Apache 2.0.
The rest of this guide explains why, with sizes, context windows, and licenses for each family.
Llama: the biggest ecosystem
Llama is Meta's open-weights family. It launched as LLaMA in February 2023. Llama 2 followed in July 2023 as the first commercially licensed release. Llama 3 arrived in April 2024, Llama 3.1 in July 2024, Llama 3.2 in September 2024, Llama 3.3 in December 2024, and Llama 4 in early 2025.
The family spans 1B models for phones and edge devices up to 405B frontier-scale models. Llama 3.3 70B is the workhorse for self-hosting. Meta released it on December 6, 2024, with a 128K context window. Meta says it matches the earlier 405B model on many benchmarks. At 4-bit quantization it needs about 43 GB of disk space, so it fits on a 48 GB card or a high-end Mac with unified memory. It does not fit on a 24 GB consumer GPU at full precision.
Llama 3.3 8B is the most fine-tuned 8B model in the field. It fits in about 5 GB at 4-bit quantization. It runs well on a laptop with 16 GB of RAM. The smaller Llama 3.2 1B and 3B models run on almost anything, including phones.
Llama 4 Maverick, released April 5, 2025, is a mixture-of-experts model with 400B total parameters and 17B active per token. It has a 1M token context window. It is a server-class model, not a desktop one.
All Llama models use the Llama Community License. It permits free commercial use, except for organizations with more than 700 million monthly active users. Those organizations must request a separate license from Meta. For almost every business, the license is effectively open.
Llama's real advantage is the ecosystem. It has the largest community fine-tune ecosystem of any open model, with tens of thousands of fine-tunes on Hugging Face. If you need a model tuned for medical text, legal text, or roleplay, a Llama fine-tune probably exists already.
Qwen: the strongest coder
Qwen is Alibaba's open-weights family. It has the fastest release cadence of the three families, with new generations arriving every few months. The Qwen 2.5 family covers sizes from 0.5B to 72B. Qwen3 followed in 2025, and newer Qwen3.5 and Qwen3.6 models arrived in 2026.
Qwen 2.5 models consistently outperform Llama at the same size on STEM tasks, according to independent comparisons. The coding variants are the standout. Qwen 2.5 Coder remains a stronger pick than Llama at most size points for code work. If your main job is writing or reviewing code locally, start with a Qwen coder model.
Qwen is also the strongest multilingual family of the three. It supports many languages well, with a particular strength in Chinese and other Asian languages. English benchmarks lag slightly behind Llama at some sizes, but the gap is small.
Licensing varies by model. Many newer Qwen models use the Apache 2.0 license, which permits full commercial use with no user threshold. Qwen3.6-35B-A3B, released April 16, 2026, uses Apache 2.0. Qwen3.8-27B, released August 14, 2026, also uses Apache 2.0. Older models use the Qwen Community License, which adds conditions. Check the model card for the exact license.
Qwen3 models use a 256K context window in most sizes. That is double the 128K window on Llama 3.3. Long documents and large codebases fit more easily.
Mistral: efficiency and permissive licenses
Mistral AI is the European maker of open models. It is known for efficiency: small models that perform above their size. Its models are production-ready workhorses, with a particular strength in function calling and structured output.
Mistral Small 3.1 is the current small flagship. It has 24B parameters, a 128K context window, and image understanding. Mistral relicensed it under Apache 2.0, so it permits full commercial use. At 4-bit quantization it needs about 15 GB, which fits on a 16 GB GPU with a short context.
Mistral Nemo 12B is a collaboration with NVIDIA. It fits on an 8 GB card at 4-bit quantization, which makes it one of the best models for modest hardware. Ministral 8B fits on any GPU with 6 GB of VRAM. Ministral 3B is built for phones and edge devices.
At the top end, Mistral Large 3 has 675B total parameters and was released December 2, 2025, under Apache 2.0. Mistral Medium 3.5, released May 22, 2026, has 128B parameters and a 256K context window. Both are server models.
Mistral's licensing is the most permissive of the three families for recent releases. Several current models carry Apache 2.0 with no conditions. That matters if you ship a commercial product and want no license review.
Best open source LLM models compared
| Model | Size | Context | License | 4-bit size | Best for |
|---|---|---|---|---|---|
| Llama 3.3 8B | 8B | 128K | Llama Community | ~5 GB | General chat, fine-tunes |
| Llama 3.3 70B | 70B | 128K | Llama Community | ~43 GB | Strongest desktop model |
| Qwen 2.5 7B | 7B | 128K | Apache 2.0 / Qwen | ~5 GB | General chat, multilingual |
| Qwen 2.5 Coder 14B | 14B | 128K | Apache 2.0 / Qwen | ~9 GB | Code generation |
| Qwen3.8-27B | 27B | 256K | Apache 2.0 | ~17 GB | Long context, reasoning |
| Mistral Small 3.1 | 24B | 128K | Apache 2.0 | ~15 GB | Vision, function calling |
| Mistral Nemo 12B | 12B | 128K | Apache 2.0 | ~8 GB | Modest hardware |
| Ministral 8B | 8B | 128K | Apache 2.0 | ~5 GB | Small GPUs, edge |
File sizes are approximate Q4_K_M builds. Check the exact model card for the build you download. Licenses vary by version, so confirm on the card itself.
How to choose a model for your hardware
Memory decides what you can run. A rough rule is 0.6 to 0.7 GB of memory per billion parameters at 4-bit quantization. Add a few gigabytes for the context window and the operating system.
- 8 GB of memory: 3B to 7B models. Llama 3.2 3B, Qwen 2.5 7B, Ministral 8B.
- 16 GB of memory: 7B to 14B models. Llama 3.3 8B, Qwen 2.5 Coder 14B, Mistral Nemo 12B.
- 24 GB of memory: 24B to 27B models. Mistral Small 3.1, Qwen3.8-27B.
- 40 GB or more: 70B models at 4-bit. Llama 3.3 70B.
Then match the model to the job. Use Llama when you want the largest fine-tune ecosystem and the most community support. Use Qwen when code or multilingual text is the priority. Use Mistral when you want Apache 2.0 licensing or a model that punches above its size.
All three families run in Ollama, LM Studio, and llama.cpp. Download the GGUF build in Q4_K_M quantization for the best balance of size and quality. You can switch models later without changing tools.
Other families deserve a mention. Google's Gemma 3 comes in sizes up to 27B and runs well locally. Microsoft's Phi-4 is a 14B model with strong reasoning for its size, needing about 9 GB at 4-bit. OpenAI's gpt-oss ships in 20B and 120B open-weight versions. DeepSeek's distilled R1 models bring reasoning behavior to smaller sizes. Start with the big three, then explore these when you have a specific need.
Bottom line
The best open source LLM models to self-host are Llama 3.3 70B for maximum capability, Qwen 2.5 Coder for code, and Mistral Small 3.1 for permissive licensing and efficiency. For most people on a laptop, Llama 3.3 8B or Qwen 2.5 7B is the right start. Pick by hardware first, then by job, then by license. All three families are free to download and run today.