Downloads · 30 days
0
wangkanai/wan21-fp8-480p
wan21-fp8-480p is a image-to-video model from wangkanai. Use it for the image-to-video task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as other.
This repository contains the WAN (Wan An) 2.1 image-to-video generation model in FP8 precision, optimized for 480p video generation. The FP8 E4M3FN quantization provides approximately 50% memory savings compared to FP…
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
16.4 GB
Likes
1
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This repository contains the WAN (Wan An) 2.1 image-to-video generation model in FP8 precision, optimized for 480p video generation. The FP8 E4M3FN quantization provides approximately 50% memory savings compared to FP16 while maintaining high-quality video generation capabilities.
WAN 2.1 FP8 480p is a 14-billion parameter transformer-based diffusion model that transforms static images into dynamic videos. This quantized version offers significant memory efficiency, making it ideal for systems with VRAM constraints or batch processing workflows. The model supports advanced camera control through compatible LoRA adapters (available separately).
Key Capabilities:
wan21-fp8-480p/
└── diffusion_models/
└── wan/
└── wan21-i2v-480p-14b-fp8-e4m3fn.safetensors (16 GB)
Total Repository Size: 16 GB
| File | Size | Precision | Description |
|---|---|---|---|
wan21-i2v-480p-14b-fp8-e4m3fn.safetensors | 16 GB | FP8 E4M3FN | 14B parameter I2V diffusion model (480p) |
Note: This repository contains only the diffusion model. For complete functionality, you will need:
wan21-vae repositorywan21-loras repositoryfrom diffusers import DiffusionPipeline, AutoencoderKL
from PIL import Image
import torch
# Load the 480p FP8 model
pipe = DiffusionPipeline.from_single_file(
"E:/huggingface/wan21-fp8-480p/diffusion_models/wan/wan21-i2v-480p-14b-fp8-e4m3fn.safetensors",
torch_dtype=torch.float8_e4m3fn, # FP8 precision
use_safetensors=True
)
# Load WAN 2.1 VAE (required, from separate repository)
pipe.vae = AutoencoderKL.from_single_file(
"E:/huggingface/wan21-vae/vae/wan/wan21-vae.safetensors"
)
pipe.to("cuda")
# Load input image
input_image = Image.open("path/to/your/image.jpg")
# Generate video from image
video = pipe(
image=input_image,
prompt="cinematic movement, smooth camera motion",
num_frames=24,
num_inference_steps=50,
guidance_scale=7.5
).frames[0]
# Save video
from diffusers.utils import export_to_video
export_to_video(video, "output_video.mp4", fps=8)
# Load camera control LoRA (from separate repository)
pipe.load_lora_weights(
"E:/huggingface/wan21-loras/loras/wan/wan21-camera-rotation-rank16-v1.safetensors"
)
# Generate video with controlled camera movement
video = pipe(
image=input_image,
prompt="rotating camera around the subject, smooth orbital motion",
num_frames=24,
num_inference_steps=50,
guidance_scale=7.5
).frames[0]
export_to_video(video, "output_rotating.mp4", fps=8)
# Enable memory optimizations for lower VRAM usage
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
# Optional: Enable xformers for faster inference
pipe.enable_xformers_memory_efficient_attention()
# Generate with optimizations active
video = pipe(
image=input_image,
prompt="your prompt here",
num_frames=16, # Reduce frames for lower memory
num_inference_steps=40 # Fewer steps = faster generation
).frames[0]
| Specification | Details |
|---|---|
| Architecture | Transformer-based image-to-video diffusion model |
| Parameters | 14 billion |
| Precision | FP8 E4M3FN (8-bit floating point) |
| Output Resolution | 480p |
| Format | SafeTensors |
| Quantization | ~50% size reduction from FP16 |
| Quality Retention | >95% compared to FP16 variant |
| Compatible Library | diffusers (requires FP8 support) |
Format: E4M3FN (4-bit exponent, 3-bit mantissa + sign bit)
Benefits:
Compatibility:
# Install required dependencies
pip install torch>=2.1.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
# Install diffusers and related packages
pip install diffusers transformers accelerate safetensors
# Optional: Install xformers for memory-efficient attention
pip install xformers
Minimum Versions:
Same Family:
wan21-fp8-720p - 720p variant (16GB) for higher resolution outputwan21-fp16-480p - FP16 variant (32GB) for maximum precisionwan21-fp16-720p - FP16 720p variant (32GB) for highest qualityRequired Components:
wan21-vae - WAN 2.1 VAE (243 MB, required for all WAN 2.1 models)wan21-loras - Camera control LoRAs (optional, 343 MB each)Enhanced Version:
wan22-fp8 - WAN 2.2 with enhanced camera controls and quality improvementsVersion: v1.0 (2024)
This model is released under the WAN license. Please refer to the official WAN model documentation for specific license terms and usage restrictions. Commercial use may have additional requirements.
If you use this model in your research or projects, please cite:
@software{wan21_fp8_480p,
title={WAN 2.1 FP8 480p: Efficient Image-to-Video Generation},
year={2024},
note={FP8 quantized 480p image-to-video diffusion model with 14B parameters}
}
Responsible AI Notice: This model generates video content from images. Please use responsibly and in accordance with ethical AI guidelines. Do not use for creating misleading, harmful, or deceptive content. Consider potential misuse scenarios and implement appropriate safeguards in your applications.