Skip to main content

checkpoints

Creates, updates, deletes, gets or lists a checkpoints resource.

Overview

Namecheckpoints
TypeResource
Idopenai.fine_tuning.checkpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe checkpoint identifier, which can be referenced in the API endpoints.
fine_tuning_job_idstringThe name of the fine-tuning job that this checkpoint was created from.
created_atinteger (unixtime)The Unix timestamp (in seconds) for when the checkpoint was created.
fine_tuned_model_checkpointstringThe name of the fine-tuned checkpoint model that is created.
metricsobjectMetrics at the step number during the fine-tuning job.
objectstringThe object type, which is always "fine_tuning.job.checkpoint". (fine_tuning.job.checkpoint)
step_numberintegerThe step number that the checkpoint was created at.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfine_tuning_job_idafter, limit, openai-organization, openai-project

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
fine_tuning_job_idstringThe ID of the fine-tuning job to get checkpoints for.
afterstringIdentifier for the last checkpoint ID from the previous pagination request.
limitintegerNumber of checkpoints to retrieve. Automatically applied from a SQL LIMIT clause - SELECT ... LIMIT 10 sends limit=10 on the wire. Setting it explicitly in a WHERE clause is not required.
openai-organizationstringOptionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization.
openai-projectstringOptionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project.

SELECT examples

OK

SELECT
id,
fine_tuning_job_id,
created_at,
fine_tuned_model_checkpoint,
metrics,
object,
step_number
FROM openai.fine_tuning.checkpoints
WHERE fine_tuning_job_id = '{{ fine_tuning_job_id }}' -- required
AND after = '{{ after }}'
AND "openai-organization" = '{{ openai-organization }}'
AND "openai-project" = '{{ openai-project }}'
;