腾讯云TI-ONE训练平台发布服务_AI解决方案_同尘科技
create_model_service(self, service_group_name, worker_resource, framework, service_group_id=None, service_description=None, resource_group_id=None, model_config_info=None, model_cos_path=None, env=None, scale_mode="MANUAL", replicas=1, horizontal_pod_autoscaler=None, log_enable=False, log_logset_id=None, log_topic_id=None, authorization_enable=False, tags=None, cron_scale_jobs=None, scale_strategy=None, hybrid_billing_prepaid_replicas=None): 创建模型服务
:param service_group_name: 服务名称 :type service_group_name: str :param worker_resource:worker节点的配置 :type worker_resource: :class:`tikit.models.ModelServiceResourceConfigInfo` :param framework: 运行的框架环境 :type framework: :class:`tikit.models.FrameworkInfo` :param service_group_id: 服务id :type service_group_id:str :param service_description: 服务描述 :type service_description: str :param resource_group_id: 包年包月模式下所属的资源组id :type resource_group_id: str :param model_config_info: 模型信息 :type model_config_info: :class:`tikit.models.ModelConfigInfo` :param model_cos_path: 模型cos信息 :type model_cos_path: str :param env: 环境变量 :type env: list of :class:`tikit.tencentcloud.tione.v20211111.models.EnvVar` :param scale_mode: 扩缩容类型 :type scale_mode: str :param replicas: 实例数量 :type replicas:int :param horizontal_pod_autoscaler: 自动伸缩信息 :type horizontal_pod_autoscaler: :class:`tikit.tencentcloud.tione.v20211111.models.HorizontalPodAutoscaler` :param log_enable: 日志开关 :type log_enable: bool :param log_logset_id: 日志集id :type log_logset_id: str :param log_topic_id: 日志的topic id :type log_topic_id: str :param authorization_enable: 接口鉴权开关 :type authorization_enable: bool :param tags: 标签 :type tags: list of :class:`tikit.tencentcloud.tione.v20211111.models.Tag` :param cron_scale_jobs:定时任务配置 :type cron_scale_jobs: list of :class:`tikit.tencentcloud.tione.v20211111.models.CronScaleJob` :param scale_strategy: 自动伸缩策略配置 HPA :type scale_strategy: str :param hybrid_billing_prepaid_replicas: 混合计费模式下预付费实例数 :type hybrid_billing_prepaid_replicas: int :return: :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.CreateModelServiceResponse`
create_model_service_version(self, worker_resource, framework, service_group_id=None, service_description=None, resource_group_id=None, model_config_info=None, model_cos_path=None, env=None, scale_mode="MANUAL", replicas=1, horizontal_pod_autoscaler=None, log_enable=False, log_logset_id=None, log_topic_id=None, authorization_enable=False, tags=None, cron_scale_jobs=None, scale_strategy=None, hybrid_billing_prepaid_replicas=None): 创建模型服务版本
:param worker_resource:worker节点的配置 :type worker_resource: :class:`tikit.models.ModelServiceResourceConfigInfo` :param framework: 运行的框架环境 :type framework: :class:`tikit.models.FrameworkInfo` :param service_group_id: 服务id :type service_group_id:str :param service_description: 服务描述 :type service_description: str :param resource_group_id: 预付费模式下所属的资源组id :type resource_group_id: str :param model_config_info: 模型信息 :type model_config_info: :class:`tikit.models.ModelConfigInfo` :param model_cos_path: 模型cos信息 :type model_cos_path: str :param env: 环境变量 :type env: list of :class:`tikit.tencentcloud.tione.v20211111.models.EnvVar` :param scale_mode: 扩缩容类型 :type scale_mode: str :param replicas: 实例数量 :type replicas:int :param horizontal_pod_autoscaler: 自动伸缩信息 :type horizontal_pod_autoscaler: :class:`tikit.tencentcloud.tione.v20211111.models.HorizontalPodAutoscaler` :param log_enable: 日志开关 :type log_enable: bool :param log_logset_id: 日志集id :type log_logset_id: str :param log_topic_id: 日志的topic id :type log_topic_id: str :param authorization_enable: 接口鉴权开关 :type authorization_enable: bool :param tags: 标签 :type tags: list of :class:`tikit.tencentcloud.tione.v20211111.models.Tag` :param cron_scale_jobs:定时任务配置 :type cron_scale_jobs: list of :class:`tikit.tencentcloud.tione.v20211111.models.CronScaleJob` :param scale_strategy: 自动伸缩策略配置 HPA :type scale_strategy: str :param hybrid_billing_prepaid_replicas: 混合计费模式下预付费实例数 :type hybrid_billing_prepaid_replicas: int :return: :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.CreateModelServiceResponse`
modify_model_service(self, service_id, model_config_info=None, model_cos_path=None, framework=None, env=None, worker_resource=None, scale_mode="MANUAL", replicas=1, horizontal_pod_autoscaler=None, log_enable=False, log_logset_id=None, log_topic_id=None, service_action=None, service_description=None, scale_strategy=None, cron_scale_jobs=None): 更新模型服务
:param service_id: 服务id :type service_id: str :param model_config_info: 模型信息 :type model_config_info: :class:`tikit.models.ModelConfigInfo` :param model_cos_path: 模型cos信息 :type model_cos_path: str :param framework: 运行的框架环境 :type framework: :class:`tikit.models.FrameworkInfo` :param env:环境变量 :type env: list of :class:`tikit.tencentcloud.tione.v20211111.models.EnvVar` :param worker_resource: worker节点配置 :type worker_resource: :class:`tikit.models.ModelServiceResourceConfigInfo` :param scale_mode: 扩缩容类型 :type scale_mode: str :param replicas: 实例数量 :type replicas: int :param horizontal_pod_autoscaler: 自动伸缩信息 :type horizontal_pod_autoscaler: :class:`tikit.tencentcloud.tione.v20211111.models.HorizontalPodAutoscaler` :param log_enable: 日志开关 :type log_enable: bool :param log_logset_id: 日志id :type log_logset_id: str :param log_topic_id: 日志topic id :type log_topic_id:str :param service_action: 特殊更新行为 :type service_action: str :param service_description:服务描述 :type service_description: str :param scale_strategy: 自动伸缩策略 :type scale_strategy: str :param cron_scale_jobs: 自动伸缩策略配置 HPA :type cron_scale_jobs: list of :class:`tikit.tencentcloud.tione.v20211111.models.CronScaleJob` :return: :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.ModifyModelServiceResponse`
describe_model_service_groups(self, filters=None, order_field=None, order=None, offset=None, limit=None, tag_filters=None): 查看所有在线推理服务组
:param filters: 过滤器 :type filters: list of Filter :param order_field: 排序字段 :type order_field: str :param order: 排序方式,ASC/DESC :type order: str :param offset: 偏移量 :type offset: int :param limit: 返回结果数量 :type limit: int :param tag_filters: 标签过滤 :type tag_filters: list of TagFilter :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeModelServiceGroupsResponse`
describe_model_service_group(self, service_group_id): 查寻单个服务组
:param service_group_id: 服务组id :type service_group_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeModelServiceGroupResponse`
describe_model_services(self, filters=None, order_field=None, order=None, offset=None, limit=None, tag_filters=None): 查询多个服务
:param filters: 过滤器 :type filters: list of Filter :param order_field: 排序字段 :type order_field: str :param order: 排序方式,ASC/DESC :type order: str :param offset: 偏移量 :type offset: int :param limit: 返回结果数量 :type limit: int :param tag_filters: 标签过滤 :type tag_filters: list of TagFilter :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeModelServicesResponse`
describe_model_service(self, service_id): 查询单个服务
:param service_id: 服务id :type service_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DescribeModelServiceResponse`
stop_model_service(self, service_id): 关闭服务
:param service_id: 服务id :type service_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.ModifyModelServiceResponse`
start_model_service(self, service_id): 启动已经关闭的服务
:param service_id: 服务id :type service_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.ModifyModelServiceResponse`
delete_model_service(self, service_id): 删除已经关闭的服务
:param service_id: 服务id :type service_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DeleteModelServiceResponse`
delete_model_service_group(self, service_group_id): 删除服务组
:param service_group_id: 服务组id :type service_group_id: str :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.DeleteModelServiceGroupResponse`
modify_service_group_weights(self, service_group_id, service_id_to_weight): 更改服务组的流量分配
:param service_group_id: 服务组id :type service_group_id: str :param service_id_to_weight: 服务id与权重对 :type service_id_to_weight: dict :rtype: :class:`tikit.tencentcloud.tione.v20211111.models.ModifyServiceGroupWeightsResponse`
对解决方案有疑惑?想了解解决方案收费? 联系解决方案专家
腾讯云限时活动1折起,即将结束: 马上收藏
同尘科技为腾讯云授权服务中心,购买腾讯云享受折上折,更有现金返利:同意关联,立享优惠
阿里云解决方案也看看?: 点击对比阿里云的解决方案
暂无评论,你要说点什么吗?