List Fine-tuning Checkpoints

Supported Providers
  • OpenAI

List checkpoints for a fine-tuning job.

get
Authorizations
Path parameters
fine_tuning_job_idstringRequired

The ID of the fine-tuning job to get checkpoints for.

Example: ft-AF1WoRqd3aJAHsqc9NY7iL8F
Query parameters
afterstringOptional

Identifier for the last checkpoint ID from the previous pagination request.

limitintegerOptional

Number of checkpoints to retrieve.

Default: 10
Responses
200
OK
application/json
get
curl https://api.portkey.ai/v1/fine_tuning/jobs/ftjob-abc123/checkpoints \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY"
200

OK

{
  "data": [
    {
      "id": "text",
      "created_at": 1,
      "fine_tuned_model_checkpoint": "text",
      "step_number": 1,
      "metrics": {
        "step": 1,
        "train_loss": 1,
        "train_mean_token_accuracy": 1,
        "valid_loss": 1,
        "valid_mean_token_accuracy": 1,
        "full_valid_loss": 1,
        "full_valid_mean_token_accuracy": 1
      },
      "fine_tuning_job_id": "text",
      "object": "fine_tuning.job.checkpoint"
    }
  ],
  "object": "list",
  "first_id": "text",
  "last_id": "text",
  "has_more": true
}

Last updated

Was this helpful?