---
title: "Granite 4.2 LLMs: How They're Built"
description: "Granite 4.2 is IBM's family of dense decoder-only reasoning LLMs (3B, 8B, 30B), post-trained from Granite-4.1 bases pre-trained on ~15T tokens with a five-phase schedule reaching 512K context."
url: "https://swe.quest/articles/granite-4-2-llms-how-they-re-built-f6c9c0279aa17b80"
canonical: "https://huggingface.co/blog/ibm-granite/granite-4-2"
source: "Hugging Face"
published: "2026-08-25"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 22
tags: ["model-training","llms","ai-agents"]
---

# Granite 4.2 LLMs: How They're Built

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-08-25, 22 min read, Deep dive. Original: [https://huggingface.co/blog/ibm-granite/granite-4-2](https://huggingface.co/blog/ibm-granite/granite-4-2)

## Summary

Granite 4.2 is IBM's family of dense decoder-only reasoning LLMs (3B, 8B, 30B), post-trained from Granite-4.1 bases pre-trained on ~15T tokens with a five-phase schedule reaching 512K context. SFT uses ~7.2M samples (~100B tokens) mixing agentic trajectories from many harnesses with non-agentic data, filtered by LLM judges and SHA-256 deduplication. A chain of warm-started asynchronous GRPO stages follows: RLVR, skill boosters, agentic RL in real sandboxes for SWE, terminal and search on the 8B and 30B models, and RLHF. The post gives per-stage hyperparameters, a KL schedule tied to reward type, and off-policy handling via bounded staleness and truncated importance sampling.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- transformer architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- supervised fine-tuning ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- reinforcement learning for LLMs ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- GRPO

## Keywords

Granite 4.2, GRPO, NeMo-RL, vLLM, RLVR, Grouped Query Attention, IBM

## Related posts

- [Granite 4.1 LLMs: How They’re Built](https://swe.quest/articles/granite-4-1-llms-how-they-re-built-67acb17697f52ad3.md): Hugging Face · 2026-04-29 · Hard · 14 min read · Model training, LLMs, Evaluation
  Granite 4.1 is IBM's family of dense decoder-only LLMs (3B, 8B, 30B) trained on ~15T tokens through five pre-training phases that shift from web-heavy data to math/code, high-quality annealing with chain-of-thought and instruction data, and staged long-context extension to 512K with model merging after each stage.
- [SmolLM3: smol, multilingual, long-context reasoner](https://swe.quest/articles/smollm3-smol-multilingual-long-context-reasoner-8a88787887d563a2.md): Hugging Face · 2025-07-08 · Hard · 23 min read · Model training, LLMs
  SmolLM3 is a fully open 3B decoder model trained on 11.2T tokens that outperforms Llama-3.2-3B and Qwen2.5-3B and is competitive with 4B models, with dual think/no\_think reasoning modes, six languages and 128k context.
- [GLM-5.2: Built for Long-Horizon Tasks](https://swe.quest/articles/glm-5-2-built-for-long-horizon-tasks-22484eb2dd0aab06.md): Hugging Face · 2026-06-17 · Hard · 13 min read · LLMs, Inference & serving, Model training, AI for coding, Evaluation
  GLM-5.2 is Z.ai's MIT-licensed flagship model for long-horizon coding-agent work, with a 1M-token context and selectable thinking effort levels.
- [Open-R1: a fully open reproduction of DeepSeek-R1](https://swe.quest/articles/open-r1-a-fully-open-reproduction-of-deepseek-r1-1e5b97c561871dc1.md): Hugging Face · 2025-01-28 · Easy · 9 min read · Model training, LLMs, Open source
  Open-R1 is a Hugging Face project to openly reconstruct DeepSeek-R1's missing training data and code, since only the model weights were released.
- [Build a Domain-Specific Embedding Model in Under a Day](https://swe.quest/articles/build-a-domain-specific-embedding-model-in-under-a-day-f4f33fdd5dd688e6.md): Hugging Face · 2026-03-20 · Medium · 13 min read · RAG & retrieval, Model training, Search, Inference & serving
  A single-GPU pipeline fine-tunes Llama-Nemotron-Embed-1B-v2 for a specific domain in under a day without manual labels.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
