unrestricted.image
GlossarySettingsSampling

What Is a Sampler in Stable Diffusion? Euler, DPM++ and More

Updated ·Also called: sampling method, solver

A diffusion model predicts noise; the sampler decides how to use that prediction to step from noise toward an image. Different samplers are different numerical methods for solving the same problem.

Families

  • Euler: simple, fast, reliable. A standard choice for FLUX-family models.
  • Euler a (ancestral): adds noise each step; more varied, does not converge.
  • DPM++ 2M: efficient, sharp results in 20-30 steps; popular for SDXL.
  • DPM++ SDE / 2M SDE: stochastic variants, more texture, sometimes slower.
  • UniPC: good quality at low step counts.
  • DDIM: older, deterministic, still used in some workflows.
  • LCM and other distillation samplers: for few-step models.

Deterministic vs stochastic

Deterministic samplers give the same image for the same seed and settings, and converge as steps increase. Stochastic (ancestral, SDE) ones inject randomness, which can add detail and variety but makes results less stable.

Sampler vs scheduler

The sampler is the stepping method; the scheduler decides how noise levels are spaced across steps. Many UIs combine them in names like “DPM++ 2M Karras”.

Choosing

Start from the model card’s recommendation, then compare two or three samplers with a fixed seed. Full guide in samplers and schedulers.

Common questions

What is the best sampler?

There is no universal best. DPM++ 2M with a Karras schedule is a strong SDXL default; Euler with a simple or beta schedule is common for FLUX. Follow the model card.

What does 'a' mean in Euler a?

Ancestral. Ancestral samplers add fresh noise each step, so images keep changing with more steps and do not converge to one result.

Related

More terms: ControlNet · Denoising strength · FP8 · Hires fix · IP-Adapter · Latent space · Full glossary

Unlock the whole studio.

Open the unrestricted AI image generator and take every setting into your own hands.