Updates a model version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paimodel:UpdateModelVersion |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v1/models/{ModelId}/versions/{VersionName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ModelId |
string |
Yes |
The model ID. For more information about how to obtain the model ID, see ListModels. |
model-dfs1****5c |
| VersionName |
string |
Yes |
The model version. |
0.1.0 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| VersionDescription |
string |
No |
The description of the model version. |
通用情感分析。 |
| Metrics |
object |
No |
The model metrics. The length cannot exceed 8,192 characters after serialization. |
{ "Results": [{ "Dataset": { "DatasetId": "d-sdkjanksaklerhfd" }, "Metrics": { "cer": 0.175 } }, { "Dataset": { "Uri": "oss://xxxx/" }, "Metrics": { "cer": 0.172 } }] } |
| TrainingSpec |
object |
No |
The training configuration. This is used for fine-tuning and incremental training. |
{} |
| InferenceSpec |
object |
No |
Describes how to apply the model to downstream inference applications. For example, describe the processor and container for Elastic Algorithm Service (EAS). Example:
|
{ "processor": "tensorflow_gpu_1.12" } |
| Options |
string |
No |
The extended field. This field is a JSON string. |
{} |
| SourceType |
string |
No |
The source type of the model. Valid values:
Valid values:
|
PAIFlow |
| SourceId |
string |
No |
The source ID.
The parameters are described as follows:
|
region=cn-shanghai,workspaceId=13**,kind=PipelineRun,id=run-sakdb****jdf |
| ApprovalStatus |
string |
No |
The approval status. Valid values:
|
Approved |
| EvaluationSpec |
object |
No |
The evaluation configuration. |
{} |
| CompressionSpec |
object |
No |
The compression configuration. |
{} |
| ExtraInfo |
object |
No |
Other information. |
{ "CoverUris": ["https://e***u.oss-cn-hangzhou.aliyuncs.com/st****017.preview.png"], "TrainedWords": ["albedo_overlord"] } |
| DistillationSpec |
object |
No |
The distillation configuration. |
{} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
D5BFFEE3-6025-443F-8A03-02D61***C4B9 |
Examples
Success response
JSON format
{
"RequestId": "D5BFFEE3-6025-443F-8A03-02D61***C4B9"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.