Yifan Shen1,3†
·
Yewei Xia1
·
Gongxu Luo1,3
·
Peiyuan Zhu1
·
Boyang Sun1
Zhenhao Chen1
·
Guangyi Liu1,3
·
Guangyi Chen1,2*
·
Kun Zhang2,1
1 Mohamed bin Zayed University of AI 2 Carnegie Mellon University 3 Institute of Foundation Models
† Work done during an internship at the Institute of Foundation Models. * Corresponding author.
- Create the reference environment (Linux, Python 3.10, PyTorch 2.5.1, CUDA 12.4, FlashAttention 2.8.3.post1):
python3.10 -m venv .venv
source .venv/bin/activate
pip install -r requirements/training.txt
python scripts/utilities/verify_environment.py- Download the public base models (Wan2.1-T2V-1.3B / 14B and the causal-model initialization) to their default
locations, then place the Prospective Forcing checkpoint in
checkpoints/stage2/(seecheckpoints/README.md; release of our weights is coming soon, or train it with the two-stage recipe indocs/USAGE.md):
pip install -U "huggingface_hub[cli]" # provides the `hf` command used by the script
bash scripts/utilities/download_public_artifacts.sh- Generate videos from a text file with one prompt per line. Eight GPUs are used by default; set
PF_GPU_IDS=0for a single GPU.
bash scripts/inference/infer_m1.sh examples/prompts.txt outputs/Training, configuration, and checkpoint details are in docs/USAGE.md and docs/.
This code builds on Rolling Forcing and Wan2.1; the inherited license restricts use to academic purposes
(see LICENSE and THIRD_PARTY_NOTICES.md).