Retrieve Fine-tuning Job

Get info about a fine-tuning job. [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)

GEThttps://api.portkey.ai/v1/fine_tuning/jobs/{fine_tuning_job_id}
Path parameters
fine_tuning_job_id*string

The ID of the fine-tuning job.

Example: "ft-AF1WoRqd3aJAHsqc9NY7iL8F"
Response

OK

Body
id*string

The object identifier, which can be referenced in the API endpoints.

created_at*integer

The Unix timestamp (in seconds) for when the fine-tuning job was created.

error*nullable object

For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.

fine_tuned_model*nullable string

The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.

finished_at*nullable integer

The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.

hyperparameters*object

The hyperparameters used for the fine-tuning job. See the fine-tuning guide for more details.

model*string

The base model that is being fine-tuned.

object*enum

The object type, which is always "fine_tuning.job".

fine_tuning.job
organization_id*string

The organization that owns the fine-tuning job.

result_files*array of string

The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.

status*enum

The current status of the fine-tuning job, which can be either validating_files, queued, running, succeeded, failed, or cancelled.

validating_filesqueuedrunningsucceededfailedcancelled
trained_tokens*nullable integer

The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.

training_file*string

The file ID used for training. You can retrieve the training data with the Files API.

validation_file*nullable string

The file ID used for validation. You can retrieve the validation results with the Files API.

integrationsnullable array of one of

A list of integrations to enable for this fine-tuning job.

seed*integer

The seed used for the fine-tuning job.

estimated_finishnullable integer

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.

Response
{
  "id": "text",
  "error": {
    "code": "text",
    "message": "text",
    "param": "text"
  },
  "fine_tuned_model": "text",
  "hyperparameters": {
    "n_epochs": "auto"
  },
  "model": "text",
  "object": "fine_tuning.job",
  "organization_id": "text",
  "result_files": [
    "file-abc123"
  ],
  "status": "validating_files",
  "training_file": "text",
  "validation_file": "text",
  "integrations": [
    {
      "type": "wandb",
      "wandb": {
        "project": "my-wandb-project",
        "name": "text",
        "entity": "text",
        "tags": [
          "custom-tag"
        ]
      }
    }
  ]
}

Last updated