Skip to content

Commit

Permalink
Fix nworkers for tinystories tutorial (#280)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wolf <rywolf@nvidia.com>
  • Loading branch information
ryantwolf authored Oct 3, 2024
1 parent 044a2a9 commit c75a9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/tinystories/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def main():
parser = argparse.ArgumentParser()
args = ArgumentHelper(parser).add_distributed_args().parse_args()
# Limit the total number of workers to ensure we don't run out of memory.
args.n_workers = min(args.n_workers, 8)
args.n_workers = min(args.n_workers, 4)

# Prepare the download and JSONL directories.
if not os.path.isdir(DATA_DIR):
Expand Down

0 comments on commit c75a9d2

Please sign in to comment.