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
- granite-3b-code-base-2k vs Qwen2.5-Coder-3B
- granite-3b-code-base-2k vs Llama 3.2 3B Instruct
- granite-3b-code-base-2k vs Gemma 2B
- granite-3b-code-base-2k vs Mistral Large (latest)
- granite-3b-code-base-2k vs deepseek-vl2-tiny
- granite-3b-code-base-2k vs MobileLLM-125M
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Qwen2.5-Coder-3Bopen | Alibaba (Qwen) | Nov 2024 | 3.1B | — | — | — | 96.8 |
| Llama 3.2 3B Instructopen | Meta | Sep 2024 | 3.2B | 128K | $0.05 | $0.33 | — |
| Gemma 2Bopen | Google DeepMind | Feb 2024 | 2.5B | — | — | — | 75.7 |
| Mistral Large (latest)open | Mistral AI | Nov 2024 | — | 125K | $0.5 | $1.50 | — |
| deepseek-vl2-tinyopen | DeepSeek | Dec 2024 | 3.4B | — | — | — | — |
| MobileLLM-125Mopen | Meta | Oct 2024 | — | — | — | — | — |
| Pixtral Large (latest)open | Mistral AI | Nov 2024 | — | 125K | $2 | $6 | — |
| Qwen2.5-3Bopen | Alibaba (Qwen) | Sep 2024 | 3.1B | — | — | — | — |
More models from IBM
All IBM models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Granite 4.2 8Bopen | Aug 2026 | 8.8B | 128K | $0.06 | $0.15 |
| granite-embedding-small-english-r2open | Jul 2025 | 48M | — | — | — |
| granite-4.1-3bopen | Apr 2026 | 3.4B | — | — | — |
| granite-embedding-97m-multilingual-r2open | Apr 2026 | 97M | — | — | — |
| granite-speech-4.1-2b-naropen | Mar 2026 | 2.3B | — | — | — |
| Granite-4.0-H-Smallopen | Oct 2025 | 32B | 128K | $0.064 | $0.265 |
| granite-embedding-311m-multilingual-r2open | Apr 2026 | 312M | — | — | — |
| granite-vision-4.1-4bopen | Apr 2026 | 4B | — | — | — |
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.