Skip to content

definition

Data-only Wan variant definitions consumed by the shared registry.

Config names reference pipeline_config.py; preset names reference fastvideo/pipelines/basic/wan/presets.py. Neither values nor factories are duplicated here. Checkpoint manifests and explicit pipeline overrides still select the executable pipeline; these definitions do not pin or replace them.

Classes

fastvideo.models.wan.definition.WanModelDefinition dataclass

WanModelDefinition(pipeline_config: str, preset: str, sampling: Literal['unipc', 'dmd', 'causal_dmd'], hf_model_paths: tuple[str, ...], workload_types: tuple[Literal['t2v', 'i2v'], ...], match_any: tuple[str, ...] = (), match_all: tuple[str, ...] = (), exclude: tuple[str, ...] = ())

Methods:

fastvideo.models.wan.definition.WanModelDefinition.matches
matches(path_or_class: str) -> bool

Preserve legacy substring detectors, including their broad matches.

Source code in fastvideo/models/wan/definition.py
def matches(self, path_or_class: str) -> bool:
    """Preserve legacy substring detectors, including their broad matches."""
    value = path_or_class.lower()
    return (any(token in value for token in self.match_any) and all(token in value for token in self.match_all)
            and not any(token in value for token in self.exclude))