Tuner
OpenAI fine tuning
Operations
- Cancel
- Create
- GetCreatedAt
- GetFinishedAt
- GetId
- GetObject
- GetStatus
- GetTrainingFilename
- ListCheckpoints
- ListEvents
- ListJobs
- Load
- ToString
Cancel
Cancel a tuning job
function : Cancel(job_id:String, token:String) ~ API.OpenAI.Tuning.Tuner
Parameters
Name | Type | Description |
---|---|---|
job_id | String | tuning job ID |
token | String | API token |
Return
Type | Description |
---|---|
API.OpenAI.Tuning.Tuner | canceled tuning reference |
Create
Create a fine-turning job using an uploaded file as training data
function : Create(model:String, training_file_id:String, token:String) ~ API.OpenAI.Tuning.Tuner
Parameters
Name | Type | Description |
---|---|---|
model | String | model name |
training_file_id | String | uploaded training file ID to a file in JSONL format |
token | String | API token |
Return
Type | Description |
---|---|
API.OpenAI.Tuning.Tuner | fine-tuning job instance |
GetCreatedAt
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ Int
Return
Type | Description |
---|---|
Int | time with the object instance was created |
GetFinishedAt
Unix timestamp (in seconds) of when the job finished
method : public : GetFinishedAt() ~ Int
Return
Type | Description |
---|---|
Int | time with the job finished |
GetId
Get object instance API ID
method : public : GetId() ~ String
Return
Type | Description |
---|---|
String | instance ID |
GetObject
Get the object type
method : public : GetObject() ~ String
Return
Type | Description |
---|---|
String | object type |
GetStatus
Get status of the tuning job
method : public : GetStatus() ~ String
Return
Type | Description |
---|---|
String | name of the training file |
GetTrainingFilename
Get the name of the training file
method : public : GetTrainingFilename() ~ String
Return
Type | Description |
---|---|
String | name of the training file |
ListCheckpoints
Lists checkpoints for a fine-tuning job
function : ListCheckpoints(job_id:String, token:String) ~ Vector<API.OpenAI.Tuning.Checkpoint>
Parameters
Name | Type | Description |
---|---|---|
job_id | String | job ID |
token | String | API token |
Return
Type | Description |
---|---|
Vector<APIOpenAITuningCheckpoint> | job checkpoints |
ListCheckpoints
Lists checkpoints for a fine-tuning job
function : ListCheckpoints(job_id:String, limit:Int, token:String) ~ Vector<API.OpenAI.Tuning.Checkpoint>
Parameters
Name | Type | Description |
---|---|---|
job_id | String | job ID |
limit | Int | number of jobs to retrieve |
token | String | API token |
Return
Type | Description |
---|---|
Vector<APIOpenAITuningCheckpoint> | job checkpoints |
ListEvents
Lists events for a job
function : ListEvents(job_id:String, token:String) ~ Vector<API.OpenAI.Tuning.Job>
Parameters
Name | Type | Description |
---|---|---|
job_id | String | job ID |
token | String | API token |
Return
Type | Description |
---|---|
Vector<APIOpenAITuningJob> | job events |
ListEvents
Lists events for a job
function : ListEvents(job_id:String, limit:Int, token:String) ~ Vector<API.OpenAI.Tuning.Job>
Parameters
Name | Type | Description |
---|---|---|
job_id | String | job ID |
limit | Int | number of jobs to retrieve |
token | String | API token |
Return
Type | Description |
---|---|
Vector<APIOpenAITuningJob> | job events |
ListJobs
Loads a list fine-tuning jobs
function : ListJobs(token:String) ~ Vector<API.OpenAI.Tuning.Tuner>
Parameters
Name | Type | Description |
---|---|---|
token | String | API token |
Return
Type | Description |
---|---|
Vector<APIOpenAITuningTuner> | fine-tuning jobs |
ListJobs
Loads a list fine-tuning jobs
function : ListJobs(limit:Int, token:String) ~ Vector<API.OpenAI.Tuning.Tuner>
Parameters
Name | Type | Description |
---|---|---|
limit | Int | number of jobs to retrieve |
token | String | API token |
Return
Type | Description |
---|---|
Vector<APIOpenAITuningTuner> | fine-tuning jobs |
Load
Load a tuning job
function : Load(job_id:String, token:String) ~ API.OpenAI.Tuning.Tuner
Parameters
Name | Type | Description |
---|---|---|
job_id | String | tuning job ID |
token | String | API token |
Return
Type | Description |
---|---|
API.OpenAI.Tuning.Tuner | tuning reference |
ToString
String representation of the object
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | string representation |