FastVideo icon indicating copy to clipboard operation
FastVideo copied to clipboard

[Feature] Support multi-GPU parallel pre-computation for Wan2.1

Open vviper25 opened this issue 1 year ago • 2 comments

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

vviper25 avatar Jul 08 '25 11:07 vviper25

Yes it takes too long with 1 GPU.

  • https://github.com/hao-ai-lab/FastVideo/issues/565#issuecomment-3047158774

yjhong89 avatar Jul 08 '25 23:07 yjhong89

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

zhisbug avatar Feb 04 '26 03:02 zhisbug