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:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user