com.launchableinc.openai.fine_tuning.Hyperparameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Basic java objects for the OpenAI GPT APIs
The newest version!
package com.launchableinc.openai.fine_tuning;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Hyperparameters for a fine-tuning job
* https://platform.openai.com/docs/api-reference/fine-tuning/object#hyperparameters
*/
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Hyperparameters {
/**
* The number of epochs to train the model for. An epoch refers to one full cycle through the
* training dataset. "Auto" decides the optimal number of epochs based on the size of the dataset.
* If setting the number manually, we support any number between 1 and 50 epochs.
*/
@JsonProperty("n_epochs")
Integer nEpochs;
}