From e55b3a0b109bbceca22ec2396ac97ccbd4bfe348 Mon Sep 17 00:00:00 2001 From: chendile Date: Tue, 19 Sep 2023 10:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=94=99=E5=88=AB=E5=AD=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- myapp/views/view_inferenceserving.py | 4 ++-- myapp/views/view_service_pipeline.py | 4 ++-- myapp/views/view_serving.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/myapp/views/view_inferenceserving.py b/myapp/views/view_inferenceserving.py index ec92aafc..b34531ea 100644 --- a/myapp/views/view_inferenceserving.py +++ b/myapp/views/view_inferenceserving.py @@ -131,8 +131,8 @@ class InferenceService_ModelView_base(): widget=Select2Widget(), validators=[DataRequired()] ), - "resource_memory":StringField(_(datamodel.obj.lab('resource_memory')),default='5G',description='内存的资源使用限制,示例1G,10G, 最大100G,如需更多联系管路员',widget=BS3TextFieldWidget(),validators=[DataRequired()]), - "resource_cpu":StringField(_(datamodel.obj.lab('resource_cpu')), default='5',description='cpu的资源使用限制(单位核),示例 0.4,10,最大50核,如需更多联系管路员',widget=BS3TextFieldWidget(), validators=[DataRequired()]), + "resource_memory":StringField(_(datamodel.obj.lab('resource_memory')),default='5G',description='内存的资源使用限制,示例1G,10G, 最大100G,如需更多联系管理员',widget=BS3TextFieldWidget(),validators=[DataRequired()]), + "resource_cpu":StringField(_(datamodel.obj.lab('resource_cpu')), default='5',description='cpu的资源使用限制(单位核),示例 0.4,10,最大50核,如需更多联系管理员',widget=BS3TextFieldWidget(), validators=[DataRequired()]), "min_replicas": StringField(_(datamodel.obj.lab('min_replicas')), default=InferenceService.min_replicas.default.arg,description='最小副本数,用来配置高可用,流量变动自动伸缩',widget=BS3TextFieldWidget(), validators=[DataRequired()]), "max_replicas": StringField(_(datamodel.obj.lab('max_replicas')), default=InferenceService.max_replicas.default.arg, description='最大副本数,用来配置高可用,流量变动自动伸缩', widget=BS3TextFieldWidget(), diff --git a/myapp/views/view_service_pipeline.py b/myapp/views/view_service_pipeline.py index 1c410172..2b1f6362 100644 --- a/myapp/views/view_service_pipeline.py +++ b/myapp/views/view_service_pipeline.py @@ -141,10 +141,10 @@ class Service_Pipeline_ModelView_Base(): validators=[DataRequired()]), "resource_memory": StringField(_(datamodel.obj.lab('resource_memory')), default=Service_Pipeline.resource_memory.default.arg, - description='内存的资源使用限制,示例1G,10G, 最大100G,如需更多联系管路员', widget=BS3TextFieldWidget(), + description='内存的资源使用限制,示例1G,10G, 最大100G,如需更多联系管理员', widget=BS3TextFieldWidget(), validators=[DataRequired()]), "resource_cpu": StringField(_(datamodel.obj.lab('resource_cpu')), default=Service_Pipeline.resource_cpu.default.arg, - description='cpu的资源使用限制(单位核),示例 0.4,10,最大50核,如需更多联系管路员', + description='cpu的资源使用限制(单位核),示例 0.4,10,最大50核,如需更多联系管理员', widget=BS3TextFieldWidget(), validators=[DataRequired()]), "resource_gpu": StringField(_(datamodel.obj.lab('resource_gpu')), default='0', description='gpu的资源使用限制(单位卡),示例:1,2,训练任务每个容器独占整卡。申请具体的卡型号,可以类似 1(V100),目前支持T4/V100/A100/VGPU', diff --git a/myapp/views/view_serving.py b/myapp/views/view_serving.py index 15e9f7c8..41db9bf5 100644 --- a/myapp/views/view_serving.py +++ b/myapp/views/view_serving.py @@ -85,8 +85,8 @@ class Service_ModelView_base(): "working_dir": StringField(_(datamodel.obj.lab('working_dir')),description='工作目录,容器启动的初始所在目录,不填默认使用Dockerfile内定义的工作目录',widget=BS3TextFieldWidget()), "command":StringField(_(datamodel.obj.lab('command')), description='启动命令,支持多行命令',widget=MyBS3TextAreaFieldWidget(rows=3)), "node_selector":StringField(_(datamodel.obj.lab('node_selector')), description='运行当前服务所在的机器',widget=BS3TextFieldWidget(),default='cpu=true,serving=true'), - "resource_memory":StringField(_(datamodel.obj.lab('resource_memory')),default=Service.resource_memory.default.arg,description='内存的资源使用限制,示例1G,10G, 最大100G,如需更多联系管路员',widget=BS3TextFieldWidget(),validators=[DataRequired()]), - "resource_cpu":StringField(_(datamodel.obj.lab('resource_cpu')), default=Service.resource_cpu.default.arg,description='cpu的资源使用限制(单位核),示例 0.4,10,最大50核,如需更多联系管路员',widget=BS3TextFieldWidget(), validators=[DataRequired()]), + "resource_memory":StringField(_(datamodel.obj.lab('resource_memory')),default=Service.resource_memory.default.arg,description='内存的资源使用限制,示例1G,10G, 最大100G,如需更多联系管理员',widget=BS3TextFieldWidget(),validators=[DataRequired()]), + "resource_cpu":StringField(_(datamodel.obj.lab('resource_cpu')), default=Service.resource_cpu.default.arg,description='cpu的资源使用限制(单位核),示例 0.4,10,最大50核,如需更多联系管理员',widget=BS3TextFieldWidget(), validators=[DataRequired()]), "replicas": StringField(_(datamodel.obj.lab('replicas')), default=Service.replicas.default.arg,description='pod副本数,用来配置高可用',widget=BS3TextFieldWidget(), validators=[DataRequired()]), "ports": StringField(_(datamodel.obj.lab('ports')), default=Service.ports.default.arg,description='进程端口号,逗号分隔',widget=BS3TextFieldWidget(), validators=[DataRequired()]), "env": StringField(_(datamodel.obj.lab('env')), default=Service.env.default.arg, description='使用模板的task自动添加的环境变量,支持模板变量。书写格式:每行一个环境变量env_key=env_value',widget=MyBS3TextAreaFieldWidget()),