v27

latestOpenAPI 3.0.02026-07-1347144237.4 KB
Fine-tuning:

Creates a job that fine-tunes a specified model from a given training file. Response includes details of the enqueued job including job status and hyper parameters. The name of the fine-tuned model is added to the response once complete.

post/fine_tuning/jobs

Query parameters

api-versionstring required

The requested API version.

Request body

modelstring required

The identifier (model-id) of the base model used for this fine-tune.

training_filestring required

The file identity (file-id) that is used for training this fine tuned model.

validation_filestring

The file identity (file-id) that is used to evaluate the fine tuned model during training.

suffixstring

The suffix used to identify the fine-tuned model. The suffix can contain up to 40 characters (a-z, A-Z, 0-9,- and _) that will be added to your fine-tuned model name.

seedinteger

The seed used for the finetuning job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.

Response

The fine tune has been successfully created.

object'list' | 'fine_tuning.job' | 'file' | 'fine_tuning.job.event' | 'fine_tuning.job.checkpoint' | 'model' | 'upload' | 'upload.part' | 'batch' | 'wandb'

Defines the type of an object.

created_atinteger

A timestamp when this job or item was created (in unix epochs).

idstring

The identity of this item.

status'created' | 'pending' | 'running' | 'pausing' | 'paused' | 'resuming' | 'succeeded' | 'cancelled' | 'failed'

The state of a finetunes object or fine tuning job.

modelstring required

The identifier (model-id) of the base model used for the fine-tune.

fine_tuned_modelstring

The identifier (model-id) of the resulting fine tuned model. This property is only populated for successfully completed fine-tune runs. Use this identifier to create a deployment for inferencing.

training_filestring required

The file which is used for training.

validation_filestring

The file which is used to evaluate the fine tuned model during training.

result_filesstring[]

The result file identities (file-id) containing training and evaluation metrics in csv format. The file is only available for successfully completed fine-tune runs.

finished_atinteger

A timestamp when this job or item has finished successfully (in unix epochs).

organisation_idstring

The organisation id of this fine tune job. Unused on Azure OpenAI; compatibility for OpenAI only.

trained_tokensinteger

The total number of billable tokens processed by this fine tuning job.

estimated_finishinteger

The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.

suffixstring

The suffix used to identify the fine-tuned model. The suffix can contain up to 40 characters (a-z, A-Z, 0-9,- and _) that will be added to your fine-tuned model name.

seedinteger

The seed used for the finetuning job.