checkpoints
Creates, updates, deletes, gets or lists a checkpoints resource.
Overview
| Name | checkpoints |
| Type | Resource |
| Id | openai.fine_tuning.checkpoints |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The checkpoint identifier, which can be referenced in the API endpoints. |
fine_tuning_job_id | string | The name of the fine-tuning job that this checkpoint was created from. |
created_at | integer (unixtime) | The Unix timestamp (in seconds) for when the checkpoint was created. |
fine_tuned_model_checkpoint | string | The name of the fine-tuned checkpoint model that is created. |
metrics | object | Metrics at the step number during the fine-tuning job. |
object | string | The object type, which is always "fine_tuning.job.checkpoint". (fine_tuning.job.checkpoint) |
step_number | integer | The step number that the checkpoint was created at. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | fine_tuning_job_id | after, 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.
| Name | Datatype | Description |
|---|---|---|
fine_tuning_job_id | string | The ID of the fine-tuning job to get checkpoints for. |
after | string | Identifier for the last checkpoint ID from the previous pagination request. |
limit | integer | Number 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-organization | string | Optionally scope the request to a specific organization (overrides the default associated with the API key). Addressable in SQL as openai_organization. |
openai-project | string | Optionally scope the request to a specific project (overrides the default associated with the API key). Addressable in SQL as openai_project. |
SELECT examples
- list
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 }}'
;