Downloads · 30 days
1K
11% of all-time downloads
wangkanai/wan22-fp8-i2v-gguf
wan22-fp8-i2v-gguf 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.
High-quality quantized GGUF versions of the Wan2.2 Image-to-Video A14B model for efficient local inference. This repository contains multiple quantization levels optimized for different hardware configurations and qua…
Downloads · 30 days
1K
11% of all-time downloads
All-time downloads
9.5K
Public
Repo size
32.9 GB
Likes
6
Public
Click a slice to open those files.
.gguf32.9 GB · 100%
From the Hugging Face model README
High-quality quantized GGUF versions of the Wan2.2 Image-to-Video A14B model for efficient local inference. This repository contains multiple quantization levels optimized for different hardware configurations and quality requirements.
Wan2.2-I2V-A14B is a state-of-the-art image-to-video generative model built with a Mixture-of-Experts (MoE) architecture. The model converts static images into dynamic videos with support for 480P and 720P resolution outputs. These GGUF quantized versions enable deployment on consumer-grade hardware while maintaining high visual quality.
wan22-fp8-gguf/
└── diffusion_models/
└── wan/
├── wan22-i2v-a14b-high.gguf (15 GB) - FP16 precision, highest quality
├── wan22-i2v-a14b-high-q4-k-s.gguf (8.2 GB) - Q4_K_S quantization, balanced quality
└── wan22-i2v-a14b-low-q4-k-s.gguf (8.2 GB) - Q4_K_S quantization, low-noise expert
Total Repository Size: ~31 GB
| File | Size | Precision | Description | Use Case |
|---|---|---|---|---|
wan22-i2v-a14b-high.gguf | 15 GB | FP16 | Highest quality, full precision | High-end GPUs with 24GB+ VRAM |
wan22-i2v-a14b-high-q4-k-s.gguf | 8.2 GB | Q4_K_S | Balanced quality/efficiency | Mid-range GPUs with 12-16GB VRAM |
wan22-i2v-a14b-low-q4-k-s.gguf | 8.2 GB | Q4_K_S | Low-noise expert model | Specific inference stages |
| Model Variant | Minimum VRAM | Recommended VRAM | Resolution |
|---|---|---|---|
| FP16 High (15GB) | 16GB | 24GB | 480P-720P |
| Q4_K_S (8.2GB) | 12GB | 16GB | 480P-720P |
import torch
from diffusers import WanPipeline
# Load the GGUF quantized model
pipe = WanPipeline.from_single_file(
"E:/huggingface/wan22-fp8-gguf/diffusion_models/wan/wan22-i2v-a14b-high-q4-k-s.gguf",
torch_dtype=torch.float16,
)
pipe.to("cuda")
# Load input image
from PIL import Image
input_image = Image.open("input_image.jpg")
# Generate video without text prompt
video_frames = pipe(
image=input_image,
height=720,
width=1280,
num_frames=16,
num_inference_steps=50,
).frames
# Save output video
from diffusers.utils import export_to_video
export_to_video(video_frames[0], "output_video.mp4", fps=8)
import torch
from diffusers import WanPipeline
# Load the high-quality FP16 model
pipe = WanPipeline.from_single_file(
"E:/huggingface/wan22-fp8-gguf/diffusion_models/wan/wan22-i2v-a14b-high.gguf",
torch_dtype=torch.float16,
)
pipe.to("cuda")
pipe.enable_model_cpu_offload() # Enable CPU offload for VRAM optimization
# Load input image
from PIL import Image
input_image = Image.open("portrait.jpg")
# Generate video with text guidance
prompt = "A person smiling and waving at the camera, natural movement"
video_frames = pipe(
image=input_image,
prompt=prompt,
height=720,
width=1280,
num_frames=24,
num_inference_steps=50,
guidance_scale=7.5,
).frames
# Save output
from diffusers.utils import export_to_video
export_to_video(video_frames[0], "guided_output.mp4", fps=12)
import torch
from diffusers import WanPipeline
from accelerate import PartialState
# Initialize distributed state
distributed_state = PartialState()
# Load model with device mapping
pipe = WanPipeline.from_single_file(
"E:/huggingface/wan22-fp8-gguf/diffusion_models/wan/wan22-i2v-a14b-high.gguf",
torch_dtype=torch.float16,
device_map="balanced", # Automatically distribute across GPUs
)
# Generate video
from PIL import Image
input_image = Image.open("scene.jpg")
with distributed_state.split_between_processes([input_image]) as prompt_batch:
video_frames = pipe(
image=prompt_batch[0],
height=720,
width=1280,
num_frames=32,
num_inference_steps=50,
).frames
# Save results
from diffusers.utils import export_to_video
export_to_video(video_frames[0], f"output_gpu_{distributed_state.process_index}.mp4", fps=12)
import torch
from diffusers import WanPipeline
# Load quantized model with aggressive memory optimization
pipe = WanPipeline.from_single_file(
"E:/huggingface/wan22-fp8-gguf/diffusion_models/wan/wan22-i2v-a14b-high-q4-k-s.gguf",
torch_dtype=torch.float16,
low_cpu_mem_usage=True,
)
pipe.to("cuda")
# Enable all memory optimizations
pipe.enable_model_cpu_offload()
pipe.enable_vae_slicing()
pipe.enable_vae_tiling()
# Generate with reduced parameters
from PIL import Image
input_image = Image.open("input.jpg").resize((512, 512)) # Lower resolution
video_frames = pipe(
image=input_image,
height=480,
width=640,
num_frames=16, # Fewer frames
num_inference_steps=30, # Fewer steps
).frames
# Save output
from diffusers.utils import export_to_video
export_to_video(video_frames[0], "optimized_output.mp4", fps=8)
Choose the Right Model Variant
Enable Memory Optimizations
pipe.enable_model_cpu_offload() # Offload inactive components to CPU
pipe.enable_vae_slicing() # Process VAE in slices
pipe.enable_vae_tiling() # Tile-based VAE processing
Adjust Inference Parameters
Batch Processing
torch.cuda.empty_cache()Multi-GPU Strategy
device_map="balanced" for automatic distribution| Configuration | VRAM | Speed | Quality | Best For |
|---|---|---|---|---|
| FP16 + 50 steps + 720P | 20GB | 1x | 100% | Final production |
| Q4_K_S + 50 steps + 720P | 14GB | 1.5x | 95% | High-quality preview |
| Q4_K_S + 30 steps + 480P | 10GB | 3x | 85% | Rapid iteration |
| Q4_K_S + 20 steps + 480P | 8GB | 4x | 75% | Low-VRAM testing |
Out of Memory Errors:
Slow Generation:
torch.compile() for faster inference (PyTorch 2.0+)Quality Issues:
This model is released under a custom license. Please refer to the official Wan2.2 license for specific terms and conditions.
Users should:
If you use Wan2.2 models in your research or projects, please cite:
@misc{wan2024wan22,
title={Wan2.2: Open and Advanced Large-Scale Video Generative Models},
author={Wan AI Team},
year={2024},
publisher={Hugging Face},
howpublished={\\url{https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B}},
}
Explore other Wan2.2 models:
Repository Maintainer: Local Model Collection Last Updated: 2025-10-28 Model Format: GGUF (Quantized) Base Model Version: Wan2.2-I2V-A14B
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]