This model packages
Wan2.2-TI2V-5B (the current best open-source video model family) with
VedioQuant cache compression pre-configured. Just load and use — no extra setup needed.
1import torch
2from pipeline_vedioquant import VedioQuantPipeline
3
4# Load — VedioQuant is auto-enabled
5pipe = VedioQuantPipeline.from_pretrained(
6 "viberobin/Wan2.2-TI2V-5B-VedioQuant",
7 torch_dtype=torch.float16,
8)
9pipe.to("cuda") # or "mps" for Mac
10
11# Generate video — same API as WanPipeline
12video = pipe(
13 prompt="a cat sitting on a sofa, cinematic lighting",
14 num_frames=17,
15 height=480,
16 width=832,
17).frames[0]
18
19# Check compression stats
20print(pipe.get_vedioquant_stats())
21# → {'steps': 50, 'cache_hits': 32, 'hit_rate': '64%',
22# 'bits': 3, 'compression_ratio': '10.7x'}
1# Adjust compression (default: 3-bit, recommended)
2pipe.enable_vedioquant(bits=3, threshold=0.05)
3
4# More aggressive compression (16x, slightly lower quality)
5pipe.enable_vedioquant(bits=2)
6
7# More conservative (8x, near-lossless)
8pipe.enable_vedioquant(bits=4)
9
10# Disable entirely (same as base Wan2.2)
11pipe.disable_vedioquant()
Wan2.2 features are even more Gaussian-friendly than Wan2.1 (kurtosis 6 vs 15), resulting in excellent compression quality.
The 5B model has hidden_dim=3072 (vs 1536 for 1.3B), making cache compression even more impactful — saving 23.5 GB of VRAM.
VedioQuant applies
TurboQuant (Google Research,
arXiv:2504.19874) to compress the feature cache used by
TeaCache (
arXiv:2411.19108) during video diffusion inference:
1@misc{vedioquant2025,
2 title={VedioQuant: Extreme Cache Compression for Video Diffusion Model Inference},
3 author={Peng Han},
4 year={2025},
5 url={https://github.com/robin-ph/vedioquant}
6}