---
title: "Best open-source LLMs: open-weight models compared by use case"
description: "The best open source LLMs of November 2026 compared by use case: Kimi, DeepSeek, Qwen, GLM, Gemma, gpt-oss, and more, by license, size, context, and Ollama."
summary: "Open-weight models now range from 2.8-trillion-parameter frontier releases to 2B models that run on a phone. This guide compares 14 of them by use case, with each lab's reported benchmarks, license terms, hardware needs, and Ollama availability checked against primary sources."
type: "comparison"
canonical_url: "https://theaiengineering.com/articles/best-open-source-llms"
markdown_url: "https://theaiengineering.com/articles/best-open-source-llms.md"
topic: "LLM models and benchmarks"
author: "The AI Engineering Editors"
publisher: "The AI Engineering"
published: "2026-11-20"
updated: "2026-11-20"
keywords: ["best open source llm","best local llm","best ollama models","open weight models","open source llm comparison","best open source llm for coding"]
citation: "The AI Engineering Editors. \"Best open-source LLMs: open-weight models compared by use case.\" The AI Engineering, updated Nov 20, 2026. https://theaiengineering.com/articles/best-open-source-llms"
---

# Best open-source LLMs: open-weight models compared by use case

## TL;DR

- Most models called open-source LLMs are open-weights models: the trained parameters can be downloaded, but training code and data information, which the OSI's Open Source AI Definition also requires, are usually not released.
- As of November 2026, the largest open-weights models, Kimi K3.1 Pro (2.8T total parameters) and Qwen3.8-Max (2.4T), are mixture-of-experts models that need a multi-GPU cluster to self-host.
- DeepSeek-V4-Pro (MIT), Inkling 2 Small (Apache 2.0), and Command A+ (Apache 2.0) pair large models with permissive licenses, while Kimi, Qwen3.8-Max, GLM-5.3, MiniMax, Muse Spark Open, and Mistral Large 4 use custom licenses with conditions for large model-as-a-service businesses.
- Ollama's library offered Gemma 4, Qwen3.8-27B, Muse Glimmer, and gpt-oss as local downloads on November 16, 2026, and listed most frontier-class open models only as cloud models.
- Weight memory is roughly total parameters times bytes per parameter (2 at BF16, 1 at FP8, about 0.5 at 4-bit), plus KV cache that grows with context length.

The best open-source LLMs in November 2026 are open-weights models: [large language models](https://theaiengineering.com/glossary/large-language-model) whose trained parameters anyone can download and run on their own hardware, under licenses that range from Apache 2.0 to custom terms with revenue thresholds. This comparison groups 14 of them by use: frontier-class general models, coding, reasoning, local use on laptops with Ollama, and multilingual work. Each entry was checked against the lab's model card, announcement, or license on November 16, 2026. For more on how new models change what teams can build, see the [models topic hub](https://theaiengineering.com/topics/models).

## What is the difference between open source and open weights?

An [open-weights model](https://theaiengineering.com/glossary/open-weights-model) publishes its trained parameters for download under a license that may limit some uses. Open source AI also requires the code to train and run the model and enough information about its training data to rebuild it. Almost every model on this list is open weights; few meet the open source definition.

The Open Source Initiative's [Open Source AI Definition](https://opensource.org/ai/open-source-ai-definition), at version 1.0, requires three components under terms that let anyone use, study, modify, and share the system for any purpose: data information detailed enough that a skilled person could build a substantially equivalent system, the complete training and inference code, and the parameters themselves. A release can fall short on either axis: by withholding components, or by attaching license terms that restrict who may use it.

**Figure 1: Every model in this list publishes weights and inference support. Few publish training code and data information, which the OSI definition also requires.**

Four layers a model release can include, from weights at the bottom to training data information at the top. Open weights covers the bottom two layers; open source AI covers all four.

Layers, top to bottom:

1. **Training data information**: Sources, selection, processing (Nemotron 3 Ultra: most corpora published, OLMo)
2. **Training code and recipes**: Pre-training, post-training, RL environments (NeMo Gym environments, End-to-end recipes)
3. **Inference code and config**: Architecture, tokenizer, chat template (vLLM, SGLang, llama.cpp, Transformers)
4. **Weights**: Every release on this list (MIT or Apache 2.0, Custom license with conditions)

Open weights spans Inference code and config through Weights. Open source AI (OSI) spans Training data information through Weights.

Licenses split the list into two groups:

- **Standard permissive licenses.** MIT (DeepSeek) and Apache 2.0 (gpt-oss, Gemma 4, Qwen3.8-27B, Muse Glimmer, Inkling 2 Small, Command A+) allow commercial use, modification, and redistribution, with notice requirements. NVIDIA's OpenMDW-1.1, a Linux Foundation license, [covers code, parameters, and datasets](https://huggingface.co/blog/linuxfoundation/openmdw) and allows modification and redistribution for any purpose.
- **Custom licenses.** Moonshot AI, Alibaba's Qwen team (for Qwen3.8-Max), Z.ai, MiniMax, Meta, and Mistral AI write their own terms. Most start from an MIT-style grant and add conditions for large model-as-a-service (MaaS) businesses, display notices, or usage policies.

Among the frontier-class models here, NVIDIA's Nemotron 3 Ultra comes closest to the open source bar. Its model card says major portions of the pre-training and post-training corpora are published, along with RL environments and the end-to-end recipe, though some datasets remain private.

## How were these models selected?

The list starts from the releases marked open-weights in the site's [release tracker](https://theaiengineering.com/releases), most of them from 2026, then keeps the newest version of each family that is a finished, general-purpose release. Each model then had to stand out on at least one of these criteria, checked on the lab's own pages:

1. **Capability on the lab's reported benchmarks**, with the benchmark, version, and setting stated. Labs choose their own benchmarks and agent setups, so scores from different model cards are not directly comparable; [LLM benchmarks explained](https://theaiengineering.com/articles/llm-benchmarks) covers why.
2. **License terms for commercial use**, read from the license file, not the model card summary.
3. **Size and hardware needs**, using total and active parameter counts for [mixture-of-experts](https://theaiengineering.com/glossary/mixture-of-experts) models.
4. **[Context window](https://theaiengineering.com/glossary/context-window)** as stated by the lab, noting where the default differs from the maximum.
5. **Tool use and multilingual support**, as documented on the model card.
6. **Availability** on Hugging Face and in Ollama's library, checked on November 16, 2026.

Some of the newest tracker entries are not finished general-purpose releases. Baidu's [ERNIE 5.5 Flash Base](https://ernie.baidu.com/release/ernie-5-5-flash-base/) is the checkpoint at the end of pre-training, before any post-training; Baidu says the post-trained model will follow. Nous Research's [Arete-27B](https://nousresearch.com/arete) is a fine-tune of Qwen3.8-27B, which appears below. Previews, OCR models, and embedding models are also left out.

## Open-weight LLMs compared at a glance

The table below lists all 14 entries with their total and active parameters, context window, license, the use each fits best, and Ollama status on November 16, 2026. "Cloud" means Ollama lists the model only as a cloud model, which [runs on Ollama's servers](https://docs.ollama.com/cloud) and requires an Ollama account.

| Model | Lab | Parameters (total / active) | Context | License | Best for | Ollama |
|---|---|---|---|---|---|---|
| Kimi K3.1 Pro | Moonshot AI | 2.8T / 104B | 1M | Kimi K3.1 Pro License | Frontier agentic and knowledge work | Cloud |
| DeepSeek-V4-Pro-0813 | DeepSeek | 1.6T / 49B | 1M | MIT | Frontier capability under MIT | Cloud |
| Qwen3.8-Max (2.4T-A95B) | Alibaba Qwen | 2.4T / 95B | 262K native, about 1M extended | Qwen3.8-Max License | Long-horizon coding and office work | Not listed |
| Muse Spark Open | Meta | 816B / 42B | 1M | Muse Model License | Text, image, video, and audio input | Cloud |
| Inkling 2 Small | Thinking Machines Lab | 594B / 17B | 1M | Apache 2.0 | Frontier-class model under Apache 2.0 | Cloud |
| GLM-5.3 | Z.ai | 753B (file listing) | 1M | GLM-5.3 License | Agentic coding | Cloud |
| MiniMax M3.1 Flash | MiniMax | About 428B / 23B | 1M | MiniMax Community License | Coding agents and computer use | Cloud |
| Nemotron 3 Ultra | NVIDIA | 550B / 55B | 1M (256K default) | OpenMDW-1.1 | Reasoning with published training data | Cloud |
| gpt-oss-120b and 20b | OpenAI | 117B / 5.1B; 21B / 3.6B | 128K | Apache 2.0 | Reasoning on one GPU or a laptop | Local |
| Gemma 4 | Google | E2B to 31B; 26B MoE: 25.2B / 3.8B | 128K to 256K | Apache 2.0 | Phones, laptops, and edge devices | Local |
| Qwen3.8-27B | Alibaba Qwen | 27B dense | 262K | Apache 2.0 | Local coding agents | Local |
| Muse Glimmer | Meta | 30B | 128K (Ollama) | Apache 2.0 | Local agents on 24 to 32 GB | Local |
| Command A+ | Cohere | 218B / 25B | 128K | Apache 2.0 | 48 languages, enterprise deployment | Not listed |
| Mistral Large 4 | Mistral AI | About 1T / 52B | 1M | Mistral Ecosystem Open-Weight License | 160+ languages | Cloud |

## Best overall: frontier-class open weights

The frontier-class general-purpose open-weights models in November 2026 are mixture-of-experts releases between 594B and 2.8T total parameters, each with a context window of 262K tokens or more. Kimi K3.1 Pro, DeepSeek-V4-Pro, and Qwen3.8-Max are the largest. Inkling 2 Small and DeepSeek carry the most permissive licenses in this group.

### Kimi K3.1 Pro (Moonshot AI)

- **What it is:** Moonshot AI's flagship, a post-trained version of Kimi K3 [released in October 2026](https://theaiengineering.com/releases/2026/10#kimi-k3-1-pro) for coding, finance, 3D and CAD generation, and other agentic work. Weights are on [Hugging Face](https://huggingface.co/moonshotai/Kimi-K3.1-Pro).
- **Size and context:** 2.8T total and 104B active parameters, routing each token to 16 of 896 experts. 1,048,576-token context, text and image input, MXFP4 weights trained with quantization-aware training.
- **License:** The Kimi K3.1 Pro License, an MIT-style grant. MaaS businesses above $20 million in revenue over 12 months need a separate agreement with Moonshot AI, and products above 100 million monthly active users or $20 million in monthly revenue must display the model name.
- **Strengths:** At maximum reasoning effort (temperature 1.0, top-p 0.95), Moonshot reports 94.2 on GPQA-Diamond, 70.0 on HLE-Full with tools, and 65.7 on Terminal-Bench 4.0 run in Claude Code.
- **Trade-offs:** The largest model on this list. At about half a byte per parameter, the weights alone approach 1.4 TB. Ollama lists it as cloud only.
- **Best for:** Teams with a GPU cluster that want the largest open-weights model for long agentic tasks.

### DeepSeek-V4-Pro-0813 and V4.1-Flash-1017 (DeepSeek)

- **What it is:** [DeepSeek-V4-Pro-0813](https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro-0813) is the August 13, 2026 general availability release of [DeepSeek-V4-Pro](https://theaiengineering.com/releases/2026/08#deepseek-v4-pro-0813), with a DSpark speculative decoding module attached. [DeepSeek-V4.1-Flash-1017](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017), from October 17, is the newest model, built on DeepSeek's new Causal Encoder-Decoder architecture with native image input.
- **Size and context:** V4-Pro has 1.6T total and 49B active parameters; V4.1-Flash is a 552B-parameter MoE that activates 8B parameters for input and 16B for output. Both support a 1M-token context, with low, high, and max reasoning effort on V4-Pro.
- **License:** MIT for code and weights.
- **Strengths:** For V4-Pro-0813 at max effort (temperature 1.0, top-p 0.95), DeepSeek reports 87.9 on Terminal Bench 2.1 and 42.7 on HLE without tools, 60.0 with tools. For V4.1-Flash-1017, it reports 77.0 on DeepSWE v1.1 with the Mini-SWE-V2 agent.
- **Trade-offs:** V4-Pro is text only. Both are cloud only in Ollama.
- **Best for:** Frontier-scale self-hosting under the MIT license, with V4.1-Flash as the smaller multimodal option.

### Qwen3.8-Max (Alibaba Qwen)

- **What it is:** The first Qwen-Max-class model with open weights, published as [Qwen3.8-2.4T-A95B](https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B) on August 12, 2026, after [Qwen3.8-Max launched](https://theaiengineering.com/releases/2026/08#qwen3-8-max) on Alibaba's API.
- **Size and context:** 2.4T total and 95B active parameters. 262,144-token native context, extensible to 1,010,000. The open checkpoint is text only, and thinking cannot be disabled; reasoning effort is set to xhigh, medium, or low.
- **License:** The Qwen3.8-Max License. MaaS and AI work assistant businesses (coding or office productivity products) above $50 million in revenue over 12 months need a separate license, and products above 100 million monthly active users or $20 million in monthly revenue must display the model name.
- **Strengths:** Qwen reports 86.6 on Terminal Bench 2.1 (Claude Code, averaged over 10 runs), 67.7 on SWE-bench Pro, and 92.6 on GPQA Diamond.
- **Trade-offs:** Vision input and a non-thinking mode exist only in the Qwen3.8-Max API version. Not in Ollama's library.
- **Best for:** Long-horizon coding and office tasks where the license thresholds do not apply.

### Muse Spark Open (Meta)

- **What it is:** The open-weights member of Meta Superintelligence Labs' Muse family, [released October 15, 2026](https://research.meta.ai/blog/muse-spark-open) for coding and agentic work. The most recent Llama models in the release tracker are Llama 4 Scout and Maverick, from April 2025.
- **Size and context:** 816B total and 42B active parameters, routing each token to 8 of 256 experts. 1M-token context. Accepts text, image, video, and audio, and was trained on data from more than 100 languages.
- **License:** The Muse Model License. Products must display "Built with Muse Spark Open," MaaS businesses above $20 million in revenue over 12 months must sign a separate agreement with Meta, and a usage policy applies.
- **Strengths:** At xhigh reasoning effort, Meta's model card reports 89.0 on GPQA Diamond, 76.4 on Terminal-Bench 2.1 with the Terminus 2 agent, and 80.4 on OSWorld Verified.
- **Trade-offs:** The card lists at least 700 GB of GPU memory for the NVFP4 weights and 2 TB for BF16. The Hugging Face repository is gated behind license acceptance.
- **Best for:** Agents that need audio and video input as well as text and images.

### Inkling 2 Small (Thinking Machines Lab)

- **What it is:** Thinking Machines Lab's newest model, [announced November 5, 2026](https://thinkingmachines.ai/news/inkling-2-small/) with closed weights on Tinker. The lab posted the weights to [Hugging Face](https://huggingface.co/thinkingmachines/Inkling-2-Small) on November 12, after safety testing.
- **Size and context:** 594B total and 17B active parameters, routing each token to 8 of 384 experts. Up to 1M tokens of context, with text and image input. Trained in NVFP4, which the card recommends for all use cases.
- **License:** Apache 2.0.
- **Strengths:** At effort 0.99 and temperature 1.0, the lab reports 72.1% on DeepSWE v1.1 (mini-swe-agent), 90.2% on BrowseComp with context compaction, and 81.7% on ARC-AGI-2.
- **Trade-offs:** The NVFP4 checkpoint needs at least 500 GB of aggregated GPU memory, such as two B300 or four H200 GPUs. It is the newest entry on this list, and Ollama lists it as cloud only.
- **Best for:** Frontier-class self-hosting under Apache 2.0.

## Best open-source LLMs for coding

The open-weights models built most directly for [agentic coding](https://theaiengineering.com/articles/best-llm-for-coding) are Z.ai's GLM-5.3 and MiniMax M3.1 Flash. Both pair a 1M-token context with lab-reported results on repository-scale benchmarks such as DeepSWE and NL2Repo. Qwen3.8-Max and DeepSeek-V4-Pro also report Terminal Bench 2.1 scores above 85, and Qwen3.8-27B covers local coding.

### GLM-5.3 (Z.ai)

- **What it is:** Z.ai's flagship coding model, [released in August 2026](https://theaiengineering.com/releases/2026/08#glm-5-3). Z.ai says it uses the same base model as GLM-5.2, with every gain coming from post-training. Weights are on [Hugging Face](https://huggingface.co/zai-org/GLM-5.3).
- **Size and context:** A mixture-of-experts model listed at 753B parameters on Hugging Face; the GLM-5.3 pages do not restate the active count (GLM-5, the series' first model, activated 40B of 744B). 1M-token context, up to 128K output tokens, and [text-only input](https://docs.z.ai/guides/llm/glm-5.3).
- **License:** The GLM-5.3 License, an MIT-style grant. MaaS businesses above $10 billion in revenue over 12 months must pass a Z.ai security review before commercial use.
- **Strengths:** Z.ai reports 88.2 on Terminal Bench 2.1 (Claude Code 2.1.207, temperature 1.0), 78.1 on FrontierSWE, and 66.9 on DeepSWE v1.1 with mini-swe-agent.
- **Trade-offs:** Reasoning is always on (low, high, or max effort), so short replies still pay for reasoning tokens. Cloud only in Ollama.
- **Best for:** Self-hosted coding agents; the security review applies only to MaaS businesses above $10 billion in revenue.

### MiniMax M3.1 Flash (MiniMax)

- **What it is:** An open-weights multimodal model for coding, agentic workflows, computer use, and cybersecurity, released in October 2026. Weights are on [Hugging Face](https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash).
- **Size and context:** About 428B total and 23B active parameters. Up to 1M tokens of context, with text, image, and video input. Quantization-aware training covers the routed experts and attention paths.
- **License:** The MiniMax Community License. Commercial use requires a "Built with MiniMax M3.1-Flash" attribution and a one-time notice to MiniMax; above $20 million in yearly revenue it requires prior written authorization. Prohibited uses include military purposes.
- **Strengths:** MiniMax reports 73.7 on DeepSWE v1.1 (mini-SWE-agent 2.4.5, 512K context), 61.2 on NL2Repo-Bench in Claude Code, and 82.2 on CyberGym.
- **Trade-offs:** The license is the most restrictive of the coding entries, because every commercial user must attribute and notify. Cloud only in Ollama.
- **Best for:** Coding and computer-use agents that need image or video input at a lower active parameter count than GLM-5.3.

## Best open-source LLMs for reasoning

Almost every model on this list is a reasoning model that generates thinking tokens before answering. NVIDIA's Nemotron 3 Ultra publishes most of its training data and recipe, and OpenAI's gpt-oss runs on a single GPU under Apache 2.0; both expose explicit reasoning controls. [Reasoning models](https://theaiengineering.com/articles/reasoning-models) explains the trade-offs.

### Nemotron 3 Ultra (NVIDIA)

- **What it is:** NVIDIA's largest Nemotron 3 model, released in June 2026 for complex agentic workflows, long-context analysis, and multilingual reasoning. Weights are on [Hugging Face](https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16) in BF16 and NVFP4.
- **Size and context:** 550B total and 55B active parameters in a hybrid of Mamba-2, mixture-of-experts, and attention layers. Up to 1M tokens, though the default serving configuration uses 256K. The card lists 10 supported languages.
- **License:** OpenMDW-1.1, which NVIDIA's card describes as ready for commercial and non-commercial use.
- **Strengths:** Reasoning can be switched on or off, set to medium effort, or capped with a token budget. NVIDIA reports 87.0 on GPQA without tools, 88.6 on IMOAnswerBench without tools, 89.0 on LiveCodeBench v6, and 94.7 on RULER at 1M tokens; the card does not give per-row sampling settings.
- **Trade-offs:** The minimum listed hardware is eight B200, eight H200, or sixteen H100 GPUs. Its reported Terminal Bench 2.1 score of 56.4 is lower than GLM-5.3's or DeepSeek-V4-Pro's, though each lab used its own agent setup. Cloud only in Ollama.
- **Best for:** Teams that want to inspect or reproduce the training data and recipe, or build on NVIDIA's published RL environments in NeMo Gym.

### gpt-oss-120b and gpt-oss-20b (OpenAI)

- **What it is:** OpenAI's open-weights reasoning models, released in August 2025 with adjustable reasoning effort, full chain-of-thought, tool use, and Structured Outputs. Code and docs are on [GitHub](https://github.com/openai/gpt-oss).
- **Size and context:** gpt-oss-120b has 117B total and 5.1B active parameters; gpt-oss-20b has 21B and 3.6B. Both use a 131,072-token context. MXFP4 quantization of the MoE weights lets the 120b fit on one 80 GB GPU and the 20b run within 16 GB.
- **License:** Apache 2.0.
- **Strengths:** At high reasoning effort, the [gpt-oss model card](https://arxiv.org/abs/2508.10925) reports GPQA Diamond (no tools) of 80.1% for 120b and 71.5% for 20b, and SWE-bench Verified of 62.4% and 60.7%. Reasoning effort is set to low, medium, or high in the system prompt.
- **Trade-offs:** The oldest entry here, text only, and both models require OpenAI's harmony response format to work correctly.
- **Best for:** Reasoning on a single data center GPU (120b) or a 16 GB laptop (20b), under Apache 2.0.

## Best local LLMs for laptops and Ollama

The best local LLMs in November 2026 are dense or small mixture-of-experts models between 2B and 31B parameters that fit in 8 to 32 GB of memory at 4-bit precision. Gemma 4, Qwen3.8-27B, Muse Glimmer, and gpt-oss-20b are all Apache 2.0 and all run locally through Ollama.

A small language model trades capability for the ability to [run on one machine with no data leaving it](https://theaiengineering.com/articles/self-hosted-llm). Ollama serves [GGUF](https://theaiengineering.com/glossary/gguf)-based builds, and on Apple silicon several of these models also have MLX tags. Download sizes from Ollama's library on November 16, 2026:

| Model | Ollama tag | Download size | Context |
|---|---|---|---|
| Gemma 4 E2B | `gemma4:e2b` | 4.6 to 7.5 GB | 128K |
| Gemma 4 E4B | `gemma4:e4b` | 6.6 to 9.5 GB | 128K |
| Gemma 4 12B | `gemma4:12b` | 7.7 to 8.0 GB | 256K |
| Gemma 4 26B MoE | `gemma4:26b` | 16 to 19 GB | 256K |
| gpt-oss-20b | `gpt-oss:20b` | 14 GB | 128K |
| Qwen3.8-27B | `qwen3.8:27b` | 18 GB | 256K |
| Muse Glimmer | `muse-glimmer:30b` | 18 GB | 128K |
| Gemma 4 31B | `gemma4:31b` | 19 to 20 GB | 256K |
| gpt-oss-120b | `gpt-oss:120b` | 65 GB | 128K |

```bash
ollama run gemma4:e4b         # Gemma 4 edge model, 128K context
ollama run qwen3.8:27b        # dense 27B with image input, 256K context
ollama run muse-glimmer:30b   # Meta's 30B local agent model
ollama run gpt-oss:20b        # 21B MoE reasoning model
```

### Gemma 4 (Google)

- **What it is:** Google DeepMind's fourth generation of open models, [released April 2, 2026](https://theaiengineering.com/releases/2026/04#gemma-4), with a 12B model added in June. The [model card](https://ai.google.dev/gemma/docs/core/model_card_4) lists E2B, E4B, 12B, 26B A4B, and 31B sizes.
- **Size and context:** E2B and E4B have 2.3B and 4.5B effective parameters and a 128K context. The 26B A4B is a mixture-of-experts model with 25.2B total and 3.8B active parameters; the 12B, 26B, and 31B models have a 256K context. E2B, E4B, and 12B accept audio as well as images.
- **License:** Apache 2.0.
- **Strengths:** Pretrained on more than 140 languages, with ready support for more than 35. Google reports GPQA Diamond of 84.3% for 31B and 82.3% for 26B A4B, and LiveCodeBench v6 of 80.0% and 77.1%, for the instruction-tuned models. Native function calling and structured JSON output.
- **Trade-offs:** Google's card reports no repository-scale coding benchmarks, and the 31B scores 19.5% on HLE without tools. The E2B and E4B scores drop sharply (58.6% GPQA Diamond for E4B).
- **Best for:** Phones, laptops, and edge devices, and the 26B MoE when speed on modest hardware matters most.

### Qwen3.8-27B (Alibaba Qwen)

- **What it is:** A dense 27B model in the Qwen3.8 series, released August 14, 2026, with a vision encoder. Weights are on [Hugging Face](https://huggingface.co/Qwen/Qwen3.8-27B), and Ollama lists it as [`qwen3.8`](https://ollama.com/library/qwen3.8).
- **Size and context:** 27B parameters, 262,144-token native context, extensible to 1,000,000 with YaRN. Text, image, and video input.
- **License:** Apache 2.0, unlike the Qwen3.8-Max checkpoint.
- **Strengths:** Qwen reports 61.7 on SWE-bench Pro, 73.0 on Terminal Bench 2.1 with the Terminus agent, 89.2 on GPQA Diamond, and 90.3 on LiveCodeBench v6. Thinking can be disabled per request.
- **Trade-offs:** As a dense model, every token runs all 27B parameters, so it generates more slowly than a 3B-active MoE of similar size. The Ollama build is an 18 GB download, before KV cache memory.
- **Best for:** Local coding agents and the base for fine-tunes, such as Nous Research's Arete-27B.

### Muse Glimmer (Meta)

- **What it is:** A 30B open-weights model from Meta Superintelligence Labs, [released August 10, 2026](https://research.meta.ai/blog/introducing-muse-glimmer-open-agentic-model), distilled from Muse Spark for always-on local agent workflows. Ollama lists it as [`muse-glimmer`](https://ollama.com/library/muse-glimmer).
- **Size and context:** 30B parameters. Ollama lists a 128K context. Accepts interleaved text and images, and was trained on data from more than 100 languages.
- **License:** Apache 2.0.
- **Strengths:** Meta sized it for a Mac or a PC with one consumer GPU. At about 4-bit precision the language model is under 20 GB, targeting a 24 GB or 32 GB budget that includes the KV cache and a speculative decoding drafter.
- **Trade-offs:** Meta published its benchmark comparisons with Gemma 4 31B and Qwen3.6-27B as a chart and points to a separate report for settings, so this list cites no score for it.
- **Best for:** A local agent on a 24 to 32 GB machine with permissive terms.

## Best open-source LLMs for multilingual use

For multilingual work, Cohere's Command A+ documents 48 supported languages and Mistral Large 4 states fluency in more than 160. Several general models also cover many languages: Gemma 4 was pretrained on more than 140, Muse Spark Open and Muse Glimmer on more than 100, and Qwen's README says Qwen3.5 expanded support to 201 languages and dialects.

### Command A+ (Cohere)

- **What it is:** The last model in Cohere's Command A family and its first mixture-of-experts model, [released May 20, 2026](https://cohere.com/blog/command-a-plus) for reasoning, translation, vision input, and agentic tasks. Weights are on Hugging Face under CohereLabs in BF16, FP8, and W4A4.
- **Size and context:** 218B total and 25B active parameters. 128K input tokens and up to 64K output tokens.
- **License:** Apache 2.0.
- **Strengths:** Cohere's changelog lists [48 languages](https://docs.cohere.com/v2/changelog/command-a-plus-05-2026), including all official EU languages. It runs on as few as two H100 GPUs or one B200. Cohere reports 75.1% on MMMU and 37 on the Artificial Analysis Intelligence Index.
- **Trade-offs:** A 128K context, shorter than the 1M of most large models here, and fewer published benchmark scores than other entries. Not in Ollama's library.
- **Best for:** Enterprise deployments in European and Asian languages that need a permissive license and a two-GPU footprint.

### Mistral Large 4 (Mistral AI)

- **What it is:** Mistral AI's largest model, launched as an API preview on October 6, 2026, with improved weights on [Hugging Face](https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B) later that month. Aimed at agentic coding, cybersecurity, and knowledge work.
- **Size and context:** About 1T total and 52B active parameters (49B excluding embeddings and output layers). 1M-token context, text and image input, and low, medium, or high reasoning.
- **License:** The Mistral Ecosystem Open-Weight License, a modified MIT license covering commercial and non-commercial use. Running a MaaS business requires a separate commercial license from Mistral.
- **Strengths:** The model card states native fluency in more than 160 languages, including all official EU languages. It ships GGUF quantizations and an NVFP4 checkpoint. Mistral reports 41 on Terminal-Bench 4 and 26 on the Artificial Analysis Intelligence Index v5.
- **Trade-offs:** The MaaS restriction applies at any revenue level, unlike the thresholds in other custom licenses here. The card's serving examples use eight GPUs with tensor parallelism. Cloud only in Ollama.
- **Best for:** Multilingual knowledge work, especially in European languages, on a team's own infrastructure.

## Running open-weight models: memory and hardware

To estimate the memory an open-weights model needs, multiply its total parameter count by the bytes per parameter at the precision you load: about 2 bytes for BF16, 1 for FP8, and 0.5 for 4-bit formats. Then add room for the KV cache, which grows with context length and concurrent requests, and for runtime overhead.

For mixture-of-experts models, use total parameters, because every expert must be resident even though each token uses only a few. [Quantization](https://theaiengineering.com/glossary/quantization) is the main lever on memory: a 4-bit build needs about a quarter of the memory of BF16, usually with some quality loss.

**Figure 2: A mixture-of-experts model computes each token with a few experts, but every expert stays in memory.**

A token enters a router that sends it to two of four experts. All four experts sit in GPU memory, so memory follows total parameters while compute follows active parameters.

Components:

- **Token**
- **Router**: picks top-k experts
- **Expert 1**: active
- **Expert 2**: idle
- **Expert 3**: active
- **Expert N**: idle
- **Next layer**
- **Memory**: total parameters Gemma 4 26B: 25.2B
- **Compute per token**: active parameters Gemma 4 26B: 3.8B

Groups:

- All experts loaded in GPU memory: Expert 1, Expert 2, Expert 3, Expert N

Connections:

- Token → Router
- Router → Expert 1
- Router → Expert 3
- Expert 1 → Next layer
- Expert 3 → Next layer

The table applies the formula to models on this list and compares it with what each lab or Ollama states. The gap is KV cache, activations, layers kept at higher precision, and serving overhead.

| Model | Total parameters | Precision | Weights by the formula | Stated requirement |
|---|---|---|---|---|
| Qwen3.8-27B | 27B | 4-bit | About 14 GB | 18 GB Ollama download |
| Muse Glimmer | 30B | BF16 and about 4-bit | About 60 GB and 15 GB | Over 55 GB and under 20 GB (Meta) |
| gpt-oss-120b | 117B | MXFP4 (MoE weights) | About 59 GB | One 80 GB GPU (OpenAI) |
| Command A+ | 218B | W4A4 | About 109 GB | Two H100 or one B200 (Cohere) |
| Inkling 2 Small | 594B | NVFP4 | About 297 GB | 500 GB or more aggregated (Thinking Machines) |
| Muse Spark Open | 816B | BF16 | About 1.6 TB | 2 TB (Meta) |

Long contexts raise memory sharply. KV cache memory grows with context length and with the number of concurrent requests, so a 1M-token window is a ceiling, not a size to allocate by default. Set the context length explicitly: `num_ctx` or `OLLAMA_CONTEXT_LENGTH` in Ollama, or `--max-model-len` in vLLM.

The engine choice follows the hardware. Ollama, LM Studio, and llama.cpp suit one machine; vLLM and SGLang suit multi-GPU servers, and every frontier-class model above lists them as supported. [vLLM vs Ollama](https://theaiengineering.com/articles/vllm-vs-ollama) compares the engines, and the [LLM inference optimization guide](https://theaiengineering.com/articles/llm-inference-optimization) covers KV cache sizing, quantization, and speculative decoding. Teams that want these models without running GPUs can use the hosted APIs from the labs themselves, listed in the [model providers directory](https://theaiengineering.com/platforms/model-providers).

## How to choose an open-source LLM

Pick by hardware first, then license, then measured quality on your own tasks. If the model must run on a laptop, the choice is among Gemma 4, Qwen3.8-27B, Muse Glimmer, and gpt-oss-20b. If it must be MIT or Apache 2.0 at frontier scale, DeepSeek-V4-Pro and Inkling 2 Small qualify.

To narrow the list:

1. **Set the memory budget.** Apply the formula above, including the context length you need.
2. **Read the license file.** Check MaaS clauses, revenue thresholds, display notices, and usage policies against how you will ship. Terms change between versions, as Qwen3.8-27B (Apache 2.0) and Qwen3.8-Max (custom) show within one series.
3. **Shortlist two or three models** whose lab-reported benchmarks match your task type, such as agentic coding, reasoning, or multilingual chat.
4. **Run your own evaluation** on prompts drawn from real traffic, with the same engine, precision, and reasoning effort you will use in production.
5. **Recheck every few months.** Six of the 14 entries include a release from October or November 2026.

## Frequently asked questions

### What is the best open source LLM?

No open-weights model leads on every task. As of November 2026, Kimi K3.1 Pro, DeepSeek-V4-Pro, and Qwen3.8-Max are the largest general-purpose releases and report strong results on their labs' own coding and reasoning benchmarks. DeepSeek-V4-Pro (MIT) and Inkling 2 Small (Apache 2.0) combine frontier-class size with permissive licenses. On a single GPU or laptop, Gemma 4, Qwen3.8-27B, and gpt-oss are common starting points. Test a shortlist on your own tasks.

### What is the best local LLM?

The best local LLM is the strongest model that fits your memory. With 8 to 16 GB, Gemma 4 E4B, Gemma 4 12B, or gpt-oss-20b fit; OpenAI says gpt-oss-20b runs within 16 GB. With 24 to 32 GB, Qwen3.8-27B, Muse Glimmer, and Gemma 4 26B or 31B fit at 4-bit precision. A single 80 GB GPU runs gpt-oss-120b. Leave memory for the KV cache, which grows with context length.

### What are the best Ollama models?

On November 16, 2026, Ollama's library offered these recent open-weights models as local downloads: gemma4 (e2b, e4b, 12b, 26b, and 31b tags), qwen3.8:27b at 18 GB, muse-glimmer:30b at 18 GB, and gpt-oss:20b at 14 GB, plus gpt-oss:120b at 65 GB. Kimi K3.1 Pro, GLM-5.3, DeepSeek-V4-Pro, Muse Spark Open, and Mistral Large 4 were listed as cloud models, which run on Ollama's servers and need an Ollama account.

### What is the difference between open source and open weights?

An open-weights model publishes its trained parameters for download under a license that may restrict some uses. Open source AI, as the Open Source Initiative defines it in version 1.0 of its Open Source AI Definition, also requires the training and inference code and enough information about the training data to build a substantially equivalent system, all under terms that allow use for any purpose. Most models marketed as open source LLMs meet only the first test.

### Can open-source LLMs be used commercially?

Most can, but the conditions differ by license. MIT and Apache 2.0 models, such as DeepSeek-V4-Pro, gpt-oss, Gemma 4, Qwen3.8-27B, and Command A+, allow commercial use with notice requirements. Custom licenses add conditions: Kimi K3.1 Pro and Muse Spark Open require a separate agreement for model-as-a-service businesses above $20 million in revenue, and MiniMax requires attribution and a notice for any commercial use. Read the license for the exact version you deploy.

### How much VRAM do I need to run an LLM?

Multiply the total parameter count by the bytes per parameter at your precision: about 2 bytes at BF16, 1 at FP8, and 0.5 at 4-bit. A 27B model needs about 54 GB at BF16 and about 14 GB at 4-bit, before the KV cache and runtime overhead. Mixture-of-experts models need memory for all experts, so use total parameters, not active ones. Labs' stated requirements run higher than this estimate.

## Terms in this guide

- [Open-weights model](https://theaiengineering.com/glossary/open-weights-model): An open-weights model is an AI model whose trained parameters are published for download, so anyone can run, fine-tune, or quantize it on their own hardware under the terms of its license.
- [Large language model (LLM)](https://theaiengineering.com/glossary/large-language-model): A large language model (LLM) is a neural network, usually a transformer with billions of parameters, trained on web-scale text to predict the next token and then adapted to follow instructions.
- [Mixture of experts](https://theaiengineering.com/glossary/mixture-of-experts): Mixture of experts (MoE) is a neural network architecture in which a learned router sends each token to a few specialized subnetworks, called experts, so only part of the model runs per token.
- [Context window](https://theaiengineering.com/glossary/context-window): A context window is the maximum number of tokens a language model can take into account in a single request, including the system prompt, conversation history, tool results, and the generated output.
- [Reasoning model](https://theaiengineering.com/glossary/reasoning-model): A reasoning model is a large language model trained, usually with reinforcement learning, to generate intermediate reasoning tokens before its final answer, spending more inference compute to solve multi-step problems.
- [Quantization](https://theaiengineering.com/glossary/quantization): Quantization is a model compression technique that represents a neural network's weights, and sometimes its activations or KV cache, with fewer bits, such as 8-bit or 4-bit integers instead of 16-bit floats.
- [GGUF](https://theaiengineering.com/glossary/gguf): GGUF is a binary file format for running LLMs with GGML-based engines such as llama.cpp, packing the weights, often quantized, and all the metadata needed to load the model into one file.
- [Small language model](https://theaiengineering.com/glossary/small-language-model): A small language model (SLM) is a language model compact enough to run on a consumer device such as a laptop or phone, which in 2025 generally meant fewer than about 10 billion parameters.

## Related guides

- [How to self-host an LLM: hardware, serving engines, and a production setup](https://theaiengineering.com/articles/self-hosted-llm): Self-hosted LLM guide: size GPU memory for weights and KV cache, run models locally with Ollama or llama.cpp, and serve them with vLLM, SGLang, or Kubernetes.
- [Best LLM for coding: models compared on agentic coding benchmarks](https://theaiengineering.com/articles/best-llm-for-coding): The best LLM for coding depends on the job: 11 models compared on Terminal-Bench 4.0, DeepSWE, and SWE-bench Pro, plus context, open weights, and cost.
- [Best embedding models for RAG: proprietary and open models compared](https://theaiengineering.com/articles/best-embedding-models): The best embedding models for RAG compared: Voyage 4, Cohere Embed 5, Gemini Embedding 2, OpenAI, Qwen3, BGE-M3, and more, by dimensions, context, and license.
- [vLLM vs Ollama vs llama.cpp vs SGLang: which engine to use](https://theaiengineering.com/articles/vllm-vs-ollama): vLLM vs Ollama compared with llama.cpp, SGLang, LM Studio, and TensorRT-LLM: scope, hardware, APIs, concurrency, and which engine fits local or production use.

Part of the [LLM models and benchmarks](https://theaiengineering.com/topics/models) topic hub.

## Cite this guide

The AI Engineering Editors. "Best open-source LLMs: open-weight models compared by use case." The AI Engineering, updated Nov 20, 2026. https://theaiengineering.com/articles/best-open-source-llms

- Title: Best open-source LLMs: open-weight models compared by use case
- Author: The AI Engineering Editors
- Publisher: The AI Engineering
- Published: 2026-11-20
- Updated: 2026-11-20
- URL: https://theaiengineering.com/articles/best-open-source-llms
- Markdown: https://theaiengineering.com/articles/best-open-source-llms.md

To cite one section, link to its anchor:

- [What is the difference between open source and open weights?](https://theaiengineering.com/articles/best-open-source-llms#what-is-the-difference-between-open-source-and-open-weights)
- [How were these models selected?](https://theaiengineering.com/articles/best-open-source-llms#how-were-these-models-selected)
- [Open-weight LLMs compared at a glance](https://theaiengineering.com/articles/best-open-source-llms#open-weight-llms-compared-at-a-glance)
- [Best overall: frontier-class open weights](https://theaiengineering.com/articles/best-open-source-llms#best-overall-frontier-class-open-weights)
- [Best open-source LLMs for coding](https://theaiengineering.com/articles/best-open-source-llms#best-open-source-llms-for-coding)
- [Best open-source LLMs for reasoning](https://theaiengineering.com/articles/best-open-source-llms#best-open-source-llms-for-reasoning)
- [Best local LLMs for laptops and Ollama](https://theaiengineering.com/articles/best-open-source-llms#best-local-llms-for-laptops-and-ollama)
- [Best open-source LLMs for multilingual use](https://theaiengineering.com/articles/best-open-source-llms#best-open-source-llms-for-multilingual-use)
- [Running open-weight models: memory and hardware](https://theaiengineering.com/articles/best-open-source-llms#running-open-weight-models-memory-and-hardware)
- [How to choose an open-source LLM](https://theaiengineering.com/articles/best-open-source-llms#how-to-choose-an-open-source-llm)
- [Frequently asked questions](https://theaiengineering.com/articles/best-open-source-llms#faq)
