Querying Model Metadata
Function
Queries model metadata.
This API is scheduled for deprecation.
Format
Operation type: GET
URL: https://{ip}:{port}/v2/models/${MODEL_NAME}[/versions/${MODEL_VERSION}]
- Replace {ip} and {port} with the IP address and port number of the service plane, that is, ipAddress and port.
- The ${MODEL_NAME} field specifies the name of the model to be queried.
- The [/versions/${MODEL_VERSION}] field is not supported currently and is not passed.
Request Parameters
None
Usage Example
Request example:
GET https://{ip}:{port}/v2/models/deepseek
Response example:
{
"name": "deepseek",
"platform": "MindIE Server",
"inputs": [
{
"name": "input0",
"shape": [
-1
],
"datatype": "UINT32"
}
],
"outputs": [
{
"name": "output0",
"shape": [
-1
],
"datatype": "UINT32"
}
]
}
Response status code: 200
Output Description
Parameter |
Type |
Description |
|---|---|---|
name |
String |
Model name. |
platform |
String |
The value is fixed to MindIE Server. |
inputs |
json object |
Format of inputs received by the infer API of the model. Currently, the following information is returned by default: "inputs": [
{
"name": "input0",
"shape": [
-1
],
"datatype": "UINT32"
}
]
|
outputs |
json object |
Format of outputs received by the infer API of the model. Currently, the following information is returned by default: "outputs": [
{
"name": "output0",
"shape": [
-1
],
"datatype": "UINT32"
}
]
|
Parent topic: APIs Compatible with Triton