[Feat] Support Pipeline Resolution Based on HF Config & Make Pipeline Registry Eager (#3760)

Signed-off-by: Alex Brooks <albrooks@redhat.com>
This commit is contained in:
Alex Brooks authored and GitHub committed 2026-06-24 11:02:29 +08:00
1 parent f6894f4308
commit 465f1464d2
44 files changed
+1038 -1126

No files matched your search

@@ -1,16 +1,8 @@
def __getattr__(name: str):
"""Lazy import to avoid importing transformers.models.glm_image at module init.
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
The AR model depends on ``transformers.models.glm_image`` which is only
available when the model weights are present. Importing it eagerly in
``__init__.py`` breaks the pipeline registry lookup for environments that
don't have this custom transformers extension installed.
"""
if name == "GlmImageForConditionalGeneration":
from .glm_image_ar import GlmImageForConditionalGeneration
return GlmImageForConditionalGeneration
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
__all__ = ["GlmImageForConditionalGeneration"]
# NOTE: Do not import model classes in this file. Importing any
# submodule in this package triggers __init__.py execution, and
# both the model registry and pipeline registry import submodules
# directly — heavy imports here would be loaded as a side effect
# even though nothing depends on these re-exports.