Skip to content

Commit 1b38e43

Browse files
ElleElleWuskf-1999
authored andcommitted
[Model] SupportHunyuanImage3 Diffusion Model in GPU
Co-authored-by: skf1999 <13234016272@163.com> Co-authored-by: Just-it <1161406585@qq.com> Co-authored-by: Semmer2 <semmer@live.cn> Signed-off-by: skf1999 <13234016272@163.com>
1 parent 4d8e290 commit 1b38e43

File tree

13 files changed

+5753
-26
lines changed

13 files changed

+5753
-26
lines changed

vllm_omni/diffusion/distributed/parallel_state.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ def initialize_model_parallel(
660660
backend=backend,
661661
parallel_mode="data",
662662
)
663+
vllm_parallel_state._DP = _DP
663664

664665
global _CFG
665666
assert _CFG is None, "classifier_free_guidance group is already initialized"
@@ -677,6 +678,7 @@ def initialize_model_parallel(
677678
backend=backend,
678679
parallel_mode="pipeline",
679680
)
681+
vllm_parallel_state._PP = _PP
680682

681683
global _SP
682684
assert _SP is None, "sequence parallel group is already initialized"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3+
"""hunyuan Image diffusion model components."""
4+
5+
from vllm_omni.diffusion.models.hunyuan.hunyuan_image_3 import (
6+
HunyuanImage3Pipeline,
7+
)
8+
from vllm_omni.diffusion.models.hunyuan.hunyuan_image_3_models import (
9+
HunyuanImage3Model,
10+
HunyuanImage3Text2ImagePipeline,
11+
)
12+
13+
__all__ = [
14+
"HunyuanImage3Pipeline",
15+
"HunyuanImage3Model",
16+
"HunyuanImage3Text2ImagePipeline",
17+
]

0 commit comments

Comments
 (0)