cube-studio/job-template/job/deploy-service
2022-06-08 16:47:57 +08:00
..
build.sh 修改镜像仓库地址 2022-06-08 16:47:57 +08:00
Dockerfile 修复部分模板模板 2022-06-06 20:06:37 +08:00
launcher.py 修复部署服务模板 2022-06-06 21:13:55 +08:00
README.md 修改镜像仓库地址 2022-06-08 16:47:57 +08:00

deploy-service 模板

镜像ccr.ccs.tencentyun.com/cube-studio/deploy-service:20211001 启动参数:

{
    "shell": {
        "--project_name": {
            "type": "str",
            "item_type": "str",
            "label": "部署项目名",
            "require": 1,
            "choice": [],
            "range": "",
            "default": "public",
            "placeholder": "",
            "describe": "部署项目名",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--service_type": {
            "type": "str",
            "item_type": "str",
            "label": "推理服务类型",
            "require": 0,
            "choice": ['service','tfserving','torch-server','onnxruntime','triton-server'],
            "range": "",
            "default": "service",
            "placeholder": "",
            "describe": "推理服务类型",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--label": {
            "type": "str",
            "item_type": "str",
            "label": "推理服务描述",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "demo推理服务",
            "placeholder": "",
            "describe": "推理服务描述",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--model_name": {
            "type": "str",
            "item_type": "str",
            "label": "模型名",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "模型名",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--model_version": {
            "type": "str",
            "item_type": "str",
            "label": "模型版本号",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "v2022.10.01.1",
            "placeholder": "",
            "describe": "模型版本号",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--model_path": {
            "type": "str",
            "item_type": "str",
            "label": "模型地址",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "模型地址",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--images": {
            "type": "str",
            "item_type": "str",
            "label": "推理服务镜像",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "推理服务镜像",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--replicas": {
            "type": "str",
            "item_type": "str",
            "label": "pod副本数",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "1",
            "placeholder": "",
            "describe": "pod副本数",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--working_dir": {
            "type": "str",
            "item_type": "str",
            "label": "推理容器工作目录",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "推理容器工作目录",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--command": {
            "type": "str",
            "item_type": "str",
            "label": "推理容器启动命令",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "推理容器启动命令",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--args": {
            "type": "str",
            "item_type": "str",
            "label": "推理容器启动参数",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "推理容器启动参数",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--env": {
            "type": "text",
            "item_type": "str",
            "label": "推理容器环境变量",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "",
            "placeholder": "",
            "describe": "推理容器环境变量",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },
        "--ports": {
            "type": "str",
            "item_type": "str",
            "label": "推理容器暴露端口",
            "require": 0,
            "choice": [],
            "range": "",
            "default": "80",
            "placeholder": "",
            "describe": "推理容器暴露端口",
            "editable": 1,
            "condition": "",
            "sub_args": {}
        },

    }
}