granite-8b-code-instruct-4k
by IBM · Apr 26, 2024
granite-8b-code-instruct-4k is an open-weight chat llm from IBM, released Apr 26, 2024. It has 8.1B parameters.
- Provider
- IBM
- Released
- Apr 26, 2024
- Type
- Chat LLM
- Parameters
- 8.1B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- apache-2.0
- Knowledge cutoff
- —
- Status
- Open weights
- HF downloads (30d)
- 1.1K
How to run granite-8b-code-instruct-4k
granite-8b-code-instruct-4k is an open-weight model published on Hugging Face as ibm-granite/granite-8b-code-instruct-4k. 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 8.1B parameters it needs roughly 5 GB of memory at 4-bit quantization.
granite-8b-code-instruct-4k vs alternatives
- granite-8b-code-instruct-4k vs Llama-3.1-8B-Instruct
- granite-8b-code-instruct-4k vs Llama 3-8B
- granite-8b-code-instruct-4k vs Gemma 7B
- granite-8b-code-instruct-4k vs Gemma 2 9B
- granite-8b-code-instruct-4k vs Yi-9B
- granite-8b-code-instruct-4k vs Qwen/Qwen2.5-7B-Instruct
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Llama-3.1-8B-Instructopen | Meta | Jul 2024 | 8B | 128K | $0.02 | $0.04 | 110.9 |
| Llama 3-8Bopen | Meta | Apr 2024 | 8B | — | — | — | 109.1 |
| Gemma 7Bopen | Google DeepMind | Feb 2024 | 8.5B | — | — | — | 103.2 |
| Gemma 2 9Bopen | Google DeepMind | Jun 2024 | 9.2B | — | — | — | 112.4 |
| Yi-9Bopen | 01.AI | Mar 2024 | 8.8B | — | — | — | 102.2 |
| Qwen/Qwen2.5-7B-Instructopen | Alibaba (Qwen) | Sep 2024 | 7.6B | 33K | $0.05 | $0.05 | — |
| Mistral Nemoopen | Mistral AI | Jul 2024 | 12B | 128K | $0.029 | $0.03 | 113.9 |
| Qwen2.5-7Bopen | Alibaba (Qwen) | Sep 2024 | 7.6B | — | — | — | — |
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-8b-code-instruct-4k?
granite-8b-code-instruct-4k was developed by IBM (United States). It was released on Apr 26, 2024.
Is granite-8b-code-instruct-4k open source?
Yes. granite-8b-code-instruct-4k's weights are publicly available under the apache-2.0 license on Hugging Face (ibm-granite/granite-8b-code-instruct-4k), so you can download and run it yourself.
How many parameters does granite-8b-code-instruct-4k have?
granite-8b-code-instruct-4k has 8.1B parameters.
Sources: huggingface · huggingface. Last updated 2026-11-22.