LLM ReferenceLLM Reference

Granite Code

4 models2024Up to 8K ctxFrom $0.6/1M input

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. Further distinguishing the Granite Code models is their open-source approach, promoting collaboration and innovation. IBM's decision to open-source these models reflects a commitment to fostering a community-driven ecosystem. By integrating advanced techniques like speculative decoding, these models achieve superior performance on benchmarks like HumanEval and RepoBench, excelling in tasks like code synthesis and debugging. This capability positions Granite as a leading solution for AI-assisted enterprise software development​ IBM TechXchange Community

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

Frequently Asked Questions

What is Granite Code?
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. Further distinguishing the Granite Code models is their open-source approach, promoting collaboration and innovation. IBM's decision to open-source these models reflects a commitment to fostering a community-driven ecosystem. By integrating advanced techniques like speculative decoding, these models achieve superior performance on benchmarks like HumanEval and RepoBench, excelling in tasks like code synthesis and debugging. This capability positions Granite as a leading solution for AI-assisted enterprise software development​ IBM TechXchange Community
How many models are in the Granite Code family?
The Granite Code family contains 4 models.
What is the latest Granite Code model?
The latest model is Granite 34B Code, released in 2024-05.
How much does Granite Code cost?
Granite Code models are available at $0.6/1M input tokens through providers like IBM watsonx.

Models(4)