List checkpoints for a fine-tuning job.

GET /fine_tuning/jobs/{fine_tuning_job_id}/checkpoints

Path parameters

  • fine_tuning_job_id string Required

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

Query parameters

  • after string

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

  • limit integer

    Number of checkpoints to retrieve.

    Default value is 10.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • data array[object] Required

      The fine_tuning.job.checkpoint object represents a model checkpoint for a fine-tuning job that is ready to use.

      Hide data attributes Show data attributes object
      • id string Required

        The checkpoint identifier, which can be referenced in the API endpoints.

      • created_at integer Required

        The Unix timestamp (in seconds) for when the checkpoint was created.

      • fine_tuned_model_checkpoint string Required

        The name of the fine-tuned checkpoint model that is created.

      • step_number integer Required

        The step number that the checkpoint was created at.

      • metrics object Required

        Metrics at the step number during the fine-tuning job.

        Hide metrics attributes Show metrics attributes object
        • step number
        • train_loss number
        • train_mean_token_accuracy number
        • valid_loss number
        • valid_mean_token_accuracy number
        • full_valid_loss number
        • full_valid_mean_token_accuracy number
      • fine_tuning_job_id string Required

        The name of the fine-tuning job that this checkpoint was created from.

      • object string Required

        The object type, which is always "fine_tuning.job.checkpoint".

        Value is fine_tuning.job.checkpoint.

    • object string Required

      Value is list.

    • first_id string | null
    • last_id string | null
    • has_more boolean Required
GET /fine_tuning/jobs/{fine_tuning_job_id}/checkpoints
curl \
 --request GET 'https://api.openai.com/v1/fine_tuning/jobs/ft-AF1WoRqd3aJAHsqc9NY7iL8F/checkpoints' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": "string",
      "created_at": 42,
      "fine_tuned_model_checkpoint": "string",
      "step_number": 42,
      "metrics": {
        "step": 42.0,
        "train_loss": 42.0,
        "train_mean_token_accuracy": 42.0,
        "valid_loss": 42.0,
        "valid_mean_token_accuracy": 42.0,
        "full_valid_loss": 42.0,
        "full_valid_mean_token_accuracy": 42.0
      },
      "fine_tuning_job_id": "string",
      "object": "fine_tuning.job.checkpoint"
    }
  ],
  "object": "list",
  "first_id": "string",
  "last_id": "string",
  "has_more": true
}