Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Fine Tuning

Fine TuningAlpha

Fine TuningAlphaGraders

Manage fine-tuning jobs to tailor a model to your specific training data.

Run grader
POST
/fine_tuning/alpha/graders/run
Validate grader
POST
/fine_tuning/alpha/graders/validate
Models
GraderRunResponse object { metadata, model_grader_token_usage_per_model, reward, sub_rewards }
GraderValidateResponse object { grader }

Fine TuningCheckpoints

Fine TuningCheckpointsPermissions

Manage fine-tuning jobs to tailor a model to your specific training data.

Create checkpoint permissions
POST
/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions
Delete checkpoint permission
DELETE
/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}
List checkpoint permissions
GET
/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions
List checkpoint permissions
Deprecated
GET
/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions
Models
PermissionCreateResponse object { id, created_at, object, project_id }

The checkpoint.permission object represents a permission for a fine-tuned model checkpoint.

PermissionDeleteResponse object { id, deleted, object }
id: string

The ID of the fine-tuned model checkpoint permission that was deleted.

deleted: boolean

Whether the fine-tuned model checkpoint permission was successfully deleted.

object: "checkpoint.permission"

The object type, which is always “checkpoint.permission”.

PermissionListResponse object { id, created_at, object, project_id }

The checkpoint.permission object represents a permission for a fine-tuned model checkpoint.

PermissionRetrieveResponse object { data, has_more, object, 2 more }

Fine TuningJobs

Manage fine-tuning jobs to tailor a model to your specific training data.

Cancel fine-tuning
POST
/fine_tuning/jobs/{fine_tuning_job_id}/cancel
Create fine-tuning job
POST
/fine_tuning/jobs
List fine-tuning jobs
GET
/fine_tuning/jobs
List fine-tuning events
GET
/fine_tuning/jobs/{fine_tuning_job_id}/events
Pause fine-tuning
POST
/fine_tuning/jobs/{fine_tuning_job_id}/pause
Resume fine-tuning
POST
/fine_tuning/jobs/{fine_tuning_job_id}/resume
Retrieve fine-tuning job
GET
/fine_tuning/jobs/{fine_tuning_job_id}
Models
FineTuningJob object { id, created_at, error, 16 more }

The fine_tuning.job object represents a fine-tuning job that has been created through the API.

FineTuningJobEvent object { id, created_at, level, 4 more }

Fine-tuning job event object

FineTuningJobWandbIntegration object { project, entity, name, tags }

The settings for your integration with Weights and Biases. This payload specifies the project that metrics will be sent to. Optionally, you can set an explicit display name for your run, add tags to your run, and set a default entity (team, username, etc) to be associated with your run.

FineTuningJobWandbIntegrationObject object { type, wandb }
type: "wandb"

The type of the integration being enabled for the fine-tuning job

wandb: FineTuningJobWandbIntegration { project, entity, name, tags }

The settings for your integration with Weights and Biases. This payload specifies the project that metrics will be sent to. Optionally, you can set an explicit display name for your run, add tags to your run, and set a default entity (team, username, etc) to be associated with your run.

Fine TuningJobsCheckpoints

Manage fine-tuning jobs to tailor a model to your specific training data.

List fine-tuning checkpoints
GET
/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints
Models
FineTuningJobCheckpoint object { id, created_at, fine_tuned_model_checkpoint, 4 more }

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

Fine TuningMethods

Models
DpoHyperparameters object { batch_size, beta, learning_rate_multiplier, n_epochs }

The hyperparameters used for the DPO fine-tuning job.

DpoMethod object { hyperparameters }

Configuration for the DPO fine-tuning method.

hyperparameters: optional DpoHyperparameters { batch_size, beta, learning_rate_multiplier, n_epochs }

The hyperparameters used for the DPO fine-tuning job.

ReinforcementHyperparameters object { batch_size, compute_multiplier, eval_interval, 4 more }

The hyperparameters used for the reinforcement fine-tuning job.

ReinforcementMethod object { grader, hyperparameters }

Configuration for the reinforcement fine-tuning method.

SupervisedHyperparameters object { batch_size, learning_rate_multiplier, n_epochs }

The hyperparameters used for the fine-tuning job.

SupervisedMethod object { hyperparameters }

Configuration for the supervised fine-tuning method.

hyperparameters: optional SupervisedHyperparameters { batch_size, learning_rate_multiplier, n_epochs }

The hyperparameters used for the fine-tuning job.