add hyperparams (#793)
This commit is contained in:
@@ -26,7 +26,9 @@ type FineTuningJob struct {
|
||||
}
|
||||
|
||||
type Hyperparameters struct {
|
||||
Epochs any `json:"n_epochs,omitempty"`
|
||||
Epochs any `json:"n_epochs,omitempty"`
|
||||
LearningRateMultiplier any `json:"learning_rate_multiplier,omitempty"`
|
||||
BatchSize any `json:"batch_size,omitempty"`
|
||||
}
|
||||
|
||||
type FineTuningJobRequest struct {
|
||||
|
||||
@@ -33,7 +33,9 @@ func TestFineTuningJob(t *testing.T) {
|
||||
ValidationFile: "",
|
||||
TrainingFile: "file-abc123",
|
||||
Hyperparameters: openai.Hyperparameters{
|
||||
Epochs: "auto",
|
||||
Epochs: "auto",
|
||||
LearningRateMultiplier: "auto",
|
||||
BatchSize: "auto",
|
||||
},
|
||||
TrainedTokens: 5768,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user