Skip to content

Commit

Permalink
fix passing the wrong params for world size / rank
Browse files Browse the repository at this point in the history
  • Loading branch information
thejaminator committed Mar 28, 2023
1 parent 764fda9 commit d2c66b0
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 d2c66b0

Please sign in to comment.