Skip to main content
Progressive resolution growing is an experimental feature for selected SGLang Diffusion pipelines. It runs early denoising steps at a coarser latent resolution and spectrally upsamples the latent before the full-resolution steps. On the benchmark setup below, this reduces the quadratic attention cost of the DiT transformer and yields up to 1.63× speedup on FLUX.1, 1.93× speedup on FLUX.2, 2.33× speedup on Z-Image, 2.78× speedup on Wan 2.1 T2V, 1.69× speedup on Qwen-Image, and 1.56× speedup on Ideogram 4. Based on Spectral Progressive Diffusion (arXiv 2605.18736).

Overview

DiT attention is O(n²) in sequence length. Running the first N denoising steps at half the spatial resolution cuts the attention cost to ~6% for those steps. The transition point — how many steps to run at each resolution — is computed from the Bayes-optimal frequency-activation criterion: frequencies that cannot be resolved at the coarse scale are not denoised there. The method is designed to preserve quality under this criterion, but generated outputs can still differ from the full-resolution baseline.

Parameters

Tip: Add --dit-cpu-offload false to keep the transformer GPU-resident. With CPU offload each step pays a fixed PCIe transfer cost regardless of sequence length, which dilutes the speedup.

FLUX.1

Usage

Choosing delta

For most prompts 0.05 is recommended — it gives the largest speedup with no visible degradation.

Benchmark

Hardware: RTX A6000 48 GB, --dit-cpu-offload false. Timing = denoising loop only.

Python API


FLUX.2

Supports FLUX.2-dev, FLUX.2-klein-4B, and FLUX.2-klein-9B.

Usage

Benchmark

Hardware: RTX A6000 48 GB, --dit-cpu-offload false. Model: FLUX.2-klein-4B, 30 steps, 1024×1024. Timing = denoising loop only, averaged across 10 diverse prompts.

Python API


Wan 2.1 T2V

Supports Wan-AI/Wan2.1-T2V-1.3B-Diffusers and Wan-AI/Wan2.1-T2V-14B-Diffusers.
Note: Progressive generation grows only the spatial H×W dimensions. The temporal dimension T (number of latent frames) is kept fixed across all stages.

Usage

Choosing delta

For most prompts 0.05 is recommended. 0.10 provides maximum speedup but should be validated on motion-heavy scenes.

Python API


Z-Image

Supports Tongyi-MAI/Z-Image. Z-Image uses the same VAE as FLUX.1 (FluxVAEConfig), so the power-law spectrum constants are identical. The progressive stage handles Z-Image’s 5-D latent format [B, C, 1, H, W] with squeeze/unsqueeze hooks and recomputes caption+image RoPE positional embeddings on each stage transition.
Note: Always specify --height 1024 --width 1024 (or another resolution where H_lat and W_lat are both divisible by 2). Z-Image’s default resolution (360×640) produces a 45×80 latent where H=45 is not divisible by the patch size.

Usage

Choosing delta

Z-Image achieves higher progressive speedups than FLUX.1 at the same δ because it uses dual CFG (two forward passes per step), doubling the absolute attention savings at coarse resolution. 0.10 is the recommended tradeoff.

Python API


Qwen-Image

Qwen-Image uses the same 2×2 patchify convention as FLUX.1 (in_channels=64, C=16), so the same progressive stage wires in with model-specific hooks for RoPE (freqs_cis) and spatial metadata (img_shapes).
Hardware: RTX A6000 48 GB, --dit-cpu-offload false. Timing = denoising loop only.

Ideogram 4

Supports ideogram-ai/ideogram-4. Ideogram 4 uses a dual-transformer architecture: a conditional transformer (text + image tokens) and a separately-weighted unconditional transformer (image tokens only, zero LLM features). Both transformers shrink at coarse resolution, providing the same token-ratio benefit as single-transformer models.
Note: Ideogram 4’s logit-normal noise schedule (std=1.75, mu=0) concentrates steps near the mid-sigma range. Fewer steps fall in the high-sigma coarse-eligible region compared to FLUX, which limits the achievable speedup at a given δ.

Usage

20-step (V4_DEFAULT_20 preset)
48-step (V4_QUALITY_48 preset)

Benchmark

Hardware: RTX A6000 48 GB, torch_sdpa, --dit-cpu-offload false. Timing = denoising loop only. 20-step (V4_DEFAULT_20) 48-step (V4_QUALITY_48)

Python API


Limitations

  • Sequence parallelism incompatible. Cannot be combined with --ulysses-degree or --ring-degree. The stage raises a RuntimeError if SP is enabled.
  • torch.compile incompatible. Compiled kernels have a fixed sequence length; the resolution transition causes a recompile or error. Use progressive without --enable-torch-compile.
  • Cache-DiT interaction is experimental. The stage refreshes Cache-DiT context at resolution transitions, but quality and speedup should be benchmarked before relying on this combination.

References