Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: glm4-chat cannot apply for continuous batching with transformers backend #2695

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions xinference/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class _OutOfMemoryError(Exception):
]

XINFERENCE_TEXT_TO_IMAGE_BATCHING_ALLOWED_MODELS = ["FLUX.1-dev", "FLUX.1-schnell"]
XINFERENCE_BATCHING_BLACK_LIST = ["glm4-chat"]


def request_limit(fn):
Expand Down Expand Up @@ -373,11 +372,7 @@ def allow_batching(self) -> bool:
f"Your model {self._model.model_family.model_name} with model family {self._model.model_family.model_family} is disqualified."
)
return False
return (
condition
and self._model.model_family.model_name
not in XINFERENCE_BATCHING_BLACK_LIST
)
return condition

def allow_batching_for_text_to_image(self) -> bool:
from ..model.image.stable_diffusion.core import DiffusionModel
Expand Down
Loading