Skip to content

Commit

Permalink
set max_new_tokens for generate
Browse files Browse the repository at this point in the history
  • Loading branch information
jack89roberts committed Jul 25, 2024
1 parent 3c90a06 commit 5adce7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def main(experiment_path):
],
accelerator=Accelerator(),
n_print=5,
max_new_tokens=50,
)

# Step 7: Load trainer
Expand Down

0 comments on commit 5adce7a

Please sign in to comment.