Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vchiley authored Jun 27, 2023
1 parent ac49704 commit af88782
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llmfoundry/data/finetuning/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ def dataset_mapper(example: Dict):
remove_columns=columns_to_remove,
)
prompt_length_filtered_dataset = tokenized_dataset.filter(
lambda example: len(example['input_ids']) < max_seq_len,
)
lambda example: len(example['input_ids']) < max_seq_len)

examples_removed = len(tokenized_dataset) - len(
prompt_length_filtered_dataset)
Expand Down

0 comments on commit af88782

Please sign in to comment.