Kiwi-Edit
Collection
11 items • Updated • 15
How to use linyq/wan2.2_ti2v_5b_qwen25vl_3b_stage1_img_only with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image, export_to_video
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("linyq/wan2.2_ti2v_5b_qwen25vl_3b_stage1_img_only", dtype=torch.bfloat16, device_map="cuda")
pipe.to("cuda")
prompt = "A man with short gray hair plays a red electric guitar."
image = load_image(
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
)
output = pipe(image=image, prompt=prompt).frames[0]
export_to_video(output, "output.mp4")Kiwi-Edit is a versatile video editing framework built on an MLLM encoder and a video Diffusion Transformer (DiT). It supports both instruction-based video editing and reference image + instruction video editing.
Kiwi-Edit addresses the challenge of precise visual control in instruction-based video editing. It introduces a scalable data generation pipeline to create the RefVIE dataset and proposes a unified architecture that synergizes learnable queries with latent visual features. The model excels at various tasks including:
You can perform inference using the Diffusers-based environment as described in the official repository.
# Install requirements
pip install diffusers decord einops accelerate transformers==4.57.0 opencv-python av
# Run the demo
python diffusers_demo.py \
--video_path ./demo_data/video/source/example.mp4 \
--prompt "Remove the monkey." \
--save_path output.mp4 \
--model_path linyq/kiwi-edit-5b-instruct-only-diffusers
@misc{kiwiedit,
title={Kiwi-Edit: Versatile Video Editing via Instruction and Reference Guidance},
author={Yiqi Lin and Guoqiang Liang and Ziyun Zeng and Zechen Bai and Yanzhe Chen and Mike Zheng Shou},
year={2026},
eprint={2603.02175},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2603.02175},
}