Download model
You can download the final checkpoint of a successfully completed fine-tuning job.
Step 1: List All Checkpoints
Example Request:
curl --location 'https://api.netmind.ai/v1/fine-tuning/job/{{JOB_ID}}/checkpoint' \
--header 'Authorization: Bearer {{API_TOKEN}}'import requests
url = "https://api.netmind.ai/v1/fine-tuning/job/{{JOB_ID}}/checkpoint"
payload = {}
headers = {
'Authorization': 'Bearer {{API_TOKEN}}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Example Response:
[
{
"id": "ftckpt-a91...",
"checkpoint": "checkpoint-30",
"step": 30,
"metrics": {
"loss": 0.0001
},
"created_at": 1730977618
}
]Step 2: Get Download Url
Example Request:
curl --location 'https://api.netmind.ai/v1/fine-tuning/job/{{JOB_ID}}/checkpoint/{{CHECKPOINT_ID}}/download' \
--header 'Authorization: Bearer {{API_TOKEN}}'import requests
url = "https://api.netmind.ai/v1/fine-tuning/job/{{JOB_ID}}/checkpoint/{{CHECKPOINT_ID}}/download"
payload = {}
headers = {
'Authorization': 'Bearer {{API_TOKEN}}'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Example Response:
{
"presigned_url": "https://...."
}The returned presigned download URL can be used to download the checkpoint. The presigned URL is valid for 2 hours. You can use command like "wget" to download the checkpoint file.
wget {{PRESIGNED_URL}} -O checkpoint.tarLast updated
Was this helpful?