← All questions
Inference & ServingMedium· Diffusion Models· Generation Process

Walk me through how a diffusion language model generate...

A diffusion language model generates text by iteratively refining a sequence through a denoising chain. Starting from xK, the model performs a series of full-sequence forward passes to reach x0. Because every step processes the entire sequence, there is no need for a KV cache. However, this approach necessitates that the output length be defined at the start of the request, as the compute cost is determined by the number of steps multiplied by the prefill cost.

Code playground (Python)