Adapters
Attach an adapter
Attach a LoRA adapter model to a serving_mode=‘multi_adapter’ deployment under a stable public alias (serve_name). The fleet’s replicas download and load the adapter asynchronously: the attachment starts in status ‘attaching’ and becomes ‘active’ once every serving replica reports it loaded (poll the list endpoint).
POST
/
v1
/
deployments
/
{deployment_id}
/
adapters
Attach an adapter
curl --request POST \
--url https://api.veri.studio/v1/deployments/{deployment_id}/adapters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"serve_name": "<string>",
"model_id": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/deployments/{deployment_id}/adapters"
payload = {
"serve_name": "<string>",
"model_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({serve_name: '<string>', model_id: '<string>'})
};
fetch('https://api.veri.studio/v1/deployments/{deployment_id}/adapters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"deployment_id": "<string>",
"serve_name": "<string>",
"model_id": "<string>",
"version": 123,
"internal_name": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"replicas": [
{
"replica_id": "<string>",
"state": "<string>",
"error": "<string>"
}
],
"previous_model_id": "<string>",
"pending_model_id": "<string>",
"pending_internal_name": "<string>",
"model_version_id": "<string>",
"pending_model_version_id": "<string>"
}Authorizations
Body
application/json
Response
The new attachment, status 'attaching'; replicas[] carries the per-replica load state
A LoRA adapter attached to a multi_adapter deployment.
Attach an adapter
curl --request POST \
--url https://api.veri.studio/v1/deployments/{deployment_id}/adapters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"serve_name": "<string>",
"model_id": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/deployments/{deployment_id}/adapters"
payload = {
"serve_name": "<string>",
"model_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({serve_name: '<string>', model_id: '<string>'})
};
fetch('https://api.veri.studio/v1/deployments/{deployment_id}/adapters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"deployment_id": "<string>",
"serve_name": "<string>",
"model_id": "<string>",
"version": 123,
"internal_name": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"replicas": [
{
"replica_id": "<string>",
"state": "<string>",
"error": "<string>"
}
],
"previous_model_id": "<string>",
"pending_model_id": "<string>",
"pending_internal_name": "<string>",
"model_version_id": "<string>",
"pending_model_version_id": "<string>"
}
