Techniques
Reference pages for each optional generation technique PotionUI ships, one page per technique: what
it does, which model families it applies to, its knobs, and its status (stable,
experimental, or needs-gpu-validation). For the grouped map of how these trade off against each
other — and how to validate one on your own hardware — see
How PotionUI's engine optimizations fit together. This page is a flat,
complete index of every file in this directory.
On this page
Performance#
- Attention Backends — the shared attention dispatcher (sdpa, sage, sage2, sage3, flash, sparge).
- First-Block Cache (FBCache) — skip most of a diffusion step when the model's output barely changed.
- Native fp8 Matmul — run the GEMM itself in fp8 instead of dequantizing first.
- Prompt Embedding Cache — skip re-encoding a prompt you've already run.
- SLA (Sparse–Linear Attention) — block-sparse attention for MiniMax-H3, vendored from thu-ml's SLA.
- Sol-Attn — block-sparse attention for MiniMax-H3 that scores KV blocks by pooled summary vectors.
- Speed Profiles — a preset-authoring convention for draft/standard/max toggles.
- Streaming Prefetch Overlap — overlap weight transfer with compute on low-VRAM setups.
- Regional
torch.compile— regional graph compilation for resident models.
Memory#
- Temporal-Chunked VAE Decode — decode long video clips in temporal chunks instead of all at once.
- Preset-Scoped Model RAM Cache — how models are kept in or evicted from RAM across preset switches.
Quality#
- ADM Guidance (Fooocus technique) — Fooocus-style texture enhancement for SDXL.
- Adaptive Projected Guidance (APG) — reduce oversaturation at high guidance scales.
- CFG-Zero* — a free correction to classifier-free guidance's early-step behavior.
- Detail Daemon Schedule Warp — bias the noise schedule toward more or less fine detail.
- FreeInit — reduce video flicker by iteratively refining the initial noise.
- Native Face Detailer — crop, refine, and feather back each detected face at low denoise.
- Normalized Attention Guidance (NAG) — negative-prompt steering inside attention, without a second forward pass.
- Numerics Watchdog (NaN/Inf Guard) — catch numerical corruption during sampling before it produces a black image.
- RIFLEx — extend video length past a model's trained clip length without looping.
- Self-Attention Guidance (SAG) for SDXL — attention-map-driven guidance for SDXL.
- Anisotropic Sharpness Filter (SDXL) — anisotropic edge enhancement for SDXL.
- Skip-Layer Guidance (SLG) — guide against a degraded, layer-skipped prediction.
- SVI Pro 2.0 chain continuity — tune how strongly one Wan 2.2 chained-video segment carries into the next.
Sampling#
- Samplers and Sigma Schedules — every sampler algorithm and sigma schedule mode, with guidance on when to use each.
- Latent-Mask Inpainting — repaint a painted area or extend a canvas by pinning the kept latents to the source.
- Perfect Loop (Pinned Bridge) — a seamless video loop from an anchor pass and a bridge pinned to it at both ends, decoded with wrap-around context.
- Trajectory Warm-Start (Iterate Mode) — resume a generation from a cached mid-trajectory latent instead of starting from noise.
See Models for per-family reference pages, each listing which techniques above apply to it.
All 28 pages#
- Attention BackendsEvery native diffusion family routes its attention computation through one shared dispatcher. Instead of hard-coding a single attention…
- First-Block Cache (FBCache)Across most of a diffusion trajectory, a diffusion transformer's output changes only a little from one denoising step to the next. First-Block Cache…
- Native fp8 MatmulSome checkpoints ship their weights quantized to 8-bit floating point (fp8) to save VRAM and disk space. By default, PotionUI dequantizes those…
- Prompt Embedding CacheEncoding a prompt through a text encoder is real compute — for large text encoders it can be a meaningful fraction of a generation's total time…
- SLA (Sparse–Linear Attention)SLA is the second opt-in block-sparse attention path for the native engine, vendored at vendor/sla_attn/ (the LightX2V forward kernel and…
- Sol-AttnSol-Attn is an opt-in block-sparse attention path for the native engine, vendored at vendor/sol_attn/ (Apache-2.0) and wired into…
- Speed ProfilesSpeed profiles are how an individual preset can offer a one-click quality/speed tradeoff — a Draft/Standard/Max-style selector — without you having…
- Streaming Prefetch OverlapWhen a model doesn't fully fit in VRAM, PotionUI keeps as many layers resident on the GPU as fit and streams the rest from pinned host RAM on demand…
- Regional torch.compileCompiling an entire diffusion transformer with PyTorch's torch.compile normally costs a multi-minute warm-up the first time it runs, which is a poor…
- Temporal-Chunked VAE DecodeDecoding a video's latent back into pixels can use a lot of VRAM, since the accumulated pixel-frame output and intermediate activations grow with…
- Preset-Scoped Model RAM CacheLoading a model's weights from disk into host RAM is slow — for a large checkpoint, tens of seconds. To avoid re-reading a model from disk on every…
- ADM Guidance (Fooocus technique)ADM guidance is a texture-enhancement technique for SDXL, ported from Fooocus. SDXL's UNet receives extra conditioning beyond the text prompt —…
- Adaptive Projected Guidance (APG)Turning up classifier-free guidance (CFG) scale makes a generation follow the prompt more closely, but past a certain point it also produces…
- CFG-Zero*CFG-Zero* is a small correction applied to classifier-free guidance (CFG) — the mechanism that steers a generation away from a negative prompt and…
- Detail Daemon Schedule WarpThe detail daemon is a dial on the noise schedule itself, not a new sampling algorithm. Every generation follows a sequence of noise levels (sigmas)…
- FreeInitVideo diffusion models are trained on plain random noise that has no structure from one frame to the next. But a real video, once you noise it…
- Native Face Detailerdetailer/native (src/pipelines/pipes/detailer/native/) is a family-agnostic face detailer for the native engine: after a generator produces an…
- Normalized Attention Guidance (NAG)Normalized Attention Guidance enforces a negative prompt without paying for a second full model pass. Ordinary classifier-free guidance runs the…
- Numerics Watchdog (NaN/Inf Guard)Occasionally, a bug in a model, an attention kernel, or a numerically extreme combination of inputs can push the latent being denoised into NaN or…
- RIFLExVideo diffusion models are trained on clips of a fixed length, and that length gets baked into the positional encoding (rotary position embeddings…
- Self-Attention Guidance (SAG) for SDXLSelf-Attention Guidance is a detail-enhancement technique that uses the model's own self-attention maps to figure out which regions of the image…
- Anisotropic Sharpness Filter (SDXL)This is an edge-enhancement filter, ported from Fooocus, that runs during denoising rather than as a post-processing step on the finished image. At…
- Skip-Layer Guidance (SLG)Skip-Layer Guidance adds a second kind of guidance on top of ordinary classifier-free guidance. Where CFG pushes the output away from a…
- SVI Pro 2.0 chain continuityStable Video Infinity (SVI) Pro is a recipe for generating arbitrarily long Wan 2.2 video as a chain of short segments, where each segment continues…
- Samplers and Sigma SchedulesTwo independent choices shape how a native generation walks from pure noise to a finished image or video: the sampler (the step algorithm that…
- Latent-Mask InpaintingInpaint mode repaints a painted area of a picture with the model's ordinary weights. No inpaint checkpoint, LoRA or ControlNet is needed, so every…
- Perfect Loop (Pinned Bridge)A loop is perfect when the frame after the last one is the first one and nothing in between gives the join away: not the composition, not the…
- Trajectory Warm-Start (Iterate Mode)In a normal working session, successive generations are usually edits of each other — the same seed with a tweaked prompt, a nudged CFG value — not…