Offline Deployment(LoRA)
Users can update LoRA model deployment offline after stopping the instance.
PUT
https://api.alayanew.com/api/serverless-infer/v1/deployment/lora/{serviceId}
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Path Parameters
serviceId:StringRequired
Service ID.
Body
application/json
baseServiceId:StringRequired
Base model service ID.
modelId:StringRequired
Model ID.
name:StringRequired
Model name.
servedName:List<String>Required
Model identifier.
Response
状态码:application/json
200
code:Int
code is a common return value form representing the execution result of the query operation.
0
-1
0 is the success flag, indicating the operation completed successfully.
data:Object
msg:StringRequired
Returns an error message when the code value is -1.
cURL
Python
JavaScript
Go
Java
curl --location --request PUT 'https://api.alayanew.com/api/serverless-infer/v1/deployment/lora/38fbfc3d-6a88-4c35-b8b6-9efc83949d47'
--header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK'
--header 'Content-Type: application/json'
--data '{
"baseServiceId": "38fbfc3d-6a88-4c35-b8b6-9efc83949d47",
"servedName": ["updatelora"],
"name": "updatelora",
"modelId": "c486cdee-c316-4fc1-9f75-0d1741940f27"
}
200
400
401
403
404
500
{
"code": 0,
"data": {
},
"msg": "string, "
}