File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def main() -> None:
143
143
# fast batched generate (with arguments for higher quality generations)
144
144
out = model .generate (
145
145
** enc ,
146
- max_length = 500 ,
146
+ max_length = 128 ,
147
147
num_beams = 5 , # improves quality
148
148
do_sample = True , # add stochasticity
149
149
length_penalty = 1.2 , # >1 favors longer answers
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class CustomTrainingArgs(Seq2SeqTrainingArguments):
63
63
num_train_epochs : int = 12
64
64
per_device_train_batch_size : int = 32
65
65
per_device_eval_batch_size : int = 64
66
- learning_rate : float = 6e -5
66
+ learning_rate : float = 3e -5
67
67
lr_scheduler_type : str = "cosine"
68
68
warmup_ratio : float = 0.1
69
69
max_grad_norm : float = 0.5
You can’t perform that action at this time.
0 commit comments