Skip to content

Commit

Permalink
bring back yield condition
Browse files Browse the repository at this point in the history
  • Loading branch information
philippguevorguian committed May 13, 2024
1 parent 254e2b7 commit 33f0567
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chemlactica/jsonl_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ def samples_generator(
counter = 0
while line:
state["position"] = f.tell()
# if should_yield_on_current_rank(
# counter,
# distributed_state.num_processes,
# distributed_state.process_index,
# ):
# returned = True
if should_yield_on_current_rank(
counter,
distributed_state.num_processes,
distributed_state.process_index,
):
returned = True
ret = format_sample(line)
yield ret
counter = counter + 1
Expand Down

0 comments on commit 33f0567

Please sign in to comment.