Nodes/ComfyUI-bleh/BlehInsaneChainSampler
ComfyUI Node

BlehInsaneChainSampler

Chain multiple samplers across a generation

By blepping·Created 3 years ago·Updated 2 months ago· 142
BlehInsaneChainSampler
  • sampler
  • sampler_chain_opt
  • SAMPLER
  • BLEH_SAMPLER_CHAIN
steps0

This node lets you build a sequence of different samplers, each running for a set number of steps before handing off to the next - heunpp2 for the first five steps, then euler_ancestral for the next five, then dpmpp_2m for whatever's left, straight out of the README's own worked example. It's the same end result as manually chaining several sampler nodes with explicit start/end steps set on each; this just packages that as a composable chain of nodes instead.

Worth knowing upfront, because it changes how much time to invest in this node specifically: the author recommends his own newer pack over it. Direct quote from the README: "I'd recommend using my Overly Complicated Sampling node pack over this. It generally has better tools for scheduling samplers." blepping is prolific in the sampler-and-guidance space beyond just this one pack - this is the same person also credited for porting Detail Daemon and MSW-MSA attention to ComfyUI - and this particular node is the older approach to a problem he later built a more capable, purpose-built tool for. It still works, and it's still documented, but if you're starting fresh and sampler-chaining is a core part of what you're building, it's worth at least glancing at Overly Complicated Sampling before committing to this one.

The mechanism: each BlehInsaneChainSampler node holds one sampler and a steps count, plus an optional sampler_chain_opt input that links to the previous node in the sequence - you build the chain by connecting these nodes together, then feed the final node's SAMPLER output into your actual sampling node. There's a genuinely confusing behavior the README calls out directly and it's worth repeating so it doesn't look like a bug: even a link near the end of the chain configured with steps=1 can end up running for several steps in practice, because the chain as a whole has to add up to however many total steps your outer sampling setup asked for. The steps value on each link is what that sampler runs before handing off, not a hard, guaranteed cap on how long it ultimately samples for.

Inputs: sampler (required), steps (default 0, range 0-9999). Optional: sampler_chain_opt (BLEH_SAMPLER_CHAIN, linking back to the previous node in your chain). Outputs: SAMPLER (feed this to your actual sampling node) and BLEH_SAMPLER_CHAIN (feed this forward to the next BlehInsaneChainSampler if you're extending the sequence).

Install is the standard route - ComfyUI Manager, or git clone https://github.com/blepping/ComfyUI-bleh into custom_nodes plus a restart. No extra dependencies.

One cosmetic note worth having so it doesn't cause alarm: progress bars and step counts can look, in the README's own words, "a little weird" when sampling is split across a chain like this. That's an artifact of how ComfyUI reports progress across multiple sub-samplers, not a sign the chain itself is malfunctioning.

Categorysampling/custom_sampling/samplers

Inputs (3)

NameTypeDefaultDescription
samplerSAMPLER
stepsINT00–9999
sampler_chain_optoptBLEH_SAMPLER_CHAIN

Outputs (2)

NameTypeDescription
SAMPLERSAMPLER
BLEH_SAMPLER_CHAINBLEH_SAMPLER_CHAIN