From 279e7738c5857ce8664a77b1ffcb59d46960f1e4 Mon Sep 17 00:00:00 2001 From: yang1002378395-cmyk Date: Fri, 27 Mar 2026 22:42:39 +0800 Subject: [PATCH] [diffusion] fix: return None instead of raising RuntimeError when no model info found (#21319) Co-authored-by: Mick --- python/sglang/multimodal_gen/registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/sglang/multimodal_gen/registry.py b/python/sglang/multimodal_gen/registry.py index 493e519bc..1e3aac6a4 100644 --- a/python/sglang/multimodal_gen/registry.py +++ b/python/sglang/multimodal_gen/registry.py @@ -349,10 +349,11 @@ def _get_config_info( model_id = matched_model_names[0] return _CONFIG_REGISTRY.get(model_id) else: - raise RuntimeError( + logger.debug( f"No model info found for model path: {model_path}. " f"Please check the model path or specify the model_id explicitly." ) + return None # --- Part 3: Main Resolver ---