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

Fix the server CLI issue with use_flashinfer flag #42

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion server/text_generation_server/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def serve(
logger_level: str = "INFO",
json_output: bool = False,
otlp_endpoint: Optional[str] = None,
use_flashinfer: bool = True,
use_flashinfer: Optional[bool] = True,
):
if sharded:
assert (
Expand Down
5 changes: 5 additions & 0 deletions server/text_generation_server/models_flashinfer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class ModelType(enum.Enum):
}


__GLOBALS = locals()
for data in ModelType:
__GLOBALS[data.name] = data.value["type"]


def get_model(
model_id: str,
revision: Optional[str],
Expand Down
1 change: 0 additions & 1 deletion server/text_generation_server/server_flashinfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ async def serve_inner(
revision,
sharded,
quantize,
speculate,
dtype,
trust_remote_code,
lora_ids,
Expand Down
Loading