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 only on native FLUX.1, Wan, HunyuanVideo, and SD3 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.
- 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.