Views
No views yet

generator_ckpt.lora_ckpt or adapter section, otherwise the LoRA adapter would be
applied a second time.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/merged_generator.pt
3
4data:
5 data_path: /path/to/inference_prompts
6
7output_folder: videos/longlive2
8num_samples: 1
9
10inference:
11 sampling_steps: 4
12 sink_size: 8
13 guidance_scale: 1.0
14 multi_shot_sink: true
15 multi_shot_rope_offset: 8merged_generator.pt with the actual merged checkpoint filename in this
repository. If your local config was copied from a base+LoRA setup, remove
checkpoints.lora_ckpt and the top-level adapter section before running
inference.1checkpoints:
2 generator_ckpt: checkpoints/longlive2_5b/generator.pt
3 lora_ckpt: checkpoints/longlive2_5b/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: 8data.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.checkpoints.generator_ckpt.checkpoints.generator_ckpt and
checkpoints.lora_ckpt, and keep the adapter section.lora_ckpt or adapter.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{longlive2,
2 title = {LongLive2.0: An NVFP4 Parallel Infrastructure for Long Video Generation},
3 author = {TODO},
4 journal = {TODO},
5 year = {2026}
6}