This commit is contained in:
joedeng-ai
2026-04-17 14:49:55 +00:00
parent 453c5b277f
commit 5594a01cec
+10
View File
@@ -16,6 +16,16 @@ from comfy.utils import (
logger = logging.getLogger(__name__)
class _SuppressModelConfigWarning(logging.Filter):
"""Suppress the expected 'Could not read model config' error from SGLang when loading safetensors files."""
def filter(self, record):
return "Could not read model config" not in record.getMessage()
logging.getLogger("sglang.multimodal_gen.registry").addFilter(_SuppressModelConfigWarning())
try:
from sglang.multimodal_gen import DiffGenerator
except ImportError: