Skip to content

Commit

Permalink
Do not keep duplicate predict split in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
artemisp committed Mar 25, 2024
1 parent 1eb8553 commit 8e1dfc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parallelm/data/pl_dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def convert_label(examples):

if kwargs.get('predict_split', None):
raw_dataset['predict'] = raw_dataset[kwargs['predict_split']]
del raw_dataset[kwargs['predict_split']]
return raw_dataset

def filter_long_sequences(self, **kwargs):
Expand Down

0 comments on commit 8e1dfc5

Please sign in to comment.