Skip to content

Commit

Permalink
add learning rate
Browse files Browse the repository at this point in the history
  • Loading branch information
davebulaval committed Mar 3, 2024
1 parent ef13b39 commit 80fe5f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/training/few_shot_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def tokenize_function(example):
load_best_model_at_end=True, # By default, use the eval loss to retrieve the best model.
seed=seed,
metric_for_best_model="eval_loss",
learning_rate=5e-5,
)

# num_labels to 1 to create a regression head
Expand Down

0 comments on commit 80fe5f5

Please sign in to comment.