Add modular pipeline for HunyuanVideo 1.5 (#13389) · huggingface/diffusers@b3889ea · GitHub
Skip to content

Commit b3889ea

Browse files
Add modular pipeline for HunyuanVideo 1.5 (#13389)
* Add modular pipeline support for HunyuanVideo 1.5 * Fix I2V latent/cond spatial dimension mismatch * Fix guidance_scale default to 7.5 matching ClassifierFreeGuidance * Fix tokenizer type: use Qwen2TokenizerFast to match model * Fix system message string formatting to match standard pipeline * Rewrite HunyuanVideo 1.5 modular: use standard pipeline methods directly * Remove I2V exports (T2V only for now) * Fix encoder: use static methods directly instead of encode_prompt * Inline all standard pipeline methods, remove runtime dependency * Add HunyuanVideo 1.5 image-to-video modular blocks * Fix missing FrozenDict import in before_denoise.py * auto-generated docstrings via #auto_docstring * Fix ruff lint and format issues * use InputParam/OutputParam templates and fix ruff * Address LTX review feedback here like add AutoBlocks, refactor I2V latents, lift encoders * Add workflow map, workflow tests, auto docstrings, export only AutoBlocks * Address Claude CI review * Address claude CI review 2 --------- Co-authored-by: YiYi Xu <yixu310@gmail.com>
1 parent e0c1ec4 commit b3889ea

13 files changed

Lines changed: 2036 additions & 0 deletions

File tree

‎src/diffusers/__init__.py‎

Lines changed: 4 additions & 0 deletions

‎src/diffusers/modular_pipelines/__init__.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
"QwenImageLayeredModularPipeline",
8989
"QwenImageLayeredAutoBlocks",
9090
]
91+
_import_structure["hunyuan_video1_5"] = [
92+
"HunyuanVideo15AutoBlocks",
93+
"HunyuanVideo15ModularPipeline",
94+
]
9195
_import_structure["ltx"] = [
9296
"LTXAutoBlocks",
9397
"LTXModularPipeline",
@@ -123,6 +127,10 @@
123127
HeliosPyramidDistilledModularPipeline,
124128
HeliosPyramidModularPipeline,
125129
)
130+
from .hunyuan_video1_5 import (
131+
HunyuanVideo15AutoBlocks,
132+
HunyuanVideo15ModularPipeline,
133+
)
126134
from .ltx import LTXAutoBlocks, LTXModularPipeline
127135
from .modular_pipeline import (
128136
AutoPipelineBlocks,
Lines changed: 49 additions & 0 deletions

0 commit comments

Comments
 (0)