Skip to content

Commit

Permalink
Use 0 workers for profiling because one batch is loaded per worker an…
Browse files Browse the repository at this point in the history
…d we only load a single batch.
  • Loading branch information
irenedea committed Oct 21, 2023
1 parent 6aab1ad commit aeffb4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llmfoundry/data/packing.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ def profile_packing(dataloader_cfg: DictConfig,
dataloader_cfg.dataset.packing_ratio = None
dataloader_cfg.dataset.max_leftovers_to_keep = None
dataloader_cfg.drop_last = False
dataloader_cfg.num_workers = 0
dataloader_cfg.prefetch_factor = None

# Determine the packing_ratio values we'll try
packing_ratios, raw_batch_sizes = [], []
Expand Down

0 comments on commit aeffb4b

Please sign in to comment.