ModelGoogle (DeepMind / Gemini)Google (DeepMind / Gemini)published Jun 9, 2026seen Jun 11

google/diffusiongemma-26B-A4B-it

Open original ↗

Captured source

source ↗
published Jun 9, 2026seen Jun 11captured Jun 11http 200method plaintask image-text-to-textlicense apache-2.0library transformersparams 26Bdownloads 1772klikes 1.1k

Hugging Face | GitHub | Launch Blog | Documentation

License: Apache 2.0 | Authors: Google DeepMind

DiffusionGemma is a generative model built by Google DeepMind. Based on the 26B A4B Mixture-of-Experts (MoE) Gemma 4 architecture, DiffusionGemma generates tokens using discrete diffusion. This open-weights model is multimodal, handling text, image, and video inputs to generate text output.

Built on a MoE foundation, DiffusionGemma is designed to improve generation speed (tokens per second) while remaining deployable across various hardware environments. DiffusionGemma builds upon the architectural and capability advancements of Gemma 4, introducing several core features:

  • Discrete Text Diffusion – Shifts from token-by-token autoregression to block-autoregressive multi-canvas sampling. It generates text by iteratively denoising blocks of tokens (a 'canvas') in parallel, significantly increasing decoding speed.
  • Multimodal Input Processing – Processes interleaved text, image (with variable aspect ratio and resolution support), and video inputs to generate text outputs.
  • Encoder-Decoder Architecture – Utilizes an autoregressive encoder to process and cache the prompt context, paired with a decoder that applies bidirectional attention over the generation canvas.
  • Mixture-of-Experts (MoE) Efficiency – Leverages a sparse MoE design (8 active experts out of 128 total) to provide strong reasoning capabilities while maintaining a low memory footprint suitable for local execution.
  • Thinking Mode (Reasoning) – Designed as a highly capable reasoner, with configurable thinking modes.
  • Optimized for Small Batch Size Inference – Specifically engineered for low-latency, high-speed generation on a single capable accelerator.
  • Native System Prompt Support – As with Gemma 4, it supports updating the system role, enabling more structured and controllable conversations.

Model Overview

DiffusionGemma is engineered to reduce the sequential bottlenecks of standard causal language models. It employs an encoder-decoder architecture specifically optimized for inference speed.

The encoder operates in a prefill capacity, processing the initial prompt and generating the KV cache. The decoder then utilizes bidirectional attention to process an input block (a 'canvas') of tokens, accessing the cached context via cross-attention.

During inference, DiffusionGemma leverages multi-canvas sampling. Rather than generating one token at a time, the model iteratively denoises a full block of tokens using a diffusion sampler. Once a canvas is fully denoised, it is processed by the encoder and appended to the KV cache, after which the model generates the next canvas. This block-autoregressive approach facilitates text generation at higher speeds.

DiffusionGemma

| Total Parameters | 25.2B | | :---- | :---- | | Active Parameters | 3.8B | | Layers | 30 | | Sliding Window | 1024 tokens | | Context Length | Up to 256K tokens | | Canvas Length | 256 | | Vocabulary Size | 262K | | Expert Count | 8 active / 128 total and 1 shared | | Supported Modalities | Text, Image | | Vision Encoder Parameters | ~550M |

Benchmark Results

These models were evaluated against a large collection of different datasets and metrics to cover different aspects of text generation. Evaluation results marked in the table are for instruction-tuned models, with the recommended Entropy Bound (EB) sampler (see Best Practices below).

| Benchmark | DiffusionGemma 26B A4B | Gemma 4 26B A4B | | :---- | :---- | :---- | | MMLU Pro | 77.6% | 82.6% | | AIME 2026 no tools | 69.1% | 88.3% | | LiveCodeBench v6 | 69.1% | 77.1% | | Codeforces ELO | 1429 | 1718 | | GPQA Diamond | 73.2% | 82.3% | | Tau2 (average over 3) | 56.2% | 68.2% | | HLE no tools | 11.0% | 8.7% | | HLE with search | 11.9% | 17.2% | | BigBench Extra Hard | 47.6% | 64.8% | | MMMLU | 81.5% | 86.3% | | Vision | | | | MMMU Pro | 54.3% | 73.8% | | OmniDocBench 1.5 (average edit distance, lower is better) | 0.319 | 0.149 | | MATH-Vision | 70.5% | 82.4% | | MedXPertQA MM | 49.0% | 58.1% | | Long Context | | | | MRCR v2 8 needle 128k (average) | 32.0% | 44.1% |

Core Capabilities

DiffusionGemma handles a broad range of tasks across text and vision. Key capabilities include:

  • High-Speed Generation parallel denoising of 256 tokens via diffusion sampling achieves low latency by generating 15-20 tokens per forward pass, unlocking per user generation speeds exceeding 1100 tokens per second in low batch size settings (H100, FP8).
  • Adaptive Inference Time Computation Simpler prompts and structured tasks like code require fewer denoising steps, enabling dynamic tokens-per-second speeds based on task complexity.
  • Thinking – Built-in reasoning mode that lets the model think step-by-step before answering.
  • Long Context – Context windows of up to 256K tokens.
  • Image Understanding – Object detection, Document/PDF parsing, screen and UI understanding, chart comprehension, OCR (including multilingual), handwriting recognition, and pointing. Images can be processed at variable aspect ratios and resolutions.
  • Video Understanding – Analyzes and describes video content by processing sequences of frames.
  • Interleaved Multimodal Input – Mix images, video, and text within a single prompt for context-heavy reasoning.
  • Function Calling – Native support for structured tool use, enabling agentic workflows.
  • Coding & Reasoning – Capable of code generation, completion, and step-by-step logical reasoning.
  • Multilingual – Out-of-the-box support for 35+ languages, pre-trained on 140+ languages.

Getting Started

You can use all Gemma 4 models with the latest version of Transformers. To get started, install the necessary dependencies in your environment:

pip install -U transformers torch accelerate

Once you have everything installed, you can proceed to load the model with the code below:

from transformers import DiffusionGemmaForBlockDiffusion, AutoProcessor

MODEL_ID = "google/diffusiongemma-26B-A4B-it"

# Load model
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = DiffusionGemmaForBlockDiffusion.from_pretrained(
MODEL_ID,
dtype="auto",
device_map="auto",
)

Once the model is loaded, you can start generating output:

# Prompt
message = [
{"role": "user", "content": "Why is the sky blue?"}
]

# Process input
input_ids =...

Excerpt shown — open the source for the full document.

Notability

notability 8.0/10

Notable model release from Google DeepMind.