Skip to content
FluxServe

FluxServe: A Flexible and High-Performance Inference Engine for Open Diffusion Language Models

Recently, diffusion large language models (dLLMs) have emerged as a highly promising alternative to traditional autoregressive (AR) LLMs. The rapidly growing popularity of dLLMs stems from their unique architectural advantage: combining long-horizon causal sequencing with high-fidelity iterative refinement, allowing multiple tokens to be denoised simultaneously in a bidirectional manner. Exemplified by recent open-weight releases, dLLMs offer compelling generative capabilities with superior compute utilization, promoting a more efficient token economy for modern AI workloads.

Diffusion models are a well-established class of generative models that learn to transform noise into data through an iterative denoising process. While widely adopted in image and video generation, where models progressively refine random noise into high-quality visuals, applying diffusion to language is a rapidly emerging frontier.

Instead of predicting text token-by-token, dLLMs take a block of masked tokens and gradually refine them into coherent text. This unique parallel decoding structure provides dLLMs with bidirectional context and enables block-level parallelism during generation. However, this also introduces significant challenges for efficient deployment. Exsiting AR serving stacks are heavily optimized for sequential token generation, thereby are fundamentally sub-optimal for the block-level workloads required by dLLMs.

FluxServe Overview

FluxServe is a lightweight and high-performance serving engine engineered specifically for diffusion language models. It is designed to deliver low-latency and high-throughput inference for autoregressive diffusion models across a variety of hardware setups, ranging from single-GPU batched inference to multi-GPU distributed serving.

At launch, FluxServe’s core features include:

  • Native Block-Causal Attention: FluxServe implements an efficient block-causal attention runtime tailored for AR diffusion in real-world scenarios. It supports both variable-length (varlen) prefill and varlen block-decode, with backend support for both FlashInfer and FA4.
  • Dynamic Request Scheduler: FluxServe features a hybrid scheduling architecture, pairing a low-overhead C++ control plane with a Python execution plane. This enables the fine-grained, block-level request management essential for diffusion models.
  • Unified Diffusion Playground: FluxServe provides native support for a wide range of open diffusion language models, such as LLaDA2.X and Diffusion-Gemma, establishing a standardized benchmarking platform for both academic researchers and industry practitioners.

Performance Results

Here, we present preliminary benchmark results comparing FluxServe against SGLang. To ensure a fair comparison, we launched both engines as API endpoints and utilized the third-party evaluation tool evalscope to measure system performance across multiple datasets. The figure below highlights the throughput performance on LLaDA2 models. Across different model configurations, FluxServe achieves a consistent decode throughput improvement over AR-oriented serving stacks, delivering an average speedup of 1.6x.

We further show the Pareto curves of FluxServe and SGLang on the BigCodeBench dataset. Each curve plots user throughput (x-axis) against GPU throughput (y-axis). FluxServe achieves higher GPU throughput than SGLang at comparable user throughput. For LLaDA2.1-flash, at around 100 user tokens/s, FluxServe delivers over 1000 token/s, showing roughly 60% higher GPU throughput than SGLang.

Roadmaps

External Contributions

FluxServe is built as a lightweight and performance-oriented serving infrastructure project. Due the widespread use of AI agents, we will be intentionally selective about the submitted issues and PRs, and conduct thorough discussion and validation before merging. We appreciate everyone’s ideas, support and feedback to our project. We welcome external contributions, especially:

  • Obvious bug fixes
  • Performance optimizations that fit the existing codebase style without additional unnecessary complexity
  • Benchmarks, observability and documentation improvements

Acknowledgements

Our system design was inspired by, and incorporates reused code from, the following incredible projects: vLLM, SGLang, TokenSpeed, dInfer, FlashInfer, and Flash-Attention.

Citation

@misc{fluxserve2026,
author = {{FluxServe Team}},
title = {FluxServe: A Flexible and High-Performance Inference Engine for Open Diffusion Language Models},
year = {2026},
month = {September},
howpublished = {\url{(https://github.com/FLX-OSS/FluxServe)}}
}

Contributors

← All posts