Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Revert "Fix serve config parsing" #68

Merged
merged 1 commit into from
Oct 3, 2023
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 aviary/backend/server/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class AppArgs(BaseModel):


class RouterArgs(BaseModel):
models: Union[str, LLMApp, List[Union[LLMApp, str]]]
models: Dict[str, Union[str, LLMApp]]


class PlacementConfig(BaseModel):
Expand Down
5 changes: 2 additions & 3 deletions aviary/backend/server/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from aviary.backend.llm.vllm.vllm_engine import VLLMEngine
from aviary.backend.llm.vllm.vllm_models import VLLMApp
from aviary.backend.server.app import RouterDeployment
from aviary.backend.server.models import LLMApp, RouterArgs, ScalingConfig
from aviary.backend.server.models import LLMApp, ScalingConfig
from aviary.backend.server.plugins.deployment_base_client import DeploymentBaseClient
from aviary.backend.server.plugins.execution_hooks import (
ExecutionHooks,
Expand Down Expand Up @@ -111,8 +111,7 @@ def router_deployment(


def router_application(args):
router_args = RouterArgs.parse_obj(args)
llm_apps = parse_args(router_args.models, llm_app_cls=VLLMApp)
llm_apps = parse_args(args, llm_app_cls=VLLMApp)
return router_deployment(llm_apps, enable_duplicate_models=False)


Expand Down