Skip to content

Commit

Permalink
Make default for cuda_load_lazy false (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Oct 26, 2023
1 parent ea3279a commit 08611b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def main(cfg: DictConfig) -> Trainer:

# Set CUDA lazy loading
# This can save a bit of memory if not all modules are needed
cuda_load_lazy: bool = cfg.pop('cuda_load_lazy', True)
cuda_load_lazy: bool = cfg.pop('cuda_load_lazy', False)
if cuda_load_lazy:
os.environ['CUDA_MODULE_LOADING'] = 'LAZY'

Expand Down

0 comments on commit 08611b0

Please sign in to comment.