mirror of
https://github.com/vladmandic/automatic
synced 2026-09-09 14:28:43 +02:00
Page:
Caching
Pages
AMD MIOpen
AMD ROCm
API
Advanced Install
Attention
Benchmark
CHANGELOG
CLI Arguments
CLI Tools
CLiP Skip
Caching
Caption
Control HowTo
Control Settings
Control Technical
Debug
Detailer
Dev AICoding
Dev Docs
Dev Extensions
Dev GettingStarted
Dev Hints
Dev Home
Dev Locale
Dev SelfStart
Dev Structure
Dev Theme
Dev UI
DirectML
Docker
Enso
FAQ
FLUX
Features
FramePack
Gated
Getting Started
Google GenAI
Guidance
HiDream
Home
Hotkeys
HuggingFace
IPAdapter
Ideogram
Installation
Intel ARC
Kanvas
LTX
Launcher
LoRA Technical
LoRA
Loader
MacOS Python
Malloc
MiniMax
Model Loading
Model Support
Models Tab
Models
Modular Pipelines
Networks Search
Networks
Notes
NudeNet
Nunchaku
ONNX Runtime
Offload
OpenVINO
Outpaint
Parameters
Performance Timers
Performance Tuning
Platforms
Process
Profiling
Prompt Enhance
Prompting
Python
Quantization
Reprocess
SD Pipeline How it Works
SD Training Methods
SD XL
SD3
SDNQ Quantization
Schedulers
Scripts
Stability Matrix
Stable Cascade
Styles
Themes
Troubleshooting
Update
Using LCM
VAE
Video
WSL
Wildcards
XYZ Grid
ZLUDA
_ToDo
index
nVidia
Clone
Table of Contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Execution Caching
Caching accelerates inference by storing and reusing intermediate outputs of different layers, such as attention and feedforward layers, instead of performing the entire computation at each inference step
It significantly improves generation speed at the expense of more memory and doesn’t require additional training
Tip
You may use caching on models that require larger step counts
But do not use caching on models that are tuned for fewer steps
Note
Which model supports which caching method depends on the model architecture: there is no universal approach, so experimentation is required
Caching methods:
- FasterCache
- FirstBlockCache
- LayerSkip
- MagCache
- PyramidAttentionBroadcast
- TaylorSeerCache
- TextKVCache
See https://huggingface.co/docs/diffusers/v0.40.0/en/optimization/cache for more information