fine_tuning | R Documentation |
DataStream Class
DataStream Class
openaistream::openai
-> fine_tuning
create()
Creates a job that fine-tunes a specified model from a given dataset. Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
fine_tuning$create( model, training_file, hyperparameters = list(n_epochs = 1), ..., verbosity = 0 )
model
character Required. The model ID.
training_file
character Required. The file used for training.
hyperparameters
list. The hyperparameters used for the fine-tuning job. include batch_size;learning_rate_multiplier;n_epochs.
...
Additional parameters as required by the OpenAI API.For example:validation_file......
verbosity
numeric. Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.).
Response indicating the success or failure of the fine-tuning job creation.
list()
List your organization's fine-tuning jobs
fine_tuning$list(verbosity = 0, ...)
verbosity
numeric. Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.).
...
Additional parameters as required by the OpenAI API. For example:after,limit.
A list of paginated fine-tuning job objects.
retrieve()
Get info about a fine-tuning job.
fine_tuning$retrieve(job_id, verbosity = 0)
job_id
character Required. The ID of the fine-tuning job.
verbosity
numeric. Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.).
The fine-tuning object with the given ID.
cancel()
Immediately cancel a fine-tune job.
fine_tuning$cancel(job_id, verbosity = 0)
job_id
character Required. The ID of the fine-tuning job to cancel.
verbosity
numeric. Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.).
The cancelled fine-tuning object.
events()
Get status updates for a fine-tuning job.
fine_tuning$events(job_id, ..., verbosity = 0)
job_id
character Required. The ID of the fine-tuning job to get events for.
...
Additional parameters as required by the OpenAI API. For example:after,limit.
verbosity
numeric. Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.).
A list of fine-tuning event objects.
clone()
The objects of this class are cloneable with this method.
fine_tuning$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.