Create Fine-tuning Job

Supported Providers
  • OpenAI

Create a Finetune Job

post

Finetune a provider model

Authorizations
Body
any ofOptional
or
or
Responses
200
The request has succeeded.
application/json
post
curl https://api.portkey.ai/v1/fine_tuning/jobs \
  -H "Content-Type: application/json" \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
  -d '{
    "training_file": "file-BK7bzQj3FfZFXr7DbL6xJwfo",
    "model": "gpt-3.5-turbo"
  }'
200

The request has succeeded.

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

Last updated

Was this helpful?