Skip to content

Commit

Permalink
move to auto only
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Dec 7, 2023
1 parent 3f92f9c commit 3339924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llmfoundry/data/packing.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ def auto_packing_ratio(dataloader_cfg: DictConfig,
break
packing_ratio = packing_ratio_candidate

clean_stale_shared_memory()

# Select the minimum packing ratio across all ranks.
if dist.is_available() and dist.is_initialized():
device = get_device(None)
Expand Down Expand Up @@ -408,8 +410,6 @@ def profile(raw_batch_size: int) -> Tuple[float, float]:
padding, waste = profile(raw_batch_size)
yield (packing_ratio, padding, waste)

clean_stale_shared_memory()


if __name__ == '__main__':

Expand Down

0 comments on commit 3339924

Please sign in to comment.