9 models tracked
Open-source coding models
Specs, licenses, benchmarks and how to run each model. Every one works with CoderBaba, locally or in our free cloud. Filter by size, license or architecture.
9 of 9 models
Alibaba Qwen
Qwen3-Coder
Alibaba's agentic coding model family. A 480B mixture-of-experts flagship with 35B active parameters, 256K native context and an Apache 2.0 license.
- params
- 480B moe
- context
- 256K
- released
- 2025-07
Mistral AI & All Hands AI
Devstral
A 24B agentic coding model built for software-engineering agents like OpenHands. Apache 2.0, 128K context, and small enough to run on a single RTX 4090 or a 32 GB Mac.
- params
- 24B
- context
- 128K
- released
- 2025-05
Alibaba Qwen
Qwen2.5-Coder
A dense code model family from 0.5B to 32B parameters. The 32B Instruct model reached GPT-4o-level code generation at release and is easy to run locally.
- params
- 32B
- context
- 128K
- released
- 2024-11
DeepSeek
DeepSeek-Coder-V2
A mixture-of-experts code model with 236B total and 21B active parameters, 128K context and support for 338 programming languages. A Lite 16B variant is also available.
- params
- 236B moe
- context
- 128K
- released
- 2024-06
Mistral AI
Codestral
Mistral AI's 22B open-weight code model, trained on 80+ programming languages, with strong fill-in-the-middle support for IDE autocomplete. Non-production license.
- params
- 22B
- context
- 32K
- released
- 2024-05
IBM
Granite Code
IBM's enterprise-focused code models from 3B to 34B, trained on 116 programming languages with license-permissible data and released under Apache 2.0.
- params
- 34B
- context
- 8K
- released
- 2024-05
CodeGemma
Google's lightweight Gemma-based code models (2B and 7B) for fast code completion and generation on laptops and edge devices.
- params
- 7B
- context
- 8K
- released
- 2024-04
BigCode (Hugging Face, ServiceNow, NVIDIA)
StarCoder2
Fully open code models (3B, 7B, 15B) trained on The Stack v2 with transparent data, published training details and opt-out support for code authors.
- params
- 15B
- context
- 16K
- released
- 2024-02
Meta
Code Llama
Meta's Llama 2-based code models from 7B to 70B, with Python-specialized and instruction-tuned variants. One of the first widely adopted open code LLMs.
- params
- 70B
- context
- 16K
- released
- 2023-08
side by side
Open-source coding model comparison
Every model in the directory at a glance: size, architecture, context window and license. Select a model for the full breakdown, benchmarks and run commands.
| Model | Parameters | Architecture | Context | License | Commercial use | Released |
|---|---|---|---|---|---|---|
| Qwen3-CoderAlibaba Qwen | 30B (3B active), 480B (35B active) | Mixture of experts | 256K | Apache 2.0 | Commercial OK | Jul 22, 2025 |
| DevstralMistral AI & All Hands AI | 24B | Dense | 128K | Apache 2.0 | Commercial OK | May 21, 2025 |
| Qwen2.5-CoderAlibaba Qwen | 0.5B, 1.5B, 3B, 7B, 14B, 32B | Dense | 128K | Apache 2.0 (3B model under Qwen Research License) | Commercial OK | Nov 12, 2024 |
| DeepSeek-Coder-V2DeepSeek | 16B Lite (2.4B active), 236B (21B active) | Mixture of experts | 128K | DeepSeek Model License (code under MIT) | Commercial OK | Jun 17, 2024 |
| CodestralMistral AI | 22B | Dense | 32K | Mistral AI Non-Production License | Restricted | May 29, 2024 |
| Granite CodeIBM | 3B, 8B, 20B, 34B | Dense | 8K | Apache 2.0 | Commercial OK | May 6, 2024 |
| CodeGemmaGoogle | 2B, 7B | Dense | 8K | Gemma Terms of Use | Commercial OK | Apr 9, 2024 |
| StarCoder2BigCode (Hugging Face, ServiceNow, NVIDIA) | 3B, 7B, 15B | Dense | 16K | BigCode OpenRAIL-M | Commercial OK | Feb 28, 2024 |
| Code LlamaMeta | 7B, 13B, 34B, 70B | Dense | 16K | Llama 2 Community License | Commercial OK | Aug 24, 2023 |
How to read this directory
Each model page follows the same structure, so you can compare models quickly and trust that nothing important is missing.
Parameters
The number of learned weights, in billions (B). More parameters usually mean better reasoning and code quality, but also more memory and slower generation. Where a family ships several sizes, we list all of them. The size filter above uses the largest variant.
Architecture: dense vs. mixture of experts
A dense model uses every parameter for every token it generates. A mixture-of-experts (MoE) model splits its feed-forward layers into many "experts" and routes each token through only a few of them. That is why you will see figures like "480B (35B active)" for Qwen3-Coder: it has the knowledge capacity of a 480B model but the per-token compute of a 35B one. The catch is memory. You still need room to load all of the weights, even though only some are active at a time.
Context window
The maximum number of tokens the model can consider at once, including your prompt, the files you include and its own answer. One token is roughly three to four characters of code. As a rule of thumb:
- 8K to 16K tokens: single files and short conversations
- 32K tokens: several related files, typical for repository-level autocomplete
- 128K tokens and up: large slices of a codebase, long agent sessions and code review across many files
Long context also costs memory, because the key-value cache grows with every token. A model that advertises 128K may need much more RAM to actually use it than to load it.
License and commercial use
Open weights come with very different terms. We sort them into three badges:
- Commercial OK: permissive licenses such as Apache 2.0 or MIT, or custom licenses that allow commercial use with limited conditions, such as the Llama 2 Community License's threshold for very large companies.
- Restricted: the open weights may only be used for research, testing or personal projects. Codestral's Non-Production License is an example. Commercial use needs a separate agreement.
- Non-commercial: no commercial use permitted.
Badges are a summary, not legal advice. Always read the full license before shipping a product.
Benchmarks
We list benchmark scores as reported by each model's authors at release, with the exact variant tested. The ones you will see most often:
- HumanEval: 164 hand-written Python problems. The model writes a function and unit tests check it. Useful for comparing raw code generation, but small and close to saturated for top models.
- SWE-bench Verified: real GitHub issues from popular Python repositories, human-verified as solvable. The model, usually inside an agent scaffold, must produce a patch that makes the hidden tests pass. It is much closer to real agentic work, and scores depend heavily on the scaffold used.
Self-reported scores are a starting point, not a verdict. Different prompts, scaffolds and sampling settings can move results by several points. The best benchmark is always your own codebase.
Hardware cheat sheet
Memory needs depend mostly on parameter count and quantization. At the popular 4-bit quantization (for example Ollama's default q4_K_M), budget roughly:
| Model size | Approx. memory at 4-bit | Typical hardware |
|---|---|---|
| 1B to 3B | 1 to 3 GB | Any modern laptop, even CPU-only |
| 7B to 8B | 5 to 6 GB | 8 GB GPU or 16 GB Mac |
| 13B to 16B | 9 to 11 GB | 12 to 16 GB GPU |
| 20B to 34B | 13 to 22 GB | 24 GB GPU (RTX 3090 or 4090) or 32 GB Mac |
| 70B | about 40 GB | 2× 24 GB GPUs or 64 GB Mac |
| 200B and up (MoE) | 120 GB and up | Multi-GPU server or very large unified memory |
Add headroom for the context window, and expect lower quality from very aggressive quantization, such as 2-bit or 3-bit.
How we keep this directory accurate
Every model page records a release date and a "last updated" date. Specs come from official model cards, technical reports and release announcements. When a model gets a new version, we update its page and note what changed. If you spot an error or want a model added, the blog lists our latest additions and corrections.