feat(model): supports the deployment of multiple models through the API and add the corresponding command line interface

This commit is contained in:
FangYin Cheng
2023-09-11 17:14:50 +08:00
parent f9e184a3f5
commit 986ada3aeb
38 changed files with 1081 additions and 344 deletions

View File

@@ -4,6 +4,7 @@ import subprocess
from typing import List, Dict
import psutil
import platform
from functools import lru_cache
def _get_abspath_of_current_command(command_path: str):
@@ -137,6 +138,7 @@ def _get_ports_by_cmdline_part(service_keys: List[str]) -> List[int]:
return ports
@lru_cache()
def _detect_controller_address() -> str:
controller_addr = os.getenv("CONTROLLER_ADDRESS")
if controller_addr: