Skip to content

Granite 4.2 8B

Hugging Face (open weights) Open weights

The catch: Text-only, and only 12 languages are tested per the card.

AccessOpen weights
Free limitsFree to download and self-host; you pay only for your own compute. 8B dense; 128K-token native context (long-context extension to 512K). Apache 2.0. Same family: granite-4.2-3b and granite-4.2-30b. Released 7 Aug 2026.
Modalitytext, code
Credit cardNot required
Commercial useAllowed
Trains on your data–
Licence or termsApache-2.0
Context window131,072 tokens
Model idibm-granite/granite-4.2-8b
Base URL–
Last checked8 Oct 2026

How to use Granite 4.2 8B

Download the weights and serve them yourself; the quickstart below shows one way. Licence: Apache-2.0.

Quickstart
vllm serve ibm-granite/granite-4.2-8b  # then: curl http://localhost:8000/v1/chat/completions -H "Content-Type: application/json" -d '{"model":"ibm-granite/granite-4.2-8b","messages":[{"role":"user","content":"Hello"}]}'
Paste into Claude Code
I want to run the open-weight model "Granite 4.2 8B" (ibm-granite/granite-4.2-8b) for my project.
Please:
1. Check the model card and tell me the hardware it needs and the simplest way to serve it (vLLM, SGLang, Ollama or a hosted endpoint).
2. Give me a minimal working setup and a test request.
3. Tell me the licence terms for commercial use.
4. If a cheaper or smaller variant would do the job, mention it.

Before you ship on it

  • Text-only, and only 12 languages are tested per the card.
  • Apache-2.0 (licence tag and card on the HF repo): use, modify, distribute and sell, including commercially; keep the licence and notices when you redistribute.
  • Free to run means you pay for the GPUs, the serving stack and the on-call.

Questions

Is Granite 4.2 8B free?

Yes. Open weights offers it as open weights, with these limits: Self-host free · Apache-2.0. No credit card is needed.

Can I use Granite 4.2 8B commercially?

Yes, under Apache-2.0. Check the current terms before you ship.

How do I start with Granite 4.2 8B?

Download the weights and serve them yourself; the quickstart below shows one way. Licence: Apache-2.0.

Source: huggingface.co/ibm-granite/granite-4.2-8b, checked 8 Oct 2026.