You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vladimir Mandic edited this page Sep 7, 2026
·
1 revision
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