Skip to content

Commit c61aae7

Browse files
authored
Update 03_pytorch_dpp.md
1 parent a56f4fd commit c61aae7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/hpc/08_ml_ai_hpc/03_pytorch_dpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Here are some webpages and videos:
3636
Do not use `DataParallel` in PyTorch for anything since it gives poor performance relative to `DistributedDataParallel`.
3737
:::
3838

39-
## Main changes needed in going from single-GPU to multi-GPU training with DDP
39+
## Main Changes Needed in Going from Single-GPU to Multi-GPU Training with DDP
4040

4141
This completely new piece is needed to form the process group:
4242

@@ -192,7 +192,7 @@ The `local_rank` should be used everywhere in your script except when initializi
192192

193193
# DDP and Slurm
194194

195-
## Total number of tasks equals total number of GPUs
195+
## Total Number of Tasks Equals Total Number of GPUs
196196

197197
When using DDP, the total number of tasks must equal the total number of allocated GPUs. Therefore, if `--ntasks-per-node=<N>` then you must have `--gres=gpu:<N>`. Here are two examples:
198198

@@ -429,6 +429,6 @@ Execute the commands below to run the example above:
429429
[NetID@log-1 full-ddp-test]$ sbatch run-full.SBATCH
430430
```
431431

432-
## Memory issues
432+
## Memory Issues
433433

434434
Use `gradient_as_bucket_view=True` when making the DDP model to decrease the required memory by 1/3.

0 commit comments

Comments
 (0)