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. For algorithms that support synchronous scheduling, pass --no-dllm-fdfo to use lockstep scheduling:
Command

Nemotron Labs Diffusion

You can serve nvidia/Nemotron-Labs-Diffusion-8B on NVIDIA CUDA GPUs in autoregressive or block-diffusion mode. For autoregressive generation, launch the model without a dLLM algorithm:
For block diffusion, select NemotronFastDiffuser:
Block diffusion uses FlashInfer by default on CUDA GPUs, with BF16 weights and the default FDFO scheduler. Use --attention-backend fa4 on Hopper or newer GPUs to select FA4. Both modes preserve the configured CUDA graph settings. Causal context encoding can use prefill graphs, while denoising uses decode graphs. It encodes committed context causally and fills each new block bidirectionally, starting with a causal next-token prediction. Block size and mask ID come from the checkpoint. The confidence threshold defaults to 0.9, and you can set threshold in a YAML file passed with --dllm-algorithm-config. Use greedy sampling for block diffusion:
The block-diffusion implementation requires FDFO and disables prefix caching and chunked prefill. It does not support quantized loading, LoRA, pipeline/context parallelism, attention data parallelism, penalties, constrained decoding (including strict thinking), streaming sessions, logprob, prompt readout (token_indices_to_pool and multi_item_delimiter_indices), or hidden-state requests. LinearSpec is not implemented.

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.
Nemotron Labs Diffusionnvidia/Nemotron-Labs-Diffusion-8BAutoregressive generation or block diffusion with NemotronFastDiffuser.