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

Fine Tuning

Fine TuningAlpha

Fine TuningAlphaGraders

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

Run grader
client.FineTuning.Alpha.Graders.Run(ctx, body) (*FineTuningAlphaGraderRunResponse, error)
POST/fine_tuning/alpha/graders/run
Validate grader
client.FineTuning.Alpha.Graders.Validate(ctx, body) (*FineTuningAlphaGraderValidateResponse, error)
POST/fine_tuning/alpha/graders/validate

Fine TuningCheckpoints

Fine TuningCheckpointsPermissions

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

Create checkpoint permissions
client.FineTuning.Checkpoints.Permissions.New(ctx, fineTunedModelCheckpoint, body) (*Page[FineTuningCheckpointPermissionNewResponse], error)
POST/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions
Delete checkpoint permission
client.FineTuning.Checkpoints.Permissions.Delete(ctx, fineTunedModelCheckpoint, permissionID) (*FineTuningCheckpointPermissionDeleteResponse, error)
DELETE/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions/{permission_id}
List checkpoint permissions
client.FineTuning.Checkpoints.Permissions.List(ctx, fineTunedModelCheckpoint, query) (*ConversationCursorPage[FineTuningCheckpointPermissionListResponse], error)
GET/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions
List checkpoint permissions
Deprecated
client.FineTuning.Checkpoints.Permissions.Get(ctx, fineTunedModelCheckpoint, query) (*FineTuningCheckpointPermissionGetResponse, error)
GET/fine_tuning/checkpoints/{fine_tuned_model_checkpoint}/permissions

Fine TuningJobs

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

Cancel fine-tuning
client.FineTuning.Jobs.Cancel(ctx, fineTuningJobID) (*FineTuningJob, error)
POST/fine_tuning/jobs/{fine_tuning_job_id}/cancel
Create fine-tuning job
client.FineTuning.Jobs.New(ctx, body) (*FineTuningJob, error)
POST/fine_tuning/jobs
List fine-tuning jobs
client.FineTuning.Jobs.List(ctx, query) (*CursorPage[FineTuningJob], error)
GET/fine_tuning/jobs
List fine-tuning events
client.FineTuning.Jobs.ListEvents(ctx, fineTuningJobID, query) (*CursorPage[FineTuningJobEvent], error)
GET/fine_tuning/jobs/{fine_tuning_job_id}/events
Pause fine-tuning
client.FineTuning.Jobs.Pause(ctx, fineTuningJobID) (*FineTuningJob, error)
POST/fine_tuning/jobs/{fine_tuning_job_id}/pause
Resume fine-tuning
client.FineTuning.Jobs.Resume(ctx, fineTuningJobID) (*FineTuningJob, error)
POST/fine_tuning/jobs/{fine_tuning_job_id}/resume
Retrieve fine-tuning job
client.FineTuning.Jobs.Get(ctx, fineTuningJobID) (*FineTuningJob, error)
GET/fine_tuning/jobs/{fine_tuning_job_id}
ModelsExpand Collapse
type FineTuningJob struct{…}

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

type FineTuningJobEvent struct{…}

Fine-tuning job event object

type FineTuningJobWandbIntegration struct{…}

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.

type FineTuningJobWandbIntegrationObject struct{…}

Fine TuningJobsCheckpoints

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

List fine-tuning checkpoints
client.FineTuning.Jobs.Checkpoints.List(ctx, fineTuningJobID, query) (*CursorPage[FineTuningJobCheckpoint], error)
GET/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints
ModelsExpand Collapse
type FineTuningJobCheckpoint struct{…}

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

Fine TuningMethods

ModelsExpand Collapse
type DpoHyperparametersResp struct{…}

The hyperparameters used for the DPO fine-tuning job.

type DpoMethod struct{…}

Configuration for the DPO fine-tuning method.

type ReinforcementHyperparametersResp struct{…}

The hyperparameters used for the reinforcement fine-tuning job.

type ReinforcementMethod struct{…}

Configuration for the reinforcement fine-tuning method.

type SupervisedHyperparametersResp struct{…}

The hyperparameters used for the fine-tuning job.

type SupervisedMethod struct{…}

Configuration for the supervised fine-tuning method.