LLM Reference

Granite Code Models by IBM Research

IBM ResearchApache 2.0Open source
4 models2024Up to 8k ctxFrom $0.6/1M input

Last refreshed 2026-05-19. Next refresh: weekly.

Details

ResearcherIBM Research
LicenseApache 2.0OSI-approved
Commercial useCommercial use: permitted
Models4
Released2024
Max context8k

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 Developer​IBM TechXchange Community​IBM 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 Developer​IBM 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.

2 in view2 retired

Use when the workload needs 8k context and 20B parameters.

2024-058k context20B parameters

Use when the workload needs 8k context and 3B parameters.

2024-058k context3B parameters

Release Timeline

1 release group
2024-05
2 current · 2 retired
Granite 20B Code
8k context20B parameters
Current
Granite 34B Code
8k context34B parameters
Archived
Granite 3B Code
8k context3B parameters
Current
Granite 8B Code
8k context8B parameters
Archived

Specifications(4 models)

Granite Code model specifications comparison
ModelReleasedContextParameters
Granite 20B Code2024-058k20B
Granite 3B Code2024-058k3B

Available From(3 providers)

Pricing

Granite Code model pricing by provider
ModelProviderInput / 1MOutput / 1MType
Granite 20B CodeIBM watsonx$0.6$0.6Serverless
Granite 3B CodeIBM watsonx$0.6$0.6Serverless