Skip to main content
Diffusion language models have shown promise for non-autoregressive text generation with parallel decoding capabilities. Unlike auto-regressive language models, different diffusion language models require different decoding strategies.

Example Launch Command

SGLang supports different DLLM algorithms such as LowConfidence and JointThreshold.
Command

First-Done-First-Out (FDFO) Scheduling

FDFO scheduling is enabled by default: each request leaves the batch as soon as its block is resolved, instead of advancing in lockstep where fast-converging requests must wait for slow long-tail requests before leaving the batch (head-of-line blocking). This improves throughput and is orthogonal to --dllm-algorithm, so it works with any dLLM algorithm. Pass --no-dllm-fdfo to fall back to synchronous lockstep scheduling:
Command

Example Configuration File

Depending on the algorithm selected, the configuration parameters vary. LowConfidence Config:
Config
JointThreshold Config:
Config

Example Client Code Snippet

Just like other supported models, diffusion language models can be used via the REST API or Python client. Python client example for making a generation request to the launched server:
Example
Curl example for making a generation request to the launched server:
Command

Supported Models

Below the supported models are summarized in a table.
Model FamilyExample ModelDescription
LLaDA2.0 (mini, flash)inclusionAI/LLaDA2.0-flashLLaDA2.0-flash is a diffusion language model featuring a 100B Mixture-of-Experts (MoE) architecture.
SDAR (JetLM)JetLM/SDAR-8B-ChatSDAR series diffusion language model (Chat), dense architecture.
SDAR (JetLM)JetLM/SDAR-30B-A3B-ChatSDAR series diffusion language model (Chat), MoE architecture.
DiffusionGemmagoogle/diffusiongemma-26B-A4B-itUniform-state (renoising) block-diffusion multimodal (text + image) MoE, 25.2B total / 3.8B active, served with the Gemma4Renoise sampler.