tencent cloud

문서Tencent Cloud TI-ONE Platform

Registering a Model

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-07-16 17:19:15
AI 번역
create_model_by_cos(self, training_model_name, algorithm_framework, model_cos_path, model_index, reasoning_env, delete_task_cos_model=True, tags=None)
Use an existing cos path to create a new model

:param training_model_name: Model name
:type training_model_name: str
:param algorithm_framework: Algorithm framework
:type algorithm_framework: str
:param model_cos_path: Model COS directory, ending with /. Format: <bucket>/<cos path>/
:type model_cos_path: str
:param model_index: Training metric
:type model_index: str
:param reasoning_env: Reasoning runtime environment
:type reasoning_env: :class:tikit.models.ReasoningEnvironment
:param delete_task_cos_model: Whether to delete the original output model file of the task
:type delete_task_cos_model: bool
:param tags: tag configuration
:type tags: list of :class:tencentcloud.tione.v20211111.models.Tag
:return:
:rtype: :class:tencentcloud.tione.v20211111.models.CreateTrainingModelResponse
The returned content is as follows:
{
"Id": "m-23054253294030848",
"RequestId": "c8f9b70e-bf4d-4c34-9480-21d902d3b341"
}

create_model_by_task(self, training_model_name, training_job_id, reasoning_env, training_model_index=None, delete_task_cos_model=True, tags=None)
Use the results of an existing task to create a new model

:param training_model_name: Model name
:type training_model_name: str
:param training_job_id: Training job ID
:type training_job_id: str
:param reasoning_env: Reasoning runtime environment
:type reasoning_env: :class:tikit.models.ReasoningEnvironment
:param training_model_index: Training metric. Overwrite the value in the training task when not empty.
:type training_model_index: str
:param delete_task_cos_model: Whether to delete the original output model file of the task
:type delete_task_cos_model: bool
:param tags: tag configuration
:type tags: list of :class:tencentcloud.tione.v20211111.models.Tag
:return:
:rtype: :class:tencentcloud.tione.v20211111.models.CreateTrainingModelResponse
The returned content is as follows:
{
"Id": "m-23054253294030848",
"RequestId": "c8f9b70e-bf4d-4c34-9480-21d902d3b341"
}

create_model_version_by_cos(self, training_model_id, algorithm_framework, model_cos_path, model_index, reasoning_env, delete_task_cos_model=True, tags=None)
Use an existing cos path to create a new model version

:param training_model_id: model id
:type training_model_id: str
:param algorithm_framework: Algorithm framework
:type algorithm_framework: str
:param model_cos_path: Model COS directory, ending with /. Format: <bucket>/<cos path>/
:type model_cos_path: str
:param model_index: Training metric
:type model_index: str
:param reasoning_env: Reasoning runtime environment
:type reasoning_env: :class:tikit.models.ReasoningEnvironment
:param delete_task_cos_model: Whether to delete the original output model file of the task
:type delete_task_cos_model: bool
:param tags: tag configuration
:type tags: list of :class:tencentcloud.tione.v20211111.models.Tag
:return:
:rtype: :class:tencentcloud.tione.v20211111.models.CreateTrainingModelResponse
The returned content is as follows:
{
"Id": "m-23054253294030848",
"RequestId": "c8f9b70e-bf4d-4c34-9480-21d902d3b341"
}

create_model_version_by_task(self, training_model_id, training_job_id, reasoning_env, training_model_index=None, delete_task_cos_model=True, tags=None)
Use an existing cos path to create a new model version

:param training_model_id: Model ID
:type training_model_id: str
:param training_job_id: Training job ID
:type training_job_id: str
:param reasoning_env: Reasoning runtime environment
:type reasoning_env: :class:tikit.models.ReasoningEnvironment
:param training_model_index: Training metric. Overwrite the value in the training task when not empty.
:type training_model_index: str
:param delete_task_cos_model: Whether to delete the original output model file of the task
:type delete_task_cos_model: bool
:param tags: tag configuration
:type tags: list of :class:tencentcloud.tione.v20211111.models.Tag
:return:
:rtype: :class:tencentcloud.tione.v20211111.models.CreateTrainingModelResponse
The returned content is as follows:
{
"Id": "m-23054253294030848",
"RequestId": "c8f9b70e-bf4d-4c34-9480-21d902d3b341"
}

describe_training_model_version(self, training_model_version_id)
view single version info

:param training_model_version_id: Model version ID
:type training_model_version_id: str
:rtype: :class:tencentcloud.tione.v20211111.models.DescribeTrainingModelVersionResponse

describe_training_model_versions(self, training_model_id)
View information list of each version of the model

:param training_model_id: Model ID
:type training_model_id: str
:rtype: :class:tencentcloud.tione.v20211111.models.DescribeTrainingModelVersionsResponse

describe_training_models(self, filters=None, order_field=None, order=None, offset=None, limit=None, tag_filters=None)
view model list

:param filters: Filter
:type filters: list of Filter
:param order_field: sorting field
:type order_field: str
:param order: sorting method, ASC/DESC
:type order: str
:param offset: offset
:type offset: int
:param limit: number of returned results
:type limit: int
:param tag_filters: Tag filtering
:type tag_filters: list of TagFilter
:rtype: :class:tencentcloud.tione.v20211111.models.DescribeTrainingModelsResponse
print the returned result. Output as follows:
+---------------------+-----------------------+-------------------+----------------------+
model ID name tag creation time
+---------------------+-----------------------+-------------------+----------------------+
| m-23054253294030848 | tikit-model-task-1227 | | 2021-12-27T14:22:43Z |
| m-23054252760240128 | tikit-model-cos-1227 | | 2021-12-27T14:22:35Z |
| m-23054246746066944 | tikit-model-task | | 2021-12-27T14:21:03Z |
| m-23037023501881344 | tikit-model-cos | | 2021-12-24T13:20:57Z |
| m-23036973226987520 | tikit-model-name-2 | | 2021-12-24T13:08:10Z |
| m-23034443699064832 | model_cos-2 | | 2021-12-24T02:24:52Z |
| m-23028904650346496 | model_cos | tag_001:tag_v_001 | 2021-12-23T02:56:13Z |
| m-23028894739075072 | model_task | | 2021-12-23T02:53:42Z |
| 22997374387884032 | xx004 | | 2021-12-17T13:17:39Z |
| 22996889833377792 | xx003 | | 2021-12-17T11:14:26Z |
+---------------------+-----------------------+-------------------+----------------------+

delete_training_model(self, training_model_id)
Deleting a Model

:param training_model_id: Model ID
:type training_model_id: str
:rtype: :class:tencentcloud.tione.v20211111.models.DeleteTrainingModelResponse

delete_training_model_version(self, training_model_version_id)
Delete model version

:param training_model_version_id: Model version ID
:type training_model_version_id: str
:rtype: :class:tencentcloud.tione.v20211111.models.DeleteTrainingModelVersionResponse




도움말 및 지원

문제 해결에 도움이 되었나요?

피드백