Views
No views yet

1git clone https://github.com/wileewang/LongLive2.0.git
2cd LongLive2.0
3
4conda create -n longlive2 python=3.10 -y
5conda activate longlive2
6pip install torch==2.8.0 torchvision==0.23.0 --index-url https://download.pytorch.org/whl/cu128
7pip install -r requirements.txt
8pip install flash-attn --no-build-isolation1huggingface-cli download Wan-AI/Wan2.2-TI2V-5B \
2 --local-dir wan_models/Wan2.2-TI2V-5B1huggingface-cli download Perflow-Shuai/longlive_2.0_5B_tmp_20260507 \
2 --local-dir checkpoints/longlive2_5bconfigs/inference.yaml:1checkpoints:
2 generator_ckpt: checkpoints/longlive2_5b/path/to/base_generator.pt
3 lora_ckpt: checkpoints/longlive2_5b/path/to/dmd_lora.pt
4
5adapter:
6 type: lora
7 rank: 128
8 alpha: 128
9 dropout: 0.0
10 verbose: true
11
12data:
13 data_path: /path/to/inference_prompts
14
15output_folder: videos/longlive2
16num_samples: 1
17
18inference:
19 sampling_steps: 4
20 sink_size: 8
21 guidance_scale: 1.0
22 multi_shot_sink: true
23 multi_shot_rope_offset: 8adapter section and leave
lora_ckpt unset.data.data_path is passed to MultiTextConcatDataset in inference.py. It can
be either:.txt file, where each line is one single-shot prompt; or1inference_prompts/
2 robot_lab_demo/
3 0.json
4 1.json
5 2.json
6 shot_durations.txtcaption/ folder:1inference_prompts/
2 caption/
3 robot_lab_demo/
4 0.json
5 1.json
6 2.json
7 shot_durations.txt1{
2 "caption": "A compact silver robot with one blue optic explores a clean robotics lab."
3}shot_durations.txt is optional. If provided, each number is the number of
temporal chunks assigned to the corresponding caption, for example:2 2 41torchrun --standalone --nnodes=1 --nproc_per_node=8 inference.py \
2 --config_path configs/inference.yamlpython inference.py --config_path configs/inference.yamloutput_folder.inference.sampling_steps controls the number of denoising steps.inference.multi_shot_sink enables the multi-shot attention sink.inference.multi_shot_rope_offset controls the multi-shot RoPE offset.1@article{longlive_2,
2 title={LongLive2.0: An NVFP4 Parallel Infrastructure for Long Video Generation},
3 author={Chen, Yukang and Wang, Luozhou and Huang, Wei and Yang, Shuai and Zhang, Bohan and Xiao, Yicheng and Chu, Ruihang and Mao, Weian and Hu, Qixin and Liu, Shaoteng and Zhao, Yuyang and Mao, Huizi and Chen, Ying-Cong and Xie, Enze and Qi, Xiaojuan and Han, Song},
4 journal={arXiv preprint arXiv},
5 year={2026}
6}