Python class
DenoisingCacheConfig
DenoisingCacheConfig
class max.pipelines.modeling.base.DenoisingCacheConfig(*, config_file=None, section_name=None, first_block_caching=False, taylorseer=False, taylorseer_cache_interval=None, taylorseer_warmup_steps=None, taylorseer_max_order=None)
Bases: ConfigFileModel
Pipeline-level cache configuration for diffusion model denoising.
Controls First-Block Cache (step cache) and TaylorSeer optimizations that skip redundant transformer passes during the denoising loop.
-
Parameters:
config_file
Path to the configuration file.
first_block_caching
first_block_caching: bool
model_config
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': False, 'strict': False}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
section_name
Optional section name for comprehensive/multi-section config files.
If not provided, values are loaded from the YAML top-level (treating the file as an “individual config” file).
taylorseer
taylorseer: bool
taylorseer_cache_interval
taylorseer_max_order
taylorseer_warmup_steps
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!