Search…
⌃K

Fine-tune

Start fine-tuning jobs to train a model on your dataset.
The following APIs can be used to fine-tune any model on the Forefront platform. For more information on fine-tuning, see our guide.

Upload dataset

Use the following cURL command to upload your dataset. The server will respond with the Dataset object. You will need to use the Dataset ID to start a fine-tuning job.
Example request
Example response
curl \
-F [email protected] http://beta-api.forefront.ai/api/upload/v1/{team_id}/datasets \
-H "Authorization: Bearer <api_key>"
{
"data":{
"id":"{dataset_id}",
"name":"dataset.jsonl",
"size":60626026,
"orgId":"{org_id}",
"createdBy":"6154b531eae00108bf4b4434",
"createdAt":"2022-08-04T19:18:18.084Z",
"numSamples":64679,
"validatedAt":"2022-08-04T19:18:22.944Z",
"issues":{
"errors":"0"
}
}
}

Get models

Next, you'll need to get the ID of the model that you want to fine-tune.
get
https://beta-api.forefront.ai
/api/v1/{team_id}/models/listPublic
Get models

Create fine-tuning job

Once you have your dataset and model ID, you can start a fine-tuning job.
get
https://beta-api.forefront.ai
/api/v1/{team_id}/fine-tune/create
Create fine-tuning job