Comparisons of Small Open Source AI Models (4B-40B)
Open source AI models with less than 40 billion parameters. Models are considered Open Source (also commonly referred to as open weights) where their weights are accessible to download. This allows self-hosting on your own infrastructure and enables customizing the model such as through fine-tuning. Click on any model to see detailed metrics. For more details including relating to our methodology, see our FAQs.
Qwen3 30B 2507 (Reasoning) and
gpt-oss-20B (high) are the highest intelligence Small open source models, defined as those with 4B-40B parameters, followed by
EXAONE 4.0 32B (Reasoning) &
QwQ-32B.
Highlights
Intelligence
Artificial Analysis Intelligence Index; Higher is better
Loading chart...
Total Parameters
Trainable parameters in billions
Loading chart...
Further details
Weights | Provider Benchmarks | |||||||
---|---|---|---|---|---|---|---|---|
Qwen3 30B A3B 2507 (Reasoning) Alibaba | 53 | 30.5B (3.3B active at inference time) | 32.8k | $0.8 | 110 | 🤗 | View | |
gpt-oss-20B OpenAI | 51 | 21B (3.6B active at inference time) | 131k | $0.1 | 297 | 🤗 | ![]() +4 more | View |
![]() EXAONE 4.0 32B (Reasoning) LG AI Research | 51 | 32B | 131k | $0.7 | 97 | 🤗 | View | |
QwQ 32B Alibaba | 48 | 32.8B | 131k | $0.5 | 54 | 🤗 | ![]() ![]() +3 more | View |
Qwen3 30B A3B 2507 (Non-reasoning) Alibaba | 46 | 30.5B (3.3B active at inference time) | 32.8k | $0.3 | 106 | 🤗 | View | |
Qwen3 14B (Reasoning) Alibaba | 45 | 14.8B | 32.8k | $1.3 | 54 | 🤗 | ![]() ![]() | View |
Qwen3 32B (Reasoning) Alibaba | 44 | 32.8B | 32.8k | $2.6 | 64 | 🤗 | +6 more | View |
Qwen3 30B A3B (Reasoning) Alibaba | 42 | 30.5B (3.3B active at inference time) | 32.8k | $0.8 | 77 | 🤗 | ![]() ![]() +4 more | View |
DeepSeek R1 0528 Qwen3 8B DeepSeek | 42 | 8.19B | 32.8k | $0.1 | 92 | 🤗 | View | |
DeepSeek R1 Distill Qwen 32B DeepSeek | 41 | 32B | 128k | $0.3 | 32 | 🤗 | ![]() | View |
Qwen3 8B (Reasoning) Alibaba | 41 | 8.19B | 32.8k | $0.7 | 99 | 🤗 | View | |
![]() EXAONE 4.0 32B LG AI Research | 40 | 32B | 131k | $0.7 | 89 | Not available | View | |
DeepSeek R1 Distill Qwen 14B DeepSeek | 38 | 14B | 128k | $0.2 | 85 | 🤗 | View | |
Qwen3 4B (Reasoning) Alibaba | 36 | 4.02B | 32.0k | $0.4 | 105 | 🤗 | ![]() | View |
![]() Reka Flash 3 Reka AI | 36 | 21B | 128k | $0.3 | 56 | 🤗 | ![]() | View |
![]() Magistral Small Mistral | 36 | 23.6B | 40.0k | $0.8 | 207 | 🤗 | ![]() | View |
Llama 3.1 Nemotron Nano 4B v1.1 (Reasoning) NVIDIA | 34 | 4.51B | 128k | - | - | 🤗 | - | View |
Qwen3 Coder 30B A3B Alibaba | 33 | 30.5B (3.3B active at inference time) | 262k | $0.9 | 114 | 🤗 | ![]() | View |
![]() Mistral Small 3.2 Mistral | 32 | 24B | 128k | $0.1 | 171 | 🤗 | ![]() ![]() | View |
QwQ 32B-Preview Alibaba | 32 | 32.8B | 32.8k | $0.7 | 50 | 🤗 | ![]() | View |
Qwen3 30B A3B Alibaba | 30 | 30.5B (3.3B active at inference time) | 32.8k | $0.3 | 84 | 🤗 | View | |
Qwen3 14B Alibaba | 30 | 14.8B | 32.8k | $0.6 | 55 | 🤗 | View | |
Qwen3 32B Alibaba | 30 | 32.8B | 32.8k | $1.2 | 64 | 🤗 | ![]() ![]() +6 more | View |
Phi-4 Microsoft Azure | 28 | 14B | 16.0k | $0.2 | 41 | 🤗 | ![]() ![]() | View |
Qwen2.5 Instruct 32B Alibaba | 26 | 32B | 128k | $0.1 | - | 🤗 | ![]() ![]() | View |
Qwen3 8B Alibaba | 25 | 8.19B | 32.8k | $0.3 | 100 | 🤗 | View | |
Gemma 3 27B Instruct Google | 25 | 27.4B | 128k | - | 58 | 🤗 | ![]() | View |
Qwen2.5 Coder Instruct 32B Alibaba | 25 | 32B | 131k | $0.1 | 53 | 🤗 | +1 more | View |
Gemma 3 12B Instruct Google | 24 | 12.2B | 128k | $0.1 | - | 🤗 | ![]() | View |
![]() Mistral Small 3.1 Mistral | 24 | 24B | 128k | $0.1 | 148 | 🤗 | ![]() | View |
![]() Mistral Small 3 Mistral | 24 | 24B | 32.0k | $0.1 | 59 | 🤗 | ![]() ![]() | View |
Qwen3 4B Alibaba | 24 | 4.02B | 32.0k | $0.2 | 107 | 🤗 | View | |
![]() Devstral Small (May '25) Mistral | 23 | 23.6B | 256k | $0.1 | 101 | 🤗 | ![]() ![]() | View |
DeepSeek R1 Distill Llama 8B DeepSeek | 23 | 8B | 128k | $0.0 | 48 | 🤗 | View | |
Solar Mini Upstage | 22 | 10.7B | 4.10k | $0.1 | 83 | 🤗 | View | |
![]() Devstral Small (Jul '25) Mistral | 21 | 24B | 256k | $0.1 | 154 | 🤗 | ![]() ![]() ![]() | View |
Gemma 2 27B Google | 20 | 27.2B | 8.19k | $0.8 | - | 🤗 | View | |
Gemma 3n E4B Instruct Google | 18 | 8.39B (4.0B active at inference time) | 32.0k | $0.0 | 82 | 🤗 | View | |
![]() DeepHermes 3 - Mistral 24B Preview Nous Research | 18 | 24B | 32.0k | - | - | 🤗 | - | View |
Granite 3.3 Instruct 8B IBM | 18 | 8.17B | 128k | - | - | 🤗 | - | View |
![]() Mistral Small (Sep '24) Mistral | 16 | 22B | 32.8k | $0.3 | 96 | 🤗 | ![]() | View |
Gemma 3n E4B Instruct Preview (May '25) Google | 15 | 8.39B (4B active at inference time) | 32.0k | - | - | 🤗 | - | View |
Phi-4 Multimodal Instruct Microsoft Azure | 15 | 5.6B | 128k | - | 22 | 🤗 | View | |
Qwen2.5 Coder Instruct 7B Alibaba | 15 | 7.62B | 131k | - | - | 🤗 | - | View |
Llama 2 Chat 7B Meta | 14 | 7B | 4.10k | $0.1 | 132 | 🤗 | View | |
Gemma 3 4B Instruct Google | 14 | 4.3B | 128k | $0.0 | - | 🤗 | ![]() | View |
Llama 3.2 Instruct 11B (Vision) Meta | 13 | 11B | 128k | $0.1 | 60 | 🤗 | ![]() | View |
Phi-3 Medium Instruct 14B Microsoft Azure | 13 | 14B | 128k | $0.3 | 53 | 🤗 | View | |
Llama 3.1 Instruct 8B Meta | 12 | 8B | 128k | $0.1 | 226 | 🤗 | ? +14 more | View |
![]() Pixtral 12B (2409) Mistral | 11 | 12B | 128k | $0.1 | 99 | 🤗 | ![]() | View |
Gemma 3n E2B Instruct Google | 10 | 5.98B (2.0B active at inference time) | 32.0k | - | 57 | 🤗 | View | |
![]() Ministral 8B Mistral | 10 | 8B | 128k | $0.1 | 185 | 🤗 | ![]() | View |
Gemma 2 9B Google | 10 | 9B | 8.19k | $0.2 | - | 🤗 | ![]() ![]() ![]() | View |
Llama 3 Instruct 8B Meta | 9 | 8B | 8.19k | $0.1 | 104 | 🤗 | ? +4 more | View |
DeepSeek Coder V2 Lite Instruct DeepSeek | 8 | 16B (2.4B active at inference time) | 128k | - | - | 🤗 | - | View |
![]() Codestral (May '24) Mistral | 8 | 22B | 32.8k | $0.3 | - | 🤗 | ![]() | View |
![]() Aya Expanse 32B Cohere | 8 | 32B | 128k | $0.8 | 121 | 🤗 | ![]() | View |
DeepSeek LLM 67B Chat (V1) DeepSeek | 8 | 7B | 4.10k | - | - | 🤗 | - | View |
Llama 2 Chat 13B Meta | 8 | 13B | 4.10k | - | - | 🤗 | - | View |
![]() OpenChat 3.5 (1210) OpenChat | 8 | 7B | 8.19k | - | - | 🤗 | - | View |
![]() Mistral NeMo Mistral | 8 | 12B | 128k | $0.1 | 184 | 🤗 | ![]() ![]() ![]() +1 more | View |
![]() DeepHermes 3 - Llama-3.1 8B Preview Nous Research | 4 | 8B | 128k | - | - | 🤗 | - | View |
![]() Aya Expanse 8B Cohere | 4 | 8B | 8.00k | $0.8 | 167 | 🤗 | ![]() | View |
![]() Command-R (Aug '24) Cohere | 3 | 32B | 128k | $0.3 | 72 | 🤗 | ![]() | View |
![]() Command-R (Mar '24) Cohere | 2 | 35B | 128k | $0.8 | 173 | 🤗 | ![]() | View |
![]() Codestral-Mamba Mistral | 2 | 7B | 256k | - | - | 🤗 | - | View |
![]() Mistral 7B Instruct Mistral | 1 | 7B | 8.19k | $0.3 | 127 | 🤗 | ? +3 more | View |