Training jobs
Get a checkpoint
GET
/
v1
/
training_jobs
/
{job_id}
/
checkpoints
/
{ckpt_id}
Get a checkpoint
curl --request GET \
--url https://api.veri.studio/v1/training_jobs/{job_id}/checkpoints/{ckpt_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/training_jobs/{job_id}/checkpoints/{ckpt_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/training_jobs/{job_id}/checkpoints/{ckpt_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"job_id": "<string>",
"step": 123,
"kind": "<string>",
"payload": "<string>",
"size_bytes": 123,
"file_count": 123,
"status": "<string>",
"pinned": true,
"created_at": "2023-11-07T05:31:56Z",
"metrics": "<unknown>",
"expires_at": "2023-11-07T05:31:56Z"
}Authorizations
Response
The checkpoint
Note the absence of s3_prefix: storage layout is not part of the API. The
custom-models design already ruled against exposing bucket paths, and keeping
them internal is what let C1 add a new prefix without an API change.
Get a checkpoint
curl --request GET \
--url https://api.veri.studio/v1/training_jobs/{job_id}/checkpoints/{ckpt_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/training_jobs/{job_id}/checkpoints/{ckpt_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/training_jobs/{job_id}/checkpoints/{ckpt_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"job_id": "<string>",
"step": 123,
"kind": "<string>",
"payload": "<string>",
"size_bytes": 123,
"file_count": 123,
"status": "<string>",
"pinned": true,
"created_at": "2023-11-07T05:31:56Z",
"metrics": "<unknown>",
"expires_at": "2023-11-07T05:31:56Z"
}
