Skip to content

Commit

Permalink
Merge branch 'multi-datasets' into james-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed Mar 28, 2023
2 parents 272e8e8 + d2c66b0 commit 0c191e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elk/extraction/prompt_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def load_prompts(
# only keep the datapoints relevant to the current process
if world_size > 1:
# This prints to stdout which is slightly annoying
split = split_dataset_by_node(split, world_size, rank)
split = split_dataset_by_node(
dataset=split, rank=rank, world_size=world_size
)

raw_datasets.append(split)
train_datasets.append(train_ds)
Expand Down

0 comments on commit 0c191e3

Please sign in to comment.