All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.felh.openai.fineTuning.CreateFineTuningJobRequest Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai.fineTuning;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import xyz.felh.openai.IOpenAiApiRequest;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor(force = true)
public class CreateFineTuningJobRequest implements IOpenAiApiRequest {

    /**
     * The ID of an uploaded file that contains training data.
     * Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose fine-tune.
     */
    @NonNull
    @JSONField(name = "training_file")
    @JsonProperty("training_file")
    private String trainingFile;

    /**
     * Optional
     * 

* The ID of an uploaded file that contains validation data. *

* If you provide this file, the data is used to generate validation metrics periodically during fine-tuning. * These metrics can be viewed in the fine-tuning results file. The same data should not be present in both train and validation files. *

* Your dataset must be formatted as a JSONL file. You must upload your file with the purpose fine-tune. */ @JSONField(name = "validation_file") @JsonProperty("validation_file") private String validationFile; /** * The name of the model to fine-tune. You can select one of the supported models. */ @NonNull @JSONField(name = "model") @JsonProperty("model") private String model; /** * Optional * The hyperparameters used for the fine-tuning job. */ @JSONField(name = "hyperparameters") @JsonProperty("hyperparameters") private Hyperparameters hyperparameters; /** * A string of up to 18 characters that will be added to your fine-tuned model name. *

* For example, a suffix of "custom-model-name" would produce a model name like ft:gpt-3.5-turbo:openai:custom-model-name:7p4lURel. */ @JSONField(name = "suffix") @JsonProperty("suffix") private String suffix; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy