Skip to content

Commit a7e9f0e

Browse files
authored
add hyperparams (#793)
1 parent ae903d7 commit a7e9f0e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

fine_tuning_job.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ type FineTuningJob struct {
2626
}
2727

2828
type Hyperparameters struct {
29-
Epochs any `json:"n_epochs,omitempty"`
29+
Epochs any `json:"n_epochs,omitempty"`
30+
LearningRateMultiplier any `json:"learning_rate_multiplier,omitempty"`
31+
BatchSize any `json:"batch_size,omitempty"`
3032
}
3133

3234
type FineTuningJobRequest struct {

fine_tuning_job_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ func TestFineTuningJob(t *testing.T) {
3333
ValidationFile: "",
3434
TrainingFile: "file-abc123",
3535
Hyperparameters: openai.Hyperparameters{
36-
Epochs: "auto",
36+
Epochs: "auto",
37+
LearningRateMultiplier: "auto",
38+
BatchSize: "auto",
3739
},
3840
TrainedTokens: 5768,
3941
})

0 commit comments

Comments
 (0)