Skip to content

Commit 2846b83

Browse files
fix wan command for generation.
1 parent a3747b1 commit 2846b83

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,12 @@ To generate images, run the following command:
535535

536536
Supports both Text2Vid and Img2Vid pipelines.
537537

538+
**Note**: The product of per_device_batch_size and num_devices must be equal to a whole number.
539+
540+
The below command uses 4 devices and a per_device_batch_size=0.25. Thus, 4 * 0.25 = 1. This will generate a single video. Setting per_device_batch_size to 0.5, will generate 2 videos and so on.
541+
542+
If using 8 devices, then per_device_batch_size=0.125 will generate 1 video, per_device_batch_size=0.25 generates 2 videos.
543+
538544
The following command will run Wan2.1 T2V:
539545

540546
```bash
@@ -553,7 +559,7 @@ To generate images, run the following command:
553559
width=1280 \
554560
height=720 \
555561
jax_cache_dir=gs://jfacevedo-maxdiffusion/jax_cache/ \
556-
per_device_batch_size=.125 \
562+
per_device_batch_size=.0.25 \
557563
ici_data_parallelism=2 \
558564
ici_context_parallelism=2 \
559565
flow_shift=5.0 \

0 commit comments

Comments
 (0)