Skip to content

Commit

Permalink
Merge branch 'distributed-training' of github.com:skypilot-org/skypil…
Browse files Browse the repository at this point in the history
…ot into distributed-training
  • Loading branch information
Michaelvll committed Dec 12, 2024
2 parents 3a322c7 + d222990 commit e81aa0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/distributed-pytorch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following command will spawn 2 nodes with 2 L4 GPU each:
sky launch -c train train.yaml
```

In the [train.yaml](./train.yaml), we use `torchrun` to launch the training and set the arguments for distributed training using environment variables provided by SkyPilot.
In [train.yaml](./train.yaml), we use `torchrun` to launch the training and set the arguments for distributed training using [environment variables](https://docs.skypilot.co/en/latest/running-jobs/environment-variables.html#skypilot-environment-variables) provided by SkyPilot.

```yaml
run: |
Expand All @@ -41,15 +41,15 @@ run: |
### Using `rdvz` backend
### Using `rdzv` backend

`rdvz` is an alternative backend for distributed training:
`rdzv` is an alternative backend for distributed training:

```
sky launch -c train-rdzv.yaml
sky launch -c train-rdzv train-rdzv.yaml
```

In the [train-rdzv.yaml](./train-rdzv.yaml), we use `torchrun` to launch the training and set the arguments for distributed training using environment variables provided by SkyPilot.
In [train-rdzv.yaml](./train-rdzv.yaml), we use `torchrun` to launch the training and set the arguments for distributed training using [environment variables](https://docs.skypilot.co/en/latest/running-jobs/environment-variables.html#skypilot-environment-variables) provided by SkyPilot.

```yaml
run: |
Expand Down

0 comments on commit e81aa0c

Please sign in to comment.