Granite Code Models by IBM Research
Last refreshed 2026-05-19. Next refresh: weekly.
Details
About
The IBM Granite Code model family, a subset of the Granite 3.0 series, is designed to enhance enterprise-level coding tasks by leveraging generative AI. These models prioritize efficient code generation, debugging, and explanation, helping developers save time on repetitive and complex tasks. Covering over 116 programming languages, including legacy ones like COBOL, the models aim to modernize and simplify software development. Key functionalities include code completion, refactoring, error explanation, and translating legacy code to modern languages, enabling faster development cycles and seamless integration into enterprise workflows IBM DeveloperIBM TechXchange CommunityIBM Research. Granite Code models also address challenges in enterprise adoption of generative AI by being resource-efficient and privacy-conscious. With various model sizes, they cater to a broad range of applications, from lightweight on-device deployments to more intensive cloud-based use cases. IBM emphasizes trust and compliance, training the models on permissively licensed datasets and adhering to strict AI ethics principles, which ensure enterprise-grade safety and robustness IBM DeveloperIBM TechXchange Community.
Decision facts
- Best fit
- coding
- Capability starting point
- Granite 20B Code with 8k context
- Lowest tracked input
- Granite 34B Code · $0.6/1M · IBM watsonx
- Closest related family
- Granite 4
Current Variants
Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.
Use when the workload needs 8k context and 20B parameters.
Use when the workload needs 8k context and 3B parameters.
| Model | Use when | Released | Signals | Status |
|---|---|---|---|---|
| Granite 20B Code | Use when the workload needs 8k context and 20B parameters. | 2024-05 | 8k context20B parameters | Current |
| Granite 3B Code | Use when the workload needs 8k context and 3B parameters. | 2024-05 | 8k context3B parameters | Current |
Release Timeline
1 release groupSpecifications(4 models)
| Model | Released | Context | Parameters |
|---|---|---|---|
| Granite 20B Code | 2024-05 | 8k | 20B |
| Granite 3B Code | 2024-05 | 8k | 3B |
Available From(3 providers)
Pricing
| Model | Provider | Input / 1M | Output / 1M | Type |
|---|---|---|---|---|
| Granite 20B Code | IBM watsonx | $0.6 | $0.6 | Serverless |
| Granite 3B Code | IBM watsonx | $0.6 | $0.6 | Serverless |






