Downloads · 30 days
0
wangkanai/wan21-fp8-720p
wan21-fp8-720p is a text-to-video model from wangkanai. Use it when you need video from a text prompt. 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 720p model in FP8 E4M3FN precision for high-resolution video generation from static images. The FP8 quantization provides approximately 50% memory savings c…
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
16.4 GB
Likes
2
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 720p model in FP8 E4M3FN precision for high-resolution video generation from static images. The FP8 quantization provides approximately 50% memory savings compared to FP16 while maintaining high-quality video output.
WAN 2.1 I2V 720p FP8 is a 14-billion parameter transformer-based image-to-video model optimized for generating 720p resolution videos from input images. The FP8 E4M3FN quantization format reduces model size and VRAM requirements while preserving generation quality, making it suitable for deployment on consumer GPUs with 24GB+ VRAM.
Key Capabilities:
Total Repository Size: ~16 GB
diffusion_models/wan/
└── wan21-i2v-720p-14b-fp8-e4m3fn.safetensors 16 GB
Diffusion Model:
diffusion_models/wan/wan21-i2v-720p-14b-fp8-e4m3fn.safetensorsfrom diffusers import DiffusionPipeline
import torch
from PIL import Image
# Load the WAN 2.1 I2V 720p FP8 model
pipe = DiffusionPipeline.from_single_file(
"E:/huggingface/wan21-fp8-720p/diffusion_models/wan/wan21-i2v-720p-14b-fp8-e4m3fn.safetensors",
torch_dtype=torch.float8_e4m3fn, # FP8 precision
use_safetensors=True
)
pipe.to("cuda")
# Load input image
input_image = Image.open("path/to/your/image.jpg")
# Generate 720p video from image
video_frames = pipe(
image=input_image,
prompt="smooth camera movement, cinematic lighting",
num_frames=24,
num_inference_steps=50,
guidance_scale=7.5,
height=720,
width=1280
).frames[0]
# Save video
from diffusers.utils import export_to_video
export_to_video(video_frames, "output_720p.mp4", fps=8)
# Enable memory optimizations for 20GB VRAM GPUs
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
# Optional: Enable gradient checkpointing (slower but uses less memory)
# pipe.unet.enable_gradient_checkpointing()
# Generate with reduced memory footprint
video_frames = pipe(
image=input_image,
prompt="your prompt here",
num_frames=16, # Reduce frames for lower memory usage
num_inference_steps=30, # Reduce steps for faster generation
guidance_scale=7.5
).frames[0]
This model is compatible with WAN 2.1 camera control LoRAs (sold/distributed separately):
# Load camera control LoRA (example - requires separate LoRA file)
pipe.load_lora_weights(
"path/to/wan21-camera-rotation-rank16-v1.safetensors"
)
# Generate with camera control
video_frames = pipe(
image=input_image,
prompt="rotating camera around the subject, 720p quality",
num_frames=24,
num_inference_steps=50,
guidance_scale=7.5
).frames[0]
Compatible LoRAs:
wan21-camera-rotation-rank16-v1.safetensors - Orbital camera movementswan21-camera-arcshot-rank16-v1.safetensors - Curved dolly movementswan21-camera-drone-rank16-v1.safetensors - Aerial perspectives| Specification | Value |
|---|---|
| Model Name | WAN 2.1 I2V 720p FP8 |
| Parameters | 14 billion |
| Architecture | Transformer-based I2V diffusion model |
| Precision | FP8 E4M3FN (8-bit floating point) |
| Resolution | 720p (1280x720) |
| Format | SafeTensors |
| Task | Image-to-Video Generation |
| Library | diffusers |
| Quantization | Post-training quantization (PTQ) |
| Quality Loss | <5% compared to FP16 |
# Python 3.8 or higher
python --version
# CUDA 11.8 or higher (for NVIDIA GPUs)
nvcc --version
# Install PyTorch with CUDA support (adjust CUDA version as needed)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
# Install diffusers and dependencies
pip install diffusers transformers accelerate safetensors
# Optional: Install xformers for memory-efficient attention
pip install xformers
import torch
print(f"PyTorch version: {torch.__version__}")
print(f"CUDA available: {torch.cuda.is_available()}")
print(f"CUDA version: {torch.version.cuda}")
print(f"GPU: {torch.cuda.get_device_name(0)}")
| Feature | 480p FP8 | 720p FP8 (This Model) |
|---|---|---|
| Resolution | 854x480 | 1280x720 |
| Model Size | 16 GB | 16 GB |
| VRAM Requirement | 18GB+ | 24GB+ |
| Quality | Good | High |
| Speed | Faster | Moderate |
| Use Case | Fast iteration, previews | Final output, production |
| Feature | FP8 (This Model) | FP16 |
|---|---|---|
| Model Size | 16 GB | 32 GB |
| VRAM Usage | ~18-22 GB | ~30-38 GB |
| Inference Speed | Faster (1.5-2x on RTX 40 series) | Baseline |
| Quality | >95% of FP16 | 100% (reference) |
| GPU Compatibility | RTX 40 series best, fallback on older | All NVIDIA GPUs |
Recommendation: Use FP8 for production deployment and efficient inference. Use FP16 only if you have 40GB+ VRAM and need maximum quality for research purposes.
This model is released under a custom WAN license. Please review the license terms before use:
License Name: wan-license License Type: other (proprietary/custom)
For detailed license information, refer to the official WAN model documentation.
If you use this model in your research or projects, please cite:
@software{wan21_i2v_720p_fp8,
title={WAN 2.1 Image-to-Video 720p FP8: High-Resolution Video Generation},
author={WAN Development Team},
year={2024},
note={FP8 quantized 14B parameter image-to-video diffusion model for 720p generation},
url={https://huggingface.co/models}
}
# Enable all memory optimizations
pipe.enable_attention_slicing(slice_size=1)
pipe.enable_vae_slicing()
pipe.enable_model_cpu_offload() # Offload to CPU when not in use
# Reduce generation parameters
num_frames = 16 # Instead of 24
num_inference_steps = 30 # Instead of 50
pip install xformers for optimized attentionFor questions, issues, or feedback about the WAN 2.1 I2V 720p FP8 model:
Version: v1.0 Last Updated: 2024-10 Model Type: Image-to-Video Diffusion Model Resolution: 720p (1280x720) Precision: FP8 E4M3FN Size: 16 GB
Note: This is a quantized model optimized for efficient deployment on consumer GPUs. For maximum quality requirements, consider the FP16 variant. Please use responsibly and follow ethical AI guidelines.