Skip to content

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoguany committed Jul 17, 2023
1 parent 868a124 commit 78159d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lmflow/pipeline/finetuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def group_text(self, tokenized_datasets, model_max_length):
f"({model_max_length})."
f"Using block_size={data_args.block_size}.")
block_size = data_args.block_size

else:
block_size = data_args.block_size
# Main data processing function that will concatenate all texts from
# our dataset and generate chunks of block_size.
def group_texts(examples):
Expand Down

0 comments on commit 78159d0

Please sign in to comment.