Skip to content
llmmodels
Chat LLMOpen weights

granite-3b-code-base-2k

by IBM · Apr 23, 2024

granite-3b-code-base-2k is an open-weight chat llm from IBM, released Apr 23, 2024. It has 3.5B parameters.

Provider
IBM
Released
Apr 23, 2024
Type
Chat LLM
Parameters
3.5B
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
apache-2.0
Knowledge cutoff
—
Status
Open weights
HF downloads (30d)
40.5K

How to run granite-3b-code-base-2k

granite-3b-code-base-2k is an open-weight model published on Hugging Face as ibm-granite/granite-3b-code-base-2k. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 3.5B parameters it needs roughly 2 GB of memory at 4-bit quantization.

granite-3b-code-base-2k vs alternatives

Alternatives to granite-3b-code-base-2k
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Qwen2.5-Coder-3BopenAlibaba (Qwen)Nov 20243.1B———96.8
Llama 3.2 3B InstructopenMetaSep 20243.2B128K$0.05$0.33—
Gemma 2BopenGoogle DeepMindFeb 20242.5B———75.7
Mistral Large (latest)openMistral AINov 2024—125K$0.5$1.50—
deepseek-vl2-tinyopenDeepSeekDec 20243.4B————
MobileLLM-125MopenMetaOct 2024—————
Pixtral Large (latest)openMistral AINov 2024—125K$2$6—
Qwen2.5-3BopenAlibaba (Qwen)Sep 20243.1B————

More models from IBM

All IBM models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Granite 4.2 8BopenAug 20268.8B128K$0.06$0.15
granite-embedding-small-english-r2openJul 202548M———
granite-4.1-3bopenApr 20263.4B———
granite-embedding-97m-multilingual-r2openApr 202697M———
granite-speech-4.1-2b-naropenMar 20262.3B———
Granite-4.0-H-SmallopenOct 202532B128K$0.064$0.265
granite-embedding-311m-multilingual-r2openApr 2026312M———
granite-vision-4.1-4bopenApr 20264B———

Frequently asked questions

Who made granite-3b-code-base-2k?

granite-3b-code-base-2k was developed by IBM (United States). It was released on Apr 23, 2024.

Is granite-3b-code-base-2k open source?

Yes. granite-3b-code-base-2k's weights are publicly available under the apache-2.0 license on Hugging Face (ibm-granite/granite-3b-code-base-2k), so you can download and run it yourself.

How many parameters does granite-3b-code-base-2k have?

granite-3b-code-base-2k has 3.5B parameters.

Sources: huggingface · huggingface. Last updated 2026-11-22.