[Feature] Support multi-GPU parallel pre-computation for Wan2.1
Motivation
Hello FastVideo team,
First, thank you for the memory-efficient finetuning feature using precomputed text embeddings and video latents. It's a great addition that significantly speeds up the finetuning workflow.
I've noticed that the preprocessing scripts for generating these embeddings and latents currently appear to be limited to a single GPU, see here. This can become a significant bottleneck when working with very large datasets.
Could you please consider adding support for multi-GPU parallel preprocessing in a future release? Such a feature would dramatically improve the efficiency of data preparation for large-scale projects.
Thank you for your great work on this project!
Related resources
No response
Yes it takes too long with 1 GPU.
- https://github.com/hao-ai-lab/FastVideo/issues/565#issuecomment-3047158774
We have supported it after our preprocessing refactoring.
See: https://github.com/hao-ai-lab/FastVideo/blob/main/examples/training/finetune/wan_t2v_1.3B/crush_smol/preprocess_wan_data_t2v_new.sh It is a single map-reduce style parallelism.
Please try and let us know. Closing for now; feel free