Rename accelerator="ddp" to strategy="ddp" (#228)
This commit is contained in:
1 parent
7a33c0bdad
commit
8b62eef9d0
2 files changed
+4
-4
No files matched your search
@@ -174,10 +174,10 @@ python run.py trainer.gpus=1
|
|||||||
python run.py +trainer.tpu_cores=8
|
python run.py +trainer.tpu_cores=8
|
||||||
|
|
||||||
# train with DDP (Distributed Data Parallel) (4 GPUs)
|
# train with DDP (Distributed Data Parallel) (4 GPUs)
|
||||||
python run.py trainer.gpus=4 +trainer.accelerator=ddp
|
python run.py trainer.gpus=4 +trainer.strategy=ddp
|
||||||
|
|
||||||
# train with DDP (Distributed Data Parallel) (8 GPUs, 2 nodes)
|
# train with DDP (Distributed Data Parallel) (8 GPUs, 2 nodes)
|
||||||
python run.py trainer.gpus=4 +trainer.num_nodes=2 +trainer.accelerator=ddp
|
python run.py trainer.gpus=4 +trainer.num_nodes=2 +trainer.strategy=ddp
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -915,7 +915,7 @@ The most common one is DDP, which spawns separate process for each GPU and avera
|
|||||||
You can run DDP on mnist example with 4 GPUs like this:
|
You can run DDP on mnist example with 4 GPUs like this:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python run.py trainer.gpus=4 +trainer.accelerator="ddp"
|
python run.py trainer.gpus=4 +trainer.strategy=ddp
|
||||||
```
|
```
|
||||||
|
|
||||||
⚠️ When using DDP you have to be careful how you write your models - learn more [here](https://pytorch-lightning.readthedocs.io/en/latest/advanced/multi_gpu.html).
|
⚠️ When using DDP you have to be careful how you write your models - learn more [here](https://pytorch-lightning.readthedocs.io/en/latest/advanced/multi_gpu.html).
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ defaults:
|
|||||||
- default.yaml
|
- default.yaml
|
||||||
|
|
||||||
gpus: 4
|
gpus: 4
|
||||||
accelerator: ddp
|
strategy: ddp
|
||||||
Reference in new issue
Block a user