hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
20.1k stars 1.91k forks source link

question about parallelism #547

Open bluenevus opened 1 week ago

bluenevus commented 1 week ago

I read that we can get command line by doing this. But how do we achieve parallelism so we can just make the api call and that happens with the number of gpus attached, like 2 or 4 gpus

To enable sequence parallelism, you need to use torchrun to run the inference script. The following command will run the inference with 2 GPUs.

I'm making the api call which works great, but watching, its only using one of the gpus despite having 2 attached

JThh commented 4 hours ago

What's your command @bluenevus ?