tencent cloud

Tencent Cloud TI Platform

Product Introduction
Overview
Product Pricing
Benefits to Customers
Use Cases
Purchase Guide
Billing Overview
Purchase Mode
Renewal Instructions
Overdue Payment Instructions
Security Compliance
Data Security Protection Mechanism
Monitoring, Auditing, and Logging
Security Compliance Qualifications
Quick Start
Platform Usage Preparation
Operation Guide
Model Hub
Task-Based Modeling
Dev Machine
Model Management
Model Evaluation
Online Services
Resource Group Management
Managing Data Sources
Tikit
GPU Virtualization
Practical Tutorial
Deploying and Reasoning of LLM
LLM Training and Evaluation
Built-In Training Image List
Custom Training Image Specification
Angel Training Acceleration Feature Introduction
Implementing Resource Isolation Between Sub-users Based on Tags
API Documentation
History
Introduction
API Category
Making API Requests
Online Service APIs
Data Types
Error Codes
Related Agreement
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Open-Source Software Information
Contact Us

Model Optimization

PDF
Focus Mode
Font Size
Last updated: 2026-02-04 18:34:43
def create_model_accelerate_task(self,
model_acc_task_name,
model_source,
model_format,
model_name,
model_version,
model_input_path,
model_output_path,
tensor_infos,
acc_engine_version = None,
optimization_level = None,
gpu_type = None,
hyper_parameter = None,
tags = None,
model_signature = None):
Create model acceleration task

:param model_acc_task_name: task name
:type model_acc_task_name: str
:param model_source: Model source (JOB/COS)
:type model_source: str
:param model_format: Model format (TORCH_SCRIPT/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/MMDETECTION/ONNX/HUGGING_FACE)
:type model_format: str
:param model_name: model name
:type model_name: str
:param model_version: model version
:type model_version: str
:param model_input_path: model input cos bucket address
:type model_input_path: :class:tikit.models.CosPathInfo
:model_output_path: The cos bucket address for the output of the optimized model
:type model_output_path: :class:tikit.models.CosPathInfo
:param acc_engine_version: Optimization engine version. If not provided, the latest version is used by default.
:type acc_engine_version: str
:param tensor_infos: tensor info
:type tensor_infos: list of str
:param optimization_level: Optimization level (NO_LOSS/FP16), default FP16
:type optimization_level: str
:param gpu_type: GPU card type (T4/V100), default T4
:type gpu_type: str
:param hyper_parameter: Professional parameter setting
:type hyper_parameter: :class:tikit.tencentcloud.tione.v20211111.models.HyperParameter
:param tags: Tag
:type tags: list of :class:tikit.tencentcloud.tione.v20211111.models.Tag
:param model_signature: Signature configured when saving SAVED_MODEL
:type model_signature: str
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.CreateModelAccelerateTaskResponse
"""

def stop_model_accelerate_task(self, model_acc_task_id):
stop model acceleration task

:param model_acc_task_id: model acceleration task id
:type model_acc_task_id: str
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.StopModelAccelerateTaskResponse
"""

def delete_model_accelerate_task(self, model_acc_task_id):
delete model acceleration task

:param model_acc_task_id: model acceleration task id
:type model_acc_task_id: str
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.DeleteModelAccelerateTaskResponse
"""

def restart_model_accelerate_task(self,
model_acc_task_id,
model_source,
model_format,
model_name,
model_version,
model_input_path,
model_output_path,
tensor_infos,
acc_engine_version = None,
optimization_level = None,
gpu_type = None,
hyper_parameter = None,
tags = None,
model_signature = None):
restart model acceleration task

:param model_acc_task_id: task ID
:type model_acc_task_id: str
:param model_source: Model source (JOB/COS)
:type model_source: str
:param model_format: Model format (TORCH_SCRIPT/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/MMDETECTION/ONNX/HUGGING_FACE)
:type model_format: str
:param model_name: model name
:type model_name: str
:param model_version: model version
:type model_version: str
:param model_input_path: model input cos bucket address
:type model_input_path: :class:tikit.models.CosPathInfo
:param model_output_path: Optimization model output cos bucket address
:type model_output_path: :class:tikit.models.CosPathInfo
:param tensor_infos: Tensor info
:type tensor_infos: list of str
:param acc_engine_version: Optimization engine version. If not provided, the latest version is used by default.
:type acc_engine_version: str
:param optimization_level: Optimization level (NO_LOSS/FP16), default FP16
:type optimization_level: str
:param gpu_type: GPU card type (T4/V100), default T4
:type gpu_type: str
:param hyper_parameter: Professional parameter setting
:type hyper_parameter: :class:tikit.tencentcloud.tione.v20211111.models.HyperParameter
:param tags: tag
:type tags: list of :class:tikit.tencentcloud.tione.v20211111.models.Tag
:param model_signature: Signature configured when saving SAVED_MODEL
:type model_signature: str
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.RestartModelAccelerateTaskResponse
"""

def describe_model_accelerate_tasks(self, filters=None, order_field=None, order=None, offset=None, limit=None,
tag_filters=None):
view acceleration task list

:param filters: Filter
:type filters: list of Filter, support ModelAccTaskName/ModelSource
:param order_field: Sorting field, defaults to CreateTime
:type order_field: str
:param order: Sorting method, ASC/DESC, default is DESC
:type order: str
:param offset: offset
:type offset: int
:param limit: number of returned results, default is 10
:type limit: int
:param tag_filters: tag filtering
:type tag_filters: list of TagFilter
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.DescribeModelAccelerateTasksResponse
"""

def describe_model_accelerate_task(self, model_acc_task_id):
query model acceleration task detail

:param model_acc_task_id: model acceleration task id
:type model_acc_task_id: str
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.DescribeModelAccelerateTaskResponse
"""

def create_optimized_model(self, model_acc_task_id, tags = None):
save the optimized model

:param model_acc_task_id: model acceleration task id
:type model_acc_task_id: str
:param tags: tag
:type tags: list of :class:tikit.tencentcloud.tione.v20211111.models.Tag
:rtype: :class:tikit.tencentcloud.tione.v20211111.models.CreateOptimizedModelResponse
"""


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback