Bundle Support for fine-tuning models (-lib openai)
Tuner
OpenAI fine tuning
Inherits: EndPoint
Operations
- Cancel
- Create
- GetCreatedAt
- GetFinishedAt
- GetId
- GetObject
- GetStatus
- GetTrainingFilename
- ListCheckpoints
- ListEvents
- ListJobs
- Load
- ToString
Cancel # function
Cancel a tuning job
function : Cancel(job_id:String, token:String) ~ API.OpenAI.Tuning.TunerParameters
| Name | Type | Description |
|---|---|---|
| job_id | String | tuning job ID |
| token | String | API token |
Return
| Type | Description |
|---|---|
| Tuner | canceled tuning reference |
Create # function
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.TunerParameters
| 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 |
|---|---|
| Tuner | fine-tuning job instance |
GetCreatedAt #
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ IntReturn
| Type | Description |
|---|---|
| Int | time with the object instance was created |
GetFinishedAt #
Unix timestamp (in seconds) of when the job finished
method : public : GetFinishedAt() ~ IntReturn
| Type | Description |
|---|---|
| Int | time with the job finished |
GetId #
Get object instance API ID
method : public : GetId() ~ StringReturn
| Type | Description |
|---|---|
| String | instance ID |
GetObject #
Get the object type
method : public : GetObject() ~ StringReturn
| Type | Description |
|---|---|
| String | object type |
GetStatus #
Get status of the tuning job
method : public : GetStatus() ~ StringReturn
| Type | Description |
|---|---|
| String | name of the training file |
GetTrainingFilename #
Get the name of the training file
method : public : GetTrainingFilename() ~ StringReturn
| Type | Description |
|---|---|
| String | name of the training file |
ListCheckpoints # function
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 # function
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 # function
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 # function
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 # function
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 # function
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 |