[MiniMax-H3] TeaCache support and Cache-DiT validation (#5840)

Signed-off-by: dpeng123 <diyapeng123@gmail.com>
Signed-off-by: lishunyang12 <lishunyang12@163.com>
Co-authored-by: lishunyang12 <lishunyang12@163.com>
This commit is contained in:
Diya Pengandlishunyang12 authored and GitHub committed 2026-08-09 15:07:21 +00:00
1 parent fc8946fcf5
commit 45629a8e26
10 files changed
+669 -15

No files matched your search

+4 -4
View File
@@ -412,14 +412,14 @@ class DiffusionCacheConfig:
>>> # Access via attribute
>>> print(config.rel_l1_thresh) # 0.3 (from dict)
>>> print(config.Fn_compute_blocks) # 8 (default)
>>> # Empty dict uses all defaults
>>> # Empty dict defers model-specific defaults to the TeaCache backend
>>> default_config = DiffusionCacheConfig.from_dict({})
>>> print(config.rel_l1_thresh) # 0.2 (default)
>>> print(default_config.rel_l1_thresh) # None
"""
# TeaCache parameters [tea_cache only]
# Default: 0.2 provides ~1.5x speedup with minimal quality loss (optimal balance)
rel_l1_thresh: float = 0.2
# None defers to the model-specific TeaCache default (0.2 fallback).
rel_l1_thresh: float | None = None
coefficients: list[float] | None = None # Uses model-specific defaults if None
# MagCache parameters [mag_cache only]