FastWan2.2 TI2V 5B FullAttn Diffusers
简介
核心亮点
- 适配 Diffusers 库,开发者上手门槛极低
- 5B 参数规模,在生成质量与推理速度间取得平衡
- 支持 FullAttn 机制,提升视频画面的时空一致性
- 采用 Apache-2.0 协议,商业化部署非常灵活
使用方法
# 安装 Hugging Face transformers
pip install transformers torch
# 使用 transformers 加载模型
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers")
tokenizer = AutoTokenizer.from_pretrained("FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers")
Hugging Face 下载
我们推荐使用命令行或者 Hugging Face Hub SDK 来进行模型的下载。
操作指引:在下载前,请先通过如下命令安装 huggingface_hub:
pip install -U huggingface_hub
命令行下载
下载完整模型库
huggingface-cli download FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers
下载单个文件到指定本地文件夹(以下载 config.json 到当前路径下 ./dir 目录为例)
huggingface-cli download FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers config.json --local-dir ./dir
SDK 下载
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers')
Git 下载
请确保 lfs 已经被正确安装
git lfs install
git clone https://huggingface.co/FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers
如果您希望跳过 lfs 大文件下载,可以使用如下命令
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers
模型文件托管在 Hugging Face Hub,使用 HF CLI / SDK / Git 直接下载,不经过本站。
PyTorch / Transformers 使用
安装 Transformers
pip install -U transformers torch
模型加载和推理
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers')
tokenizer = AutoTokenizer.from_pretrained('FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers')
模型下载
我们推荐使用命令行或者 ModelScope SDK 来进行模型的下载。
操作指引:在下载前,请先通过如下命令安装 ModelScope:
pip install modelscope
命令行下载
下载完整模型库
modelscope download --model FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers
下载单个文件到指定本地文件夹(以下载 README.md 到当前路径下 dir 目录为例)
modelscope download --model FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers README.md --local_dir ./dir
SDK 下载
# 模型下载
from modelscope import snapshot_download
model_dir = snapshot_download('FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers')
Git 下载
请确保 lfs 已经被正确安装
git lfs install
git clone https://www.modelscope.cn/FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers.git
如果您希望跳过 lfs 大文件下载,可以使用如下命令
GIT_LFS_SKIP_SMUDGE=1 git clone https://www.modelscope.cn/FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers.git
ModelScope 模型页直接下载模型文件;无需将模型文件放在本站服务器。
Notebook 快速开发
下载并安装 ModelScope library
pip install "modelscope[audio,cv,nlp,multi-modal,science]" -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
模型加载和推理
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks
p = pipeline('text-generation', 'FastVideo/FastWan2.2-TI2V-5B-FullAttn-Diffusers')
完整文档
---
license: apache-2.0
pipeline_tag: text-to-video
library_name: diffusers
---
FastVideo FastWan2.2-TI2V-5B-FullAttn-Diffusers Model
<p align="center"> <img src="https://raw.githubusercontent.com/hao-ai-lab/FastVideo/main/assets/logo.png" width="200"/> </p> <div> <div align="center"> <a href="https://github.com/hao-ai-lab/FastVideo" target="_blank">FastVideo Team</a>  </div><div align="center">
<a href="https://huggingface.co/papers/2505.13389">HF Paper (VSA)</a> | <a href="https://arxiv.org/pdf/2505.13389">arXiv Paper (VSA)</a> |
<a href="https://github.com/hao-ai-lab/FastVideo">Github</a> |
<a href="https://hao-ai-lab.github.io/FastVideo">Project Page</a>
</div>
</div>
Online Demo
You can try our models here!Introduction
We're excited to introduce the FastWan2.2 series—a new line of models finetuned with our novel Sparse-distill strategy. This approach jointly integrates DMD and VSA in a single training process, combining the benefits of both distillation to shorten diffusion steps and sparse attention to reduce attention computations, enabling even faster video generation.FastWan2.2-TI2V-5B-Full-Diffusers is built upon Wan-AI/Wan2.2-TI2V-5B-Diffusers. It supports efficient 3-step inference and produces high-quality videos at 121×704×1280 resolution. For training, we used simulated forward for the generator model, making the process data-free. The current FastWan2.2-TI2V-5B-Full-Diffusers model is trained using only DMD.
---
Model Overview
- 3-step inference is supported.
- Our model is trained on 121×704×1280 resolution, but it supports generating videos with any resolution.(quality may degrade)
- Finetuning and inference scripts are available in the FastVideo repository:
num_gpus=1
export FASTVIDEO_ATTENTION_BACKEND=FLASH_ATTN
export MODEL_BASE=FastVideo/FastWan2.2-TI2V-5B-Full-Diffusers
export MODEL_BASE=hunyuanvideo-community/HunyuanVideo
You can either use --prompt or --prompt-txt, but not both.
fastvideo generate \
--model-path $MODEL_BASE \
--sp-size $num_gpus \
--tp-size 1 \
--num-gpus $num_gpus \
--height 704 \
--width 1280 \
--num-frames 121 \
--num-inference-steps 3 \
--fps 24 \
--prompt-txt assets/prompt.txt \
--negative-prompt "Bright tones, overexposed, static, blurred details, subtitles, style, works, paintings, images, static, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, misshapen limbs, fused fingers, still picture, messy background, three legs, many people in the background, walking backwards" \
--seed 1024 \
--output-path outputs_video_dmd/ \
--dmd-denoising-steps "1000,757,522"- Try it out on FastVideo — we support a wide range of GPUs from H100 to 4090, and also support Mac users!
Training Infrastructure
Training was conducted on 8 nodes with 64 H200 GPUs in total, using a global batch size = 64, and training runs for 3000 steps (~12 hours)
If you use the FastWan2.2-TI2V-5B-FullAttn-Diffusers model for your research, please cite our paper:
@article{zhang2025vsa,
title={VSA: Faster Video Diffusion with Trainable Sparse Attention},
author={Zhang, Peiyuan and Huang, Haofeng and Chen, Yongqi and Lin, Will and Liu, Zhengzhong and Stoica, Ion and Xing, Eric and Zhang, Hao},
journal={arXiv preprint arXiv:2505.13389},
year={2025}
}
@article{zhang2025fast,
title={Fast video generation with sliding tile attention},
author={Zhang, Peiyuan and Chen, Yongqi and Su, Runlong and Ding, Hangliang and Stoica, Ion and Liu, Zhengzhong and Zhang, Hao},
journal={arXiv preprint arXiv:2502.04507},
year={2025}
}