{
"schedulingType": "string",
"id": "string",
"taskName": "string",
"userId": "string",
"userPriority": 0,
"task": {
"namespace": "string",
"servedName": "string",
"model": {
"id": "string",
"name": "string"
},
"headConfig": {
"image": "string",
"labels": {},
"env": {},
"cmd": [
"string"
],
"args": [
"string"
],
"resource": {
"gpu": {
"count": "string"
}
},
"pvcMounts": [
{
"pvcName": "string",
"subPath": "string",
"containerPath": "string",
"readOnly": "string"
}
]
},
"workerConfig": {
"image": "string",
"workers": 0,
"labels": {},
"env": {},
"cmd": [
"string"
],
"agrs": [
"string"
],
"resource": {
"gpu": {
"count": 0
}
},
"pvcMounts": [
{
"pvcName": "string",
"subPath": "string",
"containerPath": "string",
"readOnly": "string"
}
]
}
},
"lora": {
"model": {
"id": "string",
"name": "string"
},
"name": "string",
"servedName": "string"
}
}curl --location --request POST '/scheduler/infer/submit' \
--header 'Content-Type: application/json' \
--data-raw '{
"schedulingType": "string",
"id": "string",
"taskName": "string",
"userId": "string",
"userPriority": 0,
"task": {
"namespace": "string",
"servedName": "string",
"model": {
"id": "string",
"name": "string"
},
"headConfig": {
"image": "string",
"labels": {},
"env": {},
"cmd": [
"string"
],
"args": [
"string"
],
"resource": {
"gpu": {
"count": "string"
}
},
"pvcMounts": [
{
"pvcName": "string",
"subPath": "string",
"containerPath": "string",
"readOnly": "string"
}
]
},
"workerConfig": {
"image": "string",
"workers": 0,
"labels": {},
"env": {},
"cmd": [
"string"
],
"agrs": [
"string"
],
"resource": {
"gpu": {
"count": 0
}
},
"pvcMounts": [
{
"pvcName": "string",
"subPath": "string",
"containerPath": "string",
"readOnly": "string"
}
]
}
},
"lora": {
"model": {
"id": "string",
"name": "string"
},
"name": "string",
"servedName": "string"
}
}'{
"code": 0,
"data":{
"id":"xxxx"
}
"msg":""
}