Nodes/SpectrumKSampler/Spectrum Model Patch (MOSS)
ComfyUI Node

Spectrum Model Patch (MOSS)

Spectrum feature forecasting for MOSS-Image loaded by ComfyUI's built-in loader. Preserves the supplied model sampling, flow shift and guidance. Does not compile the model. Each sampler invocation gets fresh forecast state using its actual sigma schedule.

By sorryhyun·Created 7 months ago·Updated 4 days ago· 39
Spectrum Model Patch (MOSS)
  • model
  • MODEL
◄steps30►
◄window_size2.00►
◄flex_window0.25►
◄warmup_steps6►
◄tail_actual_steps3►
◄blend_w0.30►
◄cheby_degree3►
◄ridge_lambda0.10►
◄history_size100►
◄enabledtrue►
◄one_sampler_onlyfalse►
◄verbosefalse►
◄compat_policyconservative►
Categorymodel_patches

Inputs (14)

NameTypeDefaultDescription
modelMODELMOSS-Image MODEL from ComfyUI's built-in loader. Keeps its sampling and flow shift.
stepsINT301–10000Ignored. The downstream sampler's actual sigma schedule determines forecast warmup and tail length.
window_sizeFLOAT2.001–10Initial caching window; 1.0 disables cached steps.
flex_windowFLOAT0.250–2Window growth after each actual forward.
warmup_stepsINT60–10000Initial steps forced to actual DiT forwards.
tail_actual_stepsINT30–10000Final steps forced to actual DiT forwards.
blend_wFLOAT0.300–1Chebyshev/Taylor blend weight; 1.0 is pure Chebyshev.
cheby_degreeINT31–10Chebyshev polynomial degree.
ridge_lambdaFLOAT0.100.001–10Ridge regression regularization strength.
history_sizeINT1005–10000Forecaster buffer size.
enabledBOOLEANtrue—
one_sampler_onlyBOOLEANfalseApply Spectrum only to the first sampler run that uses this patched MODEL within a workflow run; later sampler runs (e.g. hi-res fix) pass through. Re-arms on each new workflow execution.
verboseBOOLEANfalseLog actual/cached step decisions.
compat_policyCOMBOconservative3 options: legacy, conservative, strict

Outputs (1)

NameTypeDescription
MODELMODEL—