IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

DenoisingCacheSettings

DenoisingCacheSettings

class max.pipelines.diffusion.config.DenoisingCacheSettings(*, config_file=None, section_name=None, first_block_caching=None, taylorseer=None, taylorseer_cache_interval=None, taylorseer_warmup_steps=None, taylorseer_max_order=None)

source

Bases: ConfigFileModel

User denoising-cache settings. Every field is optional.

Construction fills unset fields from the architecture’s TaylorSeer defaults, producing DenoisingCacheConfig.

Parameters:

  • config_file (str | None)
  • section_name (str | None)
  • first_block_caching (bool | None)
  • taylorseer (bool | None)
  • taylorseer_cache_interval (int | None)
  • taylorseer_warmup_steps (int | None)
  • taylorseer_max_order (int | None)

config_file

config_file: str | None

source

Path to the configuration file.

first_block_caching

first_block_caching: bool | None

source

model_config

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True, 'strict': False}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

section_name

section_name: str | None

source

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 | None

source

taylorseer_cache_interval

taylorseer_cache_interval: int | None

source

taylorseer_max_order

taylorseer_max_order: int | None

source

taylorseer_warmup_steps

taylorseer_warmup_steps: int | None

source