[Diffusion] Add Minimax-H3 modular pipeline support (#5720)

Signed-off-by: Isotr0py <Isotr0py@outlook.com>
Signed-off-by: lishunyang12 <lishunyang12@163.com>
Signed-off-by: David Chen <530634352@qq.com>
Co-authored-by: lishunyang12 <lishunyang12@163.com>
Co-authored-by: SYLAR <125541396+lishunyang12@users.noreply.github.com>
Co-authored-by: David Chen <530634352@qq.com>
This commit is contained in:
authored and GitHub committed 2026-08-06 11:43:23 +00:00
1 parent d219d93bbb
commit 48298030d4
25 files changed
+843 -177

No files matched your search

+11
View File
@@ -9,6 +9,7 @@ from typing import Any, Literal
import huggingface_hub
import vllm.envs as envs
from vllm.logger import init_logger
from vllm.transformers_utils.repo_utils import file_or_path_exists
from vllm.v1.engine.exceptions import EngineDeadError, EngineGenerateError
from vllm_omni.engine.async_omni_engine import AsyncOmniEngine
@@ -73,6 +74,16 @@ def omni_snapshot_download(model_id: str) -> str:
return snapshot_download(model_id)
# Modular Diffusers repositories describe independently loadable
# components. Let the selected pipeline download only its component
# sources instead of eagerly materializing the entire repository.
try:
if file_or_path_exists(model_id, "modular_model_index.json", revision=None):
return model_id
except (huggingface_hub.errors.GatedRepoError, huggingface_hub.errors.RepositoryNotFoundError):
# Preserve the more helpful errors raised by the full-download path.
pass
try:
download_weights_from_hf_specific(
model_name_or_path=model_id,