1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-10-23 09:09:01 +03:00

[docs] add magcache to caching api listing (#13714)

add magcache to caching api listing
This commit is contained in:
Sayak Paul
2026-05-12 06:45:26 +09:00
committed by GitHub
parent 6382a3db4d
commit e5cf820fc3
2 changed files with 7 additions and 3 deletions

View File

@@ -35,8 +35,14 @@ Cache methods speedup diffusion transformers by storing and reusing intermediate
[[autodoc]] apply_first_block_cache
### TaylorSeerCacheConfig
## TaylorSeerCacheConfig
[[autodoc]] TaylorSeerCacheConfig
[[autodoc]] apply_taylorseer_cache
## MagCacheConfig
[[autodoc]] MagCacheConfig
[[autodoc]] apply_mag_cache

View File

@@ -118,8 +118,6 @@ pipe.transformer.enable_cache(config)
MagCache relies on **Magnitude Ratios** (`mag_ratios`), which describe this decay curve. These ratios are specific to the model checkpoint and scheduler.
### Usage
To use MagCache, you typically follow a two-step process: **Calibration** and **Inference**.
1. **Calibration**: Run inference once with `calibrate=True`. The hook will measure the residual magnitudes and print the calculated ratios to the console.