mirror of
https://github.com/zenlm/enso.git
synced 2026-07-26 22:30:28 +00:00
Update README.md
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
## Scaling Diffusion Transformers with Mixture of Experts <br><sub>Official PyTorch Implementation</sub>
|
||||
## Scaling Diffusion Transformers with Mixture of Experts <br><sub>Official PyTorch Implementation</sub>
|
||||
|
||||
[](https://arxiv.org/abs/2407.11633)
|
||||
|
||||
@@ -32,6 +32,19 @@ torchrun --nnodes=1 --nproc_per_node=N train.py \
|
||||
--global-batch-size 256
|
||||
```
|
||||
|
||||
For multiple node training, we solve the [bug](https://github.com/facebookresearch/DiT/blob/main/train.py#L149) at original DiT repository, and you can run with 8 nodes as:
|
||||
```bash
|
||||
torchrun --nnodes=8 \
|
||||
--node_rank=0 \
|
||||
--nproc_per_node=8 \
|
||||
--master_addr="10.0.0.0" \
|
||||
--master_port=1234 \
|
||||
train.py \
|
||||
--model DiT-B/2 \
|
||||
--global-batch-size 1024 \
|
||||
--data-path /path/to/imagenet/train
|
||||
```
|
||||
|
||||
|
||||
### 2. Inference
|
||||
|
||||
|
||||
Reference in New Issue
Block a user