Example Launch Command
SGLang supports different DLLM algorithms such asLowConfidence 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:NemotronFastDiffuser:
--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:
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
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
Command
Supported Models
Below the supported models are summarized in a table.| Model Family | Example Model | Description |
|---|---|---|
| LLaDA2.0 (mini, flash) | inclusionAI/LLaDA2.0-flash | LLaDA2.0-flash is a diffusion language model featuring a 100B Mixture-of-Experts (MoE) architecture. |
| SDAR (JetLM) | JetLM/SDAR-8B-Chat | SDAR series diffusion language model (Chat), dense architecture. |
| SDAR (JetLM) | JetLM/SDAR-30B-A3B-Chat | SDAR series diffusion language model (Chat), MoE architecture. |
| DiffusionGemma | google/diffusiongemma-26B-A4B-it | Uniform-state (renoising) block-diffusion multimodal (text + image) MoE, 25.2B total / 3.8B active, served with the Gemma4Renoise sampler. |
| Nemotron Labs Diffusion | nvidia/Nemotron-Labs-Diffusion-8B | Autoregressive generation or block diffusion with NemotronFastDiffuser. |
