Get lazy sampler state and synchronized weight version.
curl --request GET \
--url http://localhost:3001/v1/training/samplers/{sampler_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/samplers/{sampler_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/samplers/{sampler_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"session_id": "<string>",
"run_id": "<string>",
"status": "absent",
"synced_weight_version": 1,
"error_code": "<string>",
"last_activity_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}unified-training
Get lazy sampler state and synchronized weight version.
GET
/
v1
/
training
/
samplers
/
{sampler_id}
Get lazy sampler state and synchronized weight version.
curl --request GET \
--url http://localhost:3001/v1/training/samplers/{sampler_id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3001/v1/training/samplers/{sampler_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3001/v1/training/samplers/{sampler_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"session_id": "<string>",
"run_id": "<string>",
"status": "absent",
"synced_weight_version": 1,
"error_code": "<string>",
"last_activity_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"request_id": "<string>",
"funding_source": "platform"
}Authorizations
Whitney-issued API key. No organization-selection header is accepted.
Path Parameters
Pattern:
^wtsm_[0-9a-f]{32}$Response
Sampler state. A sampler is provisioned lazily on provider sampler capacity, never on Modal's trainer GPU.
Pattern:
^wtsm_[0-9a-f]{32}$Pattern:
^wts_[0-9a-f]{32}$Pattern:
^wtr_[0-9a-f]{32}$Available options:
absent, provisioning, ready, syncing, failed, retired Required range:
x >= 0