Skip to content

Commit

Permalink
Merge branch 'main' into override
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Apr 4, 2024
2 parents 100def5 + 06ff95f commit 4b1bb9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ def main(cfg: DictConfig) -> Trainer:
if max_split_size_mb is not None:
cuda_alloc_conf.append(f'max_split_size_mb:{max_split_size_mb}')

# Expandeable segments
if cfg.pop('expandeable_segments', False):
cuda_alloc_conf.append('expandeable_segments:True')
# Expandable segments
if cfg.pop('expandable_segments', False):
cuda_alloc_conf.append('expandable_segments:True')

if len(cuda_alloc_conf) > 0:
os.environ['PYTORCH_CUDA_ALLOC_CONF'] = ','.join(cuda_alloc_conf)
Expand Down

0 comments on commit 4b1bb9f

Please sign in to comment.