[Feature] Support text encoder Disaggregation for H3 (#5885)

Signed-off-by: Canlin Guo <canlinguosdu@gmail.com>
Signed-off-by: lishunyang12 <lishunyang12@163.com>
Signed-off-by: yuanwu <yuan.wu@intel.com>
Co-authored-by: lishunyang12 <lishunyang12@163.com>
Co-authored-by: yuanwu <yuan.wu@intel.com>
This commit is contained in:
authored and GitHub committed 2026-08-28 14:27:05 +08:00
1 parent ed837e350e
commit b6a4baa659
61 files changed
+2952 -366

No files matched your search

+7 -2
View File
@@ -632,8 +632,12 @@ def resolve_model_class_name(
return None
is_lance_subfolder = os.path.basename(str(model).rstrip("/")) in {"Lance_3B", "Lance_3B_Video"}
# Diffusers models: read _class_name from the pipeline index.
model_index = get_diffusion_model_index(model, revision=revision)
# Diffusers models: read _class_name from the pipeline index. Missing
# local paths can otherwise be interpreted as invalid Hub repo IDs.
try:
model_index = get_diffusion_model_index(model, revision=revision)
except Exception:
model_index = None
if model_index is not None:
return model_index.get("_class_name")
if diffusion_load_format == "diffusers":
@@ -881,6 +885,7 @@ class OmniDiffusionConfig:
default_factory=lambda: {
"transformer": True,
"vae": True,
"text_encoder": True,
}
)
override_transformer_cls_name: str | None = None