Skip to content

Commit

Permalink
add hyperparams (#793)
Browse files Browse the repository at this point in the history
  • Loading branch information
janukobytsch authored Jul 19, 2024
1 parent ae903d7 commit a7e9f0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fine_tuning_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion fine_tuning_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit a7e9f0e

Please sign in to comment.