From e5cf820fc3bf4f84296fa32b3ca918afdcb99974 Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Tue, 12 May 2026 06:45:26 +0900 Subject: [PATCH] [docs] add magcache to caching api listing (#13714) add magcache to caching api listing --- docs/source/en/api/cache.md | 8 +++++++- docs/source/en/optimization/cache.md | 2 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/source/en/api/cache.md b/docs/source/en/api/cache.md index 6a2d74892c..a5ed875111 100644 --- a/docs/source/en/api/cache.md +++ b/docs/source/en/api/cache.md @@ -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 diff --git a/docs/source/en/optimization/cache.md b/docs/source/en/optimization/cache.md index 4eccd70cb3..07db3d84b4 100644 --- a/docs/source/en/optimization/cache.md +++ b/docs/source/en/optimization/cache.md @@ -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.