IBM Granite 4.2: Training Recipe, Reported Scores and Serving Caveats

Published · Updated • news
Open WeightsReinforcement LearningAI AgentsSmall Language Models

IBM released Granite 4.2 on August 25, 2026 in three dense model sizes: 3B, 8B and 30B. They are post-trained from Granite 4.1 base models through supervised fine-tuning and a multi-stage reinforcement learning pipeline, under Apache 2.0 licensing. The following training account is attributed to IBM's technical report; AI Mastery has not reproduced the training or benchmark runs.

Correction, 22 October 2026: The original article attributed fresh pre-training to 4.2, gave every model 40 attention heads and implied that compatible serving needed no additional configuration. Those descriptions are corrected below. The benchmark table now exposes disagreements between IBM's published pages instead of silently treating every figure as settled.

Architecture and Pre-Training

The model card's architecture table lists 40 query attention heads for 3B, and 32 for both 8B and 30B. All three use grouped query attention with eight KV heads, SwiGLU feed-forward layers, RMSNorm with ε = 1e-5, RoPE position embeddings with θ = 10,000,000, separate input/output embeddings and bfloat16 precision. The technical blog's generic bullet says 40 heads, but its size-specific table agrees with the model card.

The 3B and 8B models both use 40 transformer layers, with MLP hidden sizes of 8,192 and 12,800 and embedding dimensions of 2,560 and 4,096 respectively. The 30B has 64 layers and an MLP hidden size of 32,768. All three use a 131,072-token sequence length at SFT. IBM attributes approximately 15 trillion pre-training tokens and the five-phase schedule to the Granite 4.1 base models: phases 1 and 2 provide foundational training, phases 3 and 4 anneal higher-quality data, and phase 5 extends long context to 512K. The 30B model card distinguishes native 128K support from that extension.

SFT Data Pipeline

The supervised fine-tuning corpus totals approximately 7.2 million samples, or roughly 100 billion tokens, of which about 65 billion are trainable. The mix splits 31.6% agentic and 68.4% non-agentic. Within the agentic portion, software engineering tasks dominate at 69%, followed by tool calling (12.1%), terminal use (8.0%), math (3.5%), search (0.8%), and action (0.2%). Trajectories were generated across scaffolds including OpenHands, OpenCode, Terminus-2, SWE-agent, OpenResearcher, MiniSWE, OpenSeeker, EnvScaler, Gemini CLI, Hermes, Codex, and Goose. Non-agentic categories include instruction following (18.8%), coding (18.8%), math (14.6%), multilingual (7.0%), science (5.4%), reasoning (3.0%), and safety (0.8%).

Quality control normalizes samples into a consistent OpenAI Chat format, then scores them using GPT-OSS-120B and Gemma 4 as LLM judges. Samples with hallucinated content, invalid tool interactions, or calls to undefined functions are removed. Deduplication uses SHA-256 hashes over the concatenation of the tools and messages fields, applied within and across data sources. The final corpus is globally shuffled before being partitioned into equally sized Parquet shards. SFT training runs for approximately two epochs at a constant learning rate of 1.0e-5 after a 2.5% warm-up, on 32 to 128 nodes of 4× Grace/GB200 hardware, using tensor-parallel degree 2 and context parallelism of 2 or 4 depending on model size. The 30B model receives a second SFT phase focused on agentic coding. It upsamples SWE and coding data while retaining approximately 16% replay from the original corpus, training for roughly one additional epoch at 3.0e-6.

Multi-Stage Reinforcement Learning

The post-training pipeline is a sequential curriculum of independent GRPO runs, each warm-starting from the previous stage's checkpoint. The algorithm is asynchronous: a generation pool samples responses into a shared buffer continuously while the trainer pulls batches and streams updated weights back without pausing generation workers. A limit prevents generators from drifting more than a single update behind the trainer, bounding off-policy exposure; truncated importance sampling then clamps the log-probability ratio to prevent stale tokens from dominating updates. Advantages are group-relative with a leave-one-out baseline, eliminating the need for a separate value network.

The 3B model follows a shortened ladder: RLVR (two rounds), a code booster and RLHF. The 8B and 30B models add an agentic RL block (SWE, then Terminal, then Search) between the skill boosters and final RLHF, and the 30B runs RLVR for three rounds. In IBM's account, SWE tasks run inside per-repo container images driven by OpenHands; the terminal stage executes multi-step shell tasks through the Harbor/Terminus-2 harness with rollouts spanning up to 64 environment turns; the search stage answers multi-hop questions using live web-search tool calls scored by an LLM judge. RLHF is the final stage for every model, using a generative reward model for preference plus a safety reward covering jailbreak resistance and a reasoning-length penalty. The 30B configuration table gives RLHF a KL penalty of 0.05, tied with the code booster rather than uniquely highest.

Results

The table retains the previously reported benchmark detail, with explicit corrections where sources differ. Values are IBM-reported, not a guarantee for a different harness, quantization or workload. A dash means the source does not report that result, not a score of zero.

Benchmark 3B Dense 8B Dense 30B Dense
SWE-Bench Verified — 47.67 57.00
SWE-Bench Multilingual — 30.78 41.89
SWE-Bench Pro — 19.11 33.29
Terminal-Bench 2.1 — 20.56 29.24
AIME25 78.33 86.67 89.17
HMMT Feb25 66.67 78.33 89.17
GPQA 54.80 64.14 66.41
LiveCodeBench v6 69.71 73.24 75.77
τ³-bench 45.78 58.06 62.00
BFCL v4 52.41 50.29 (blog) / 52.39 (model card) 61.39
RULER 64K 67.52 80.99 89.96
RULER 128K 55.30 71.41 81.38
Arena-Hard-V2 34.96 65.19 67.93
MMLU-Pro 67.84 74.04 77.60

Both current IBM pages give τ³-bench averages of 45.78, 58.06 and 62.00; our earlier 50.99, 66.34 and 68.05 values are withdrawn. The 8B BFCL discrepancy remains unresolved: the technical blog reports 50.29 and the model card 52.39. A comparison that depends on that difference should wait for source clarification or reproduce a specified evaluation. The SWE-Bench Verified values of 47.67 for 8B and 57.00 for 30B agree across those sources.

Quantization and Deployment

IBM describes four quantized variant families. FP8 uses dynamic per-channel weights and per-token activations with no calibration. NVFP4 and MXFP4 are GPTQ-calibrated on 2,000 samples drawn from the SFT dataset, with a 2K maximum context length during calibration. GGUF conversion uses the canonical llama.cpp toolchain and provides 14 quantization levels from Q2_K through Q8_0. A calibration sequence length is not the model's serving context limit, and a published format is not proof that every backend supports every variant.

IBM provides vLLM and SGLang serving recipes with OpenAI-compatible tool calls and examples for OpenCode, Pi and OpenHands. Compatibility does not remove parser configuration. The 30B card specifies a reasoning parser and a tool-call parser; its vLLM recipe includes a custom reasoning-parser plugin, while the SGLang recipe uses automatic parser selection. Check the selected checkpoint and backend recipe before relying on structured tool-call output. We have not executed those deployment recipes.

Training ran on an NVIDIA GB200 NVL72 cluster hosted by CoreWeave, using a 72-GPU NVLink domain and a non-blocking Fat-Tree NDR 400 Gb/s InfiniBand fabric for inter-rack connectivity. The software stack runs in containerized .sqsh images built on an NGC PyTorch base (Ubuntu 22.04, CUDA 12.8, Python 3.12), with RL stages isolated in a separate NeMo-RL container.

The staged recipe provides a way to study post-training choices, but it does not isolate how much of a final score comes from base pre-training, SFT, reinforcement learning or the evaluation harness. The existence of a separate agentic RL block also does not prove that all agentic capability originates in that block.

For teams evaluating small open-weight models for production workflows, a proposed next step is a controlled trial on held-out repository tasks. Fix the harness, tool permissions and test budget; retain raw trajectories and count completed fixes separately from valid tool-call syntax. Measure latency and memory on the intended checkpoint, including its quantization. Neither parameter count nor a vendor benchmark determines whether that local deployment meets the team's requirements.

Frequently asked questions

Was Granite 4.2 pre-trained from scratch?

Granite 4.2 is post-trained from Granite 4.1 base models. The approximately 15 trillion pre-training tokens refer to those base models.

Do all three models have 40 attention heads?

No. IBM's architecture tables list 40 for 3B and 32 for both 8B and 30B. All three have eight KV heads.

Are the benchmark scores independently reproduced here?

No. They are IBM-reported results. The technical blog and model card disagree on the 8B BFCL value; the table also identifies conflicting earlier tau-three figures.

Does OpenAI-compatible serving mean no parser configuration is needed?

No. IBM's serving recipes specify reasoning and tool-call parsers. Backend and checkpoint compatibility still need to be checked.

Free interactive tools for the decisions this piece raises.

Related Reading