Downloads · 30 days
0
wangkanai/wan21-lightx2v-i2v-14b-720p
wan21-lightx2v-i2v-14b-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.
High-quality LoRA (Low-Rank Adaptation) adapters for the LightX2V 14B text-to-video generation model at 720p resolution. These adapters enable efficient fine-tuning and accelerated inference through CFG (Classifier-Fr…
Downloads · 30 days
0
Access
Public
Updated Oct 28, 2025
Repo size
2.5 GB
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 100%
From the Hugging Face model README
High-quality LoRA (Low-Rank Adaptation) adapters for the LightX2V 14B text-to-video generation model at 720p resolution. These adapters enable efficient fine-tuning and accelerated inference through CFG (Classifier-Free Guidance) step distillation.
This repository contains 5 CFG step-distilled LoRA adapters designed to accelerate text-to-video generation while maintaining high quality output at 720p resolution. The adapters are available in multiple ranks (8, 16, 32, 64, 128) to accommodate different hardware configurations and quality requirements.
wan21-lightx2v-i2v-14b-720p/
└── loras/
└── wan/
├── wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank8-bf16.safetensors (82MB)
├── wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank16-bf16.safetensors (156MB)
├── wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank32-bf16.safetensors (305MB)
├── wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank64-bf16.safetensors (602MB)
└── wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank128-bf16.safetensors (1.2GB)
Total Repository Size: ~2.3GB (all 5 adapters combined)
| Filename | Rank | Size | Parameters | Quality Level |
|---|---|---|---|---|
| wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank8-bf16.safetensors | 8 | 82MB | ~8M | Good |
| wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank16-bf16.safetensors | 16 | 156MB | ~16M | Better |
| wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank32-bf16.safetensors | 32 | 305MB | ~32M | High |
| wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank64-bf16.safetensors | 64 | 602MB | ~64M | Very High |
| wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank128-bf16.safetensors | 128 | 1.2GB | ~128M | Excellent |
| Rank | Base Model | LoRA | Total VRAM | Headroom |
|---|---|---|---|---|
| 8 | ~10GB | ~1GB | ~11GB | RTX 3060 12GB |
| 16 | ~10GB | ~1GB | ~11GB | RTX 3060 12GB |
| 32 | ~10GB | ~2GB | ~12GB | RTX 3090 24GB |
| 64 | ~10GB | ~2GB | ~12GB | RTX 3090 24GB |
| 128 | ~10GB | ~3GB | ~13GB | RTX 4090 24GB |
from diffusers import DiffusionPipeline
import torch
# Load base T2V model
pipe = DiffusionPipeline.from_pretrained(
"lightx2v/lightx2v-t2v-14b",
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Load LoRA adapter (rank-32 recommended for balanced quality/performance)
pipe.load_lora_weights(
"E:/huggingface/wan21-lightx2v-i2v-14b-720p/loras/wan/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank32-bf16.safetensors"
)
# Generate video from text prompt
prompt = "A serene mountain landscape at sunset with golden light, cinematic camera movement, 720p quality"
video = pipe(
prompt=prompt,
num_inference_steps=20, # Reduced steps thanks to CFG distillation
guidance_scale=7.5,
num_frames=24,
height=720,
width=1280
).frames
# Save video to file
from diffusers.utils import export_to_video
export_to_video(video, "output_t2v_720p.mp4", fps=8)
import os
# Define base path to LoRA adapters
LORA_PATH = "E:/huggingface/wan21-lightx2v-i2v-14b-720p/loras/wan"
# Select rank based on your hardware:
# - Rank 8-16: Budget GPUs (12GB VRAM)
# - Rank 32: Recommended for most users (16-24GB VRAM)
# - Rank 64-128: High-end GPUs for maximum quality (24GB+ VRAM)
rank = 32
lora_file = f"{LORA_PATH}/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank{rank}-bf16.safetensors"
pipe.load_lora_weights(lora_file)
# Generate with optimized settings
video = pipe(
prompt="Aerial drone shot rising above a misty forest at sunrise, cinematic",
num_inference_steps=20,
guidance_scale=7.5,
num_frames=24,
height=720,
width=1280
).frames
from diffusers import DiffusionPipeline
import torch
# Load with memory optimizations
pipe = DiffusionPipeline.from_pretrained(
"lightx2v/lightx2v-t2v-14b",
torch_dtype=torch.bfloat16,
variant="bf16"
)
# Enable CPU offloading for lower VRAM usage
pipe.enable_model_cpu_offload()
# Enable attention slicing to reduce VRAM further
pipe.enable_attention_slicing()
# Load lower rank for constrained environments
pipe.load_lora_weights(
"E:/huggingface/wan21-lightx2v-i2v-14b-720p/loras/wan/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank16-bf16.safetensors"
)
# Generate with memory-efficient settings
video = pipe(
prompt="City street at night with neon lights reflecting on wet pavement",
num_inference_steps=15, # Fewer steps = less memory
guidance_scale=7.0,
num_frames=16, # Reduced frames for lower memory
height=720,
width=1280
).frames
Copy LoRA file to your ComfyUI loras directory:
ComfyUI/models/loras/wan/
└── wan21-lightx2v-t2v-rank32-bf16.safetensors
Workflow nodes setup:
Recommended parameters:
| Property | Value |
|---|---|
| Model Type | LoRA Adapters for Video Diffusion |
| Base Model | LightX2V T2V 14B |
| Architecture | Low-Rank Adaptation (LoRA) |
| Training Method | CFG Step Distillation v2 |
| Precision | BF16 (Brain Floating Point 16) |
| Format | SafeTensors |
| Resolution | 720p (1280x720) |
| Parameter Count | 8M - 128M (rank-dependent) |
| Inference Steps | 15-30 (vs 50-100 baseline) |
| Speedup | 2-3x faster than non-distilled |
| Languages | English prompts (primary) |
| Rank | Parameters | File Size | Quality | Speed | VRAM | Best For |
|---|---|---|---|---|---|---|
| 8 | ~8M | 82MB | Good | Very Fast | Low | Quick testing, prototyping |
| 16 | ~16M | 156MB | Better | Fast | Low | Budget GPUs, iteration |
| 32 | ~32M | 305MB | High | Moderate | Medium | Recommended: Production use |
| 64 | ~64M | 602MB | Very High | Slower | Higher | Quality-focused work |
| 128 | ~128M | 1.2GB | Excellent | Slow | High | Maximum quality output |
Recommendation: Start with rank-32 for optimal quality/performance balance. Scale up to 64/128 for maximum quality, or down to 16/8 for faster iteration on constrained hardware.
enable_model_cpu_offload() for memoryenable_attention_slicing() reduces VRAM peaks# Aggressive memory optimization
pipe.enable_model_cpu_offload()
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
# Use lower rank
pipe.load_lora_weights("...rank16-bf16.safetensors")
# Reduce batch size and frames
video = pipe(prompt, num_frames=16, height=720, width=1280)
| Steps | Frames | Time | Quality | Use Case |
|---|---|---|---|---|
| 15 | 24 | ~22s | Good | Rapid iteration |
| 20 | 24 | ~28s | High | Production (recommended) |
| 25 | 24 | ~35s | Excellent | Quality-focused |
| 30 | 24 | ~42s | Maximum | Final output |
Benchmarks on RTX 4090, rank-32, 24 frames, 720p resolution. Actual times vary by prompt complexity and system configuration.
Effective Prompt Template:
[Subject/Scene] + [Action/Movement] + [Camera Work] + [Lighting/Atmosphere] + [Quality Tags]
"A majestic eagle soaring through mountain valleys at golden hour, slow motion flight, camera tracking from side, cinematic lighting, 720p HD quality, professional cinematography"
"City street time-lapse with traffic flowing, neon lights reflecting on wet pavement, camera slowly panning right, night scene, high detail, 720p resolution"
"Underwater coral reef with tropical fish swimming, gentle camera movement through scene, clear blue water, sunlight filtering from above, cinematic 720p quality"
"Drone shot rising above a misty forest at sunrise, rays of light breaking through trees, smooth camera ascent from ground level, atmospheric fog, HD quality"
"Close-up of coffee being poured into white cup, slow motion, steam rising, shallow depth of field, warm morning lighting, cinematic 720p"
Solution 1: Use Lower Rank
# Switch from rank-64 to rank-32 or rank-16
pipe.load_lora_weights("...rank16-bf16.safetensors")
Solution 2: Enable CPU Offloading
pipe.enable_model_cpu_offload()
pipe.enable_attention_slicing()
pipe.enable_vae_slicing()
Solution 3: Reduce Frames/Resolution
# Generate shorter clips
video = pipe(prompt, num_frames=16) # Instead of 24
# Temporarily test with 480p
video = pipe(prompt, height=480, width=854)
Solution 4: Close Other Applications
nvidia-smiIssue: Blurry or Low-Detail Output
Issue: Inconsistent Motion
Issue: Poor Prompt Adherence
Optimization Steps:
pipe.unet = torch.compile(pipe.unet)Missing Dependencies
# Install PyTorch with CUDA 12.1
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
# Install required libraries
pip install diffusers transformers accelerate safetensors xformers
# Verify installation
python -c "import torch; print(torch.cuda.is_available())"
BF16 Not Supported
These LoRA adapters are designed for use with the LightX2V T2V 14B base model. Please ensure compliance with:
Important: Always review and comply with the LightX2V base model license before deployment.
If you use these LoRA adapters in your research or projects, please cite:
@misc{wan21-lightx2v-lora-720p,
title={WAN LightX2V T2V LoRA Adapters (720p)},
author={WAN Team},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/wan21-lightx2v-i2v-14b-720p}}
}
@misc{lightx2v-t2v-14b,
title={LightX2V T2V 14B: Text-to-Video Diffusion Model},
author={LightX2V Team},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/lightx2v/lightx2v-t2v-14b}}
}
image-generation with video-generation, added lora and diffusion tagsLast Updated: October 2025 Repository Version: v1.5 Total Size: ~2.3GB (5 adapters: ranks 8, 16, 32, 64, 128) Primary Use Case: Text-to-video generation at 720p resolution with accelerated inference