Hugging FaceYousaf Shah, Swanand Kadhe, Riddhiman Moulick, Ashish Sunil AgrawalExplainer
Granite 4.2 LLMs: How They're Built
Summary
Granite 4.2 is IBM’s first family of dense, decoder-only reasoning language models, offered in 3B, 8B, and 30B sizes. The models use a shared design built around Grouped Query Attention, Rotary Position Embedding, SwiGLU, RMSNorm, bfloat16 precision, and separate input/output embeddings; each has a 131,072-token sequence length. Pre-training starts from scratch on approximately 15 trillion tokens across five phases, with the final phase extending the context window to 512K tokens. Supervised fine-tuning uses about 7.2 million samples spanning agentic and non-agentic data, followed by multi-stage reinforcement learning; the 8B and 30B models also receive agentic RL in sandboxed environments for tool use, code execution, terminal control, and web search. All models support thinking, non-thinking, and low-effort thinking modes, native tool calling, and Apache 2.0 licensing.
Context
Earlier Granite releases were instruction-following assistants; Granite 4.2 adds explicit reasoning, allowing models to produce a chain of thought and choose between thinking, non-thinking, and low-effort thinking modes depending on the task.
Approach / What changed
The models are trained from scratch on approximately 15 trillion tokens using five-phase pre-training, then supervised fine-tuned on agentic and non-agentic data and post-trained through a multi-stage, multi-environment reinforcement-learning pipeline. The 8B and 30B models additionally undergo agentic RL in sandboxed environments, while quality control normalizes, evaluates, filters, and deduplicates SFT data.
Takeaways
The three models use dense decoder-only transformers with Grouped Query Attention, 40 or 32 attention heads, 8 KV heads, RoPE with θ = 10,000,000, SwiGLU, RMSNorm, and bfloat16 precision.
The SFT mixture contains approximately 7.2 million samples, with 31.6% agentic and 68.4% non-agentic data; quality checks include LLM judging, heuristic filtering, and SHA-256-based local and global deduplication.
Native tool calling follows the OpenAI function-calling format through compatible endpoints, enabling integration with agentic harnesses; all models are released under the Apache 2.0 license.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.