Skip to main content
Spectrum forecasts DiT features and skips selected denoising steps. It is an approximation: validate visual or video quality and latency on the exact model, shape, hardware, and sampling settings you plan to deploy.

Quick start

Scope and constraints

  • Available on native FLUX.1, Wan, HunyuanVideo, SD3, and MiniMax-H3 implementation paths. It is not a --backend diffusers feature and does not currently cover FLUX.2.
  • The request control is available through sglang generate and Python sampling parameters. It is not a sglang serve or OpenAI-server request option yet.
  • Spectrum and --enable-teacache are mutually exclusive. On MiniMax-H3 it also cannot run with Cache-DiT / quality="high", or with SP > 1.
  • MiniMax-H3 50-step recipe: --spectrum-warmup-steps 11 --spectrum-window-size 5 --spectrum-flex-window 1.0. Defaults are the 20-step schedule. See the MiniMax-H3 cookbook.
  • Start with the defaults. --debug adds shadow-prediction validation work, so its latency is not representative of normal Spectrum execution.

Advanced controls

Use --enable-spectrum explicitly. Providing any Spectrum override also enables it, but that implicit behavior is intended for scripts rather than new commands.
These controls trade speed against output fidelity. Change one control at a time and retain a lossless baseline for comparison.