Skip to content

Commit

Permalink
Rename nEpochs to n_epochs in FineTuneRequest (TheoKanning#148)
Browse files Browse the repository at this point in the history
* Rename nEpochs to n_epochs in FineTuneRequest

* Remove unused import
  • Loading branch information
Sliman4 authored Mar 8, 2023
1 parent ec701cd commit 27c9089
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class FineTuneRequest {
/**
* The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
*/
@JsonProperty("n_epochs")
Integer nEpochs;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void createFineTune() {
FineTuneRequest request = FineTuneRequest.builder()
.trainingFile(fileId)
.model("ada")
.nEpochs(4)
.build();

FineTuneResult fineTune = service.createFineTune(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void createFineTune() {
FineTuneRequest request = FineTuneRequest.builder()
.trainingFile(fileId)
.model("ada")
.nEpochs(4)
.build();

FineTuneResult fineTune = service.createFineTune(request);
Expand Down

0 comments on commit 27c9089

Please sign in to comment.