---
title: "Granite 4.1 LLMs: How They’re Built"
description: "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."
url: "https://swe.quest/articles/granite-4-1-llms-how-they-re-built-67acb17697f52ad3"
canonical: "https://huggingface.co/blog/ibm-granite/granite-4-1"
source: "Hugging Face"
published: "2026-04-29"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 14
tags: ["model-training","llms","evals"]
---

# Granite 4.1 LLMs: How They’re Built

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

## Summary

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. SFT uses ~4.1M samples curated by an LLM-as-Judge rubric with hard-reject rules plus deterministic filtering and deduplication. A four-stage RL pipeline follows, using on-policy GRPO with DAPO loss and dynamic sampling turned off: multi-domain RL, RLHF, identity/calibration, then math RL to recover math scores lost during RLHF. Per-stage learning rates and KL coefficients are given, and the 8B instruct model matches or beats the earlier 32B-A9B MoE Granite 4.0-H-Small.

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)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)

## Prerequisites

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

## Keywords

Granite 4.1, GRPO, DAPO, SkyRL, RULER, LLM-as-Judge, IBM

## Related posts

- [Granite 4.2 LLMs: How They're Built](https://swe.quest/articles/granite-4-2-llms-how-they-re-built-f6c9c0279aa17b80.md): Hugging Face · 2026-08-25 · Hard · 22 min read · Model training, LLMs, AI agents
  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.
- [Open R1: Update #2](https://swe.quest/articles/open-r1-update-2-8012bcb3a4bd440c.md): Hugging Face · 2025-02-10 · Hard · 14 min read · Model training, LLMs, Evaluation, Inference & serving
  OpenR1-Math-220k is a math reasoning dataset built by generating 800k DeepSeek R1 traces for 400k NuminaMath 1.5 problems on 512 local H100s.
- [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.
- [Open-R1: Update #1](https://swe.quest/articles/open-r1-update-1-663f996689b7bd10.md): Hugging Face · 2025-02-02 · Medium · 10 min read · Model training, Inference & serving, LLMs, Evaluation
  Open-R1's first week reproduced DeepSeek's MATH-500 scores for the R1-Distill models using lighteval, mostly within a few points of the reported numbers.
- [Mini-R1: Reproduce Deepseek R1 „aha moment“ a RL tutorial](https://swe.quest/articles/mini-r1-reproduce-deepseek-r1-aha-moment-a-rl-tutorial-a09c9653360cce5a.md): Hugging Face · 2025-01-31 · Hard · 15 min read · Model training, LLMs, Python
  Recreates DeepSeek R1's "aha moment" by training Qwen2.5-3B-Instruct with GRPO on the Countdown numbers game, using rule-based format and accuracy rewards in TRL with DeepSpeed ZeRO-3 and vLLM generation on 4x H100s.

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)
