Skip to content

Commit 046a3f3

Browse files
samithcsachisekyondaMetasvekars
authored
Fix: #3833 Feedback about Multi GPU training with DDP (#3838)
Fixes #3833 Feedback about Multi GPU training with DDP ## Description <!--- Describe your changes in detail --> At the end of the page, it says "Here's what the code looks like: " but it does not actually show the full code. The code was not visible because there was no proper spacing. Have corrected the spacing. Co-authored-by: sekyondaMeta <127536312+sekyondaMeta@users.noreply.github.com> Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
1 parent e898d1a commit 046a3f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/ddp_series_multigpu.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ Running the distributed training job
202202
Here's what the code looks like:
203203

204204
.. code-block:: python
205+
205206
def main(rank, world_size, total_epochs, save_every):
206207
ddp_setup(rank, world_size)
207208
dataset, model, optimizer = load_train_objs()
@@ -218,7 +219,6 @@ Here's what the code looks like:
218219
mp.spawn(main, args=(world_size, total_epochs, save_every,), nprocs=world_size)
219220
220221
221-
222222
Further Reading
223223
---------------
224224

0 commit comments

Comments
 (0)