View Source OpenAI.FineTunes (OpenAI API Wrapper v0.1.3)

Provides the ability to interact with the OpenAI fine tuness API.

See the OpenAI fine tuness API documentation here.

Link to this section Summary

Functions

Immediately cancel a fine-tune job.

Creates a job that fine-tunes a specified model from a given dataset.

Delete a fine-tuned model. You must have the Owner role in your organization.

List your organization's fine-tuning jobs

Get fine-grained status updates for a fine-tune job.

Gets info about the fine-tune job with the given id.

Link to this section Types

@type create_params() ::
  {:validation_file, binary()}
  | {:model, binary()}
  | {:n_epochs, non_neg_integer()}
  | {:batch_size, non_neg_integer()}
  | {:learning_rate_multiplier, number()}
  | {:prompt_loss_weight, number()}
  | {:compute_classification_metrics, boolean()}
  | {:classification_n_classes, non_neg_integer()}
  | {:classification_positive_class, binary()}
  | {:classification_betas, [number()]}
  | {:suffix, binary()}

Link to this section Functions

@spec cancel(binary()) :: {:ok, map()} | {:error, OpenAI.Error.t()}

Immediately cancel a fine-tune job.

Link to this function

create(training_file_id, params \\ [])

View Source
@spec create(binary(), [create_params()]) :: {:ok, map()} | {:error, OpenAI.Error.t()}

Creates a job that fine-tunes a specified model from a given dataset.

@spec delete_model(binary()) :: {:ok, map()} | {:error, OpenAI.Error.t()}

Delete a fine-tuned model. You must have the Owner role in your organization.

@spec list() :: {:ok, map()} | {:error, OpenAI.Error.t()}

List your organization's fine-tuning jobs

Link to this function

list_events(fine_tune_id)

View Source
@spec list_events(binary()) :: {:ok, map()} | {:error, OpenAI.Error.t()}

Get fine-grained status updates for a fine-tune job.

@spec retrieve(binary()) :: {:ok, map()} | {:error, OpenAI.Error.t()}

Gets info about the fine-tune job with the given id.