We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic…

DeepInfra raises $107M Series B to scale the inference cloud — read the announcement

ibm-granite/

granite-4.2-3b

$0.03

in

$0.12

out

$0.008

cached

/ 1M tokens

Granite-4.2-3B is the compact reasoning model in the Granite 4.2 family. Despite its small parameter count, it delivers strong performance on reasoning-intensive tasks by leveraging built-in <think>...</think> chain-of-thought. It supports flexible thinking modes — full thinking (default), non-thinking, and low-effort — allowing users to balance depth vs. latency on a per-query basis.

ibm-granite/granite-4.2-3b cover image
ibm-granite/granite-4.2-3b cover image
granite 4.2 3b

Ask me anything

0.00s

You need to log in to use this model

Log In

Settings

Model Information

Model Summary

DevelopersGranite Team, IBM
Model TypeDecoder-only Dense Transformer (Reasoning)
ArchitectureGraniteForCausalLM
Base ModelGranite-4.1-3B-Base
Parameters3B
Context LengthNatively Supports 128K (Long-context extension to 512K)
Precisionbfloat16
Tested LanguagesEnglish, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, Chinese (other languages may work but have not been fully tested)
Reasoning ModeBuilt-in **\<think>**...**\</think>** chain-of-thought
Best ForReasoning, Code Generation, Tool Calling, Agentic Workflows, Multilingual Dialog
LicenseApache 2.0
HF CollectionGranite 4.2 Language Models
Release DateAugust 25, 2026

Model Overview

What is IBM Granite?

Granite is a family of open-source large language models developed by IBM, designed for enterprise and research use. Granite models are built to be versatile, safe, and efficient — covering a range of sizes and capabilities from compact edge-deployable models to large-scale reasoning systems. All Granite models are released under the Apache 2.0 license, enabling unrestricted commercial and academic use.

The Granite 4.2 generation introduces native reasoning (thinking) capabilities, allowing models to perform step-by-step chain-of-thought reasoning before producing final answers. This significantly improves performance on complex math, coding, multi-step logic, and agentic tool-calling tasks.

Description

Granite-4.2-3B is the compact reasoning model in the Granite 4.2 family. Despite its small parameter count, it delivers strong performance on reasoning-intensive tasks by leveraging built-in <think>...</think> chain-of-thought. It supports flexible thinking modes — full thinking (default), non-thinking, and low-effort — allowing users to balance depth vs. latency on a per-query basis.

Key capabilities:

  • Built-in Reasoning: Native chain-of-thought that significantly improves performance on math, coding, and complex multi-step problems.
  • Flexible Thinking Modes: Seamlessly switch between full thinking, non-thinking, and low-effort modes within a single model.
  • Reasoning-Augmented Tool Calling: The model reasons about which tools to invoke and why, producing more accurate function calls.
  • 512K Context Window: Supports long documents, multi-turn conversations, and complex agentic workflows.
  • Apache 2.0 Licensed: Fully open for commercial and research use.

Model Design

Granite-4.2-3B is built on a decoder-only dense transformer architecture with the following core components:

  • Attention: Grouped Query Attention (GQA) with 40 attention heads and 8 KV heads
  • Position Embedding: Rotary Position Embedding (RoPE) with θ = 10,000,000
  • Feed-Forward: MLP with SwiGLU activation (hidden size 8192)
  • Normalization: RMSNorm (ε = 1e-5)
  • Embeddings: Separate input/output embeddings (not tied)
  • Precision: bfloat16
Component3B Dense8B Dense30B Dense
Embedding size256040964096
Number of layers404064
Attention head size64128128
Number of attention heads403232
Number of KV heads888
MLP hidden size81921280032768
MLP activationSwiGLUSwiGLUSwiGLU
Sequence length131072131072131072
Position embeddingRoPERoPERoPE
# Parameters3B8B30B

Training Methodology

Granite-4.2-3B is post-trained from Granite-4.1-3B-Base through a rigorous multi-stage pipeline that progressively unlocks reasoning, tool use, and instruction-following capabilities. A full listing of training datasets is available in the Granite 4.2 GitHub repository. The training pipeline consists of three stages:

Stage 1: Pre-Training

Granite-4.2-3B builds on Granite-4.1-3B-Base, which was pre-trained on a large-scale English as well as multilingual corpus. For full pre-training details (data composition, training recipe, and infrastructure), refer to our Granite 4.1 Technical Blog.

Stage 2: Supervised Fine-Tuning

The SFT stage draws on instruction-following, chain-of-thought, and reasoning data to cultivate the model's reasoning and thinking abilities. For all the three, 3B, 8B and 30B models, the training corpus comprises four sources: (1) publicly available datasets under permissive licenses, (2) internally generated synthetic data targeting reasoning, tool calling, and chain-of-thought capabilities, (3) agentic traces collected across a diverse range of tasks, and (4) a curated selection of human-authored data. Hyperparameters were tuned before training was scaled to all three model sizes. For the 30B model, we conducted a second SFT phase, in which the agentic data was up-sampled while a smaller share of general replay data was retained. This phase trained for a single epoch, starting from a lower learning rate than Phase 1.

Stage 3: Reinforcement Learning

The final stage of training applies multi-phase, multi-environment reinforcement learning using Group Relative Policy Optimization (GRPO). Training spans a broad mix of environments including math, code, science, instruction following, tool use, general chat and structured output. Most environments provide verifiable rewards, while open-ended prompts are scored by a generative reward model. Training runs asynchronously: generation and policy updates occupy separate GPU pools rather than proceeding in lockstep, and weights are refreshed in flight.

After the reward-driven phases, a preference-alignment (RLHF) phase tunes helpfulness, conversational quality, and safety. Reinforcement learning is carried out with NeMo RL, and the RL environments run on NeMo Gym.


Infrastructure: We trained the Granite 4.2 Language Models utilizing an NVIDIA GB200 NVL72 cluster hosted in CoreWeave. Intra-rack communication occurs via the 72-GPU NVLink domain, and a non-blocking, full Fat-Tree NDR 400 Gb/s InfiniBand network provides inter-rack communication.

For further details on the post-training methodology, please refer to the Granite-4.2 Technical Blog.


Evaluation Results

Task3B Dense8B Dense30B Dense
Agentic (Coding)
SWE Bench MultilingualNA30.7841.89
SWE Bench ProNA19.1133.29
SWE Bench VerifiedNA47.6757
Terminal-Bench 2.1NA20.5629.24
Agentic (General)
τ³-bench (AVG)45.7858.0662.00
BFCL (v4)52.4152.3961.39
ProfBench32.1041.2042.90
BirdBenchNA41.0741.85
GDPvalNA11891225
Reasoning
AIME2578.3386.6789.17
HMMT Feb2566.6778.3389.17
GPQA54.8064.1466.41
LiveCodeBench v669.7173.2475.77
SciCode24.1136.0938.76
Chat & Instruction Following
MMLU-Pro67.8474.0477.60
MMLU-ProX lite (IBM)27.7861.0666.64
Arena-Hard-V234.9665.1967.93
IFBench (prompt)74.3379.3377.17
Long Context
RULER 64K67.5280.9989.96
RULER 128K55.3071.4181.38

Evaluations are run with an evaluation framework based on NeMo Evaluator SDK.