Dev/rebase v0170 (#1639)

Signed-off-by: Taichang Zhou <tzhouam@connect.ust.hk>
Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
Signed-off-by: princepride <wangzhipeng628@gmail.com>
Signed-off-by: Zhou Taichang <tzhouam@connect.ust.hk>
Co-authored-by: 汪志鹏 <wangzhipeng628@gmail.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-03-09 17:29:38 +08:00
1 parent 4db10d6dec
commit 89b527e533
38 files changed
+828 -365

No files matched your search

+1 -3
View File
@@ -53,10 +53,8 @@ def is_diffusion_model(model_name: str) -> bool:
# Strategy 2: Check using vllm's utility (works for both local and remote models)
try:
# Try to get model_index.json using vllm's utility
config_dict = get_hf_file_to_dict("model_index.json", model_name)
# Verify it has the required fields for a diffusers model
if config_dict.get("_class_name") and config_dict.get("_diffusers_version"):
if config_dict is not None and config_dict.get("_class_name") and config_dict.get("_diffusers_version"):
logger.debug("Detected diffusion model via model_index.json")
return True
except Exception as e: