Views
No views yet
1conda create -n echo_infinity python=3.10 -y
2conda activate echo_infinity
3
4cd Echo-Infinity
5pip install -r requirements.txt
6pip install flash-attn --no-build-isolation
7python setup.py develop1# Wan2.1 base models (teacher / student backbones)
2hf download Wan-AI/Wan2.1-T2V-1.3B --local-dir wan_models/Wan2.1-T2V-1.3B
3hf download Wan-AI/Wan2.1-T2V-14B --local-dir wan_models/Wan2.1-T2V-14B
4
5# Stage-2 (Causal ODE) init from upstream Causal-Forcing
6hf download zhuhz22/Causal-Forcing chunkwise/causal_forcing.pt --local-dir checkpoints
7
8# Echo-Infinity Stage-1 (init) and Stage-2 (long) checkpoints
9hf download Echo-Team/Echo-Infinity echo_infinity.pt --local-dir checkpoints
10hf download Echo-Team/Echo-Infinity echo_infinity-long.pt --local-dir checkpointsEcho-Infinity/.1CUDA_VISIBLE_DEVICES=0 python inference/inference.py \
2 --config_path configs/echo_infinity_inference_std.yaml \
3 --use_ema \
4 --output_folder output/5s \
5 --seed 01CUDA_VISIBLE_DEVICES=0 python inference/inference.py \
2 --config_path configs/echo_infinity-long_inference.yaml \
3 --output_folder output/30s \
4 --seed 01CUDA_VISIBLE_DEVICES=0 python inference/inference.py \
2 --config_path configs/echo_infinity-long_inference_240s.yaml \
3 --output_folder output/240s \
4 --seed 01CUDA_VISIBLE_DEVICES=0 python inference/interactive_inference.py \
2 --config_path configs/echo_infinity-long_interactive.yaml \
3 --output_folder output/60s_interactive \
4 --seed 1bash inference/stream_long/run_1h.shbash inference/stream_long/run_24h.shinference/prompts/demo_*.txt and switch-prompts at inference/prompts/demo_60s_interactive.jsonl. Override with --data_path your_prompts.txt.gradient_accumulation_steps=2, effective batch size 64). Override the launch topology via MASTER_ADDR, NODE_IP_*, NNODES, and NPROC_PER_NODE environment variables (e.g. NNODES=1 NPROC_PER_NODE=8 bash scripts/train_echo_infinity_init.sh for single-node training).USE_WANDB=1 and fill in wandb_key / wandb_entity in the corresponding config (configs/echo_infinity.yaml, configs/echo_infinity-long.yaml).bash scripts/train_echo_infinity_init.shlogs/echo_infinity/checkpoint_model_000400/model.pt. To reuse it as the Stage-2 init or for inference, copy it to checkpoints/echo_infinity.pt (the path the configs expect) or pass --checkpoint_path.bash scripts/train_echo_infinity_long.shlogs/echo_infinity-long/checkpoint_model_003200/model.pt. To reuse it for the long-form inference above, copy it to checkpoints/echo_infinity-long.pt (the lora_ckpt path the configs expect) or pass --lora_ckpt.1hf download Echo-Team/Echo-Infinity vidprom_filtered_extended.txt --local-dir prompts
2hf download Echo-Team/Echo-Infinity vidprom_filtered_extended_switch.txt --local-dir promptsprompts/vidprom_filtered_extended.txt — base prompts for streaming trainingprompts/vidprom_filtered_extended_switch.txt — prompt-switch pairs for interactive training@article{bian2026echoinfinity,
title={Echo-Infinity: Learnable Evolving Memory for Real-Time Infinite Video Generation},
author={Bian, Yuxuan and Xue, Zeyue and Zhang, Songchun and Zhang, Shiyi and Jin, Weiyang and Li, Yaowei and Zhuang, Junhao and Li, Haoran and Huang, Jie and Huang, Haoyang and Duan, Nan and Xu, Qiang},
journal={arXiv preprint arXiv:2606.04527},
year={2026}
}