Downloads ยท 30 days
0
wangkanai/wan21-lightx2v-t2v-14b-720p
wan21-lightx2v-t2v-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.
Complete collection of LoRA (Low-Rank Adaptation) adapters for the LightX2V 14B text-to-video generation model at 720p resolution. This repository contains all 7 rank variants (4, 8, 16, 32, 64, 128, 256) enabling fleโฆ
Downloads ยท 30 days
0
Access
Public
Updated Oct 14, 2025
Repo size
5 GB
Likes
1
Public
Click a slice to open those files.
.safetensors5 GB ยท 100%
From the Hugging Face model README
Complete collection of LoRA (Low-Rank Adaptation) adapters for the LightX2V 14B text-to-video generation model at 720p resolution. This repository contains all 7 rank variants (4, 8, 16, 32, 64, 128, 256) enabling flexible quality/performance trade-offs through CFG (Classifier-Free Guidance) step distillation.
These LoRA adapters enable efficient text-to-video generation at 720p resolution (1280x720) using the powerful LightX2V T2V 14B base model. Through CFG step distillation, these adapters achieve 2-3x faster generation while maintaining high quality output. The complete rank collection (4-256) provides flexibility to optimize for speed, quality, or VRAM constraints.
Key Features:
This repository contains 7 LoRA adapter models totaling ~4.7GB:
wan21-lightx2v-t2v-14b-720p/
โโโ loras/
โโโ wan/
โโโ wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank4-bf16.safetensors (45MB)
โโโ 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)
โโโ wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank256-bf16.safetensors (2.4GB)
File Sizes:
from diffusers import DiffusionPipeline
import torch
# Load base LightX2V T2V 14B 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/speed)
pipe.load_lora_weights(
"E:/huggingface/wan21-lightx2v-t2v-14b-720p/loras/wan/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank32-bf16.safetensors"
)
# Generate 720p video from text prompt
prompt = "A serene mountain landscape at sunset with golden light, cinematic camera movement, 720p HD quality"
video = pipe(
prompt=prompt,
num_inference_steps=20, # Reduced steps thanks to distillation
guidance_scale=7.5,
num_frames=24, # ~3 seconds at 8 fps
height=720,
width=1280
).frames
# Export video file
from diffusers.utils import export_to_video
export_to_video(video, "output_720p.mp4", fps=8)
import os
# Base path to LoRA adapters
LORA_PATH = "E:/huggingface/wan21-lightx2v-t2v-14b-720p/loras/wan"
# Select rank based on your hardware and quality needs
# Options: 4, 8, 16, 32, 64, 128, 256
rank = 32 # Recommended starting point
lora_file = f"{LORA_PATH}/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank{rank}-bf16.safetensors"
pipe.load_lora_weights(lora_file)
# Generate video
video = pipe(
prompt="Aerial drone shot rising above misty forest at sunrise, cinematic 720p quality",
num_inference_steps=20,
num_frames=24
).frames
export_to_video(video, f"output_rank{rank}.mp4", fps=8)
# Compare different ranks to find optimal balance for your use case
ranks_to_test = [16, 32, 64, 128]
for rank in ranks_to_test:
print(f"Testing rank {rank}...")
lora_file = f"{LORA_PATH}/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank{rank}-bf16.safetensors"
pipe.load_lora_weights(lora_file)
video = pipe(
prompt="Lightning storm over desert landscape, dramatic clouds, cinematic 720p",
num_inference_steps=20,
num_frames=24
).frames
export_to_video(video, f"comparison_rank{rank}.mp4", fps=8)
# For systems with limited VRAM
pipe = DiffusionPipeline.from_pretrained(
"lightx2v/lightx2v-t2v-14b",
torch_dtype=torch.bfloat16,
)
# Enable CPU offloading to reduce VRAM usage
pipe.enable_model_cpu_offload()
# Use lower rank for minimal VRAM
pipe.load_lora_weights(
"E:/huggingface/wan21-lightx2v-t2v-14b-720p/loras/wan/wan21-lightx2v-t2v-14b-cfg-step-distill-v2-rank16-bf16.safetensors"
)
# Generate with reduced frames/resolution if needed
video = pipe(
prompt="City street at night with neon lights, 720p quality",
num_frames=16, # Reduced from 24
height=720,
width=1280
).frames
Copy LoRA to ComfyUI:
ComfyUI/models/loras/wan/
โโโ wan21-lightx2v-t2v-rank32-bf16.safetensors
Workflow Setup:
wan21-lightx2v-t2v-rank32-bf16.safetensorsRecommended Parameters:
| Specification | Details |
|---|---|
| Model Type | LoRA Adapters for Video Diffusion |
| Architecture | Low-Rank Adaptation (LoRA) |
| Base Model | LightX2V T2V 14B |
| Training Method | CFG Step Distillation v2 |
| Precision | BF16 (Brain Floating Point 16) |
| Resolution | 720p (1280x720) native |
| Rank Variants | 4, 8, 16, 32, 64, 128, 256 (complete set) |
| Parameter Count | 4M to 256M (varies by rank) |
| File Format | .safetensors (secure tensor storage) |
| Total Size | ~4.7GB (all 7 adapters) |
| Pipeline | Text-to-Video (T2V) |
| Framework | Diffusers, ComfyUI compatible |
| Rank | Size | Quality | Speed | VRAM | Best For |
|---|---|---|---|---|---|
| 4 | 45MB | Basic | Fastest | 14GB | Prototyping, minimal hardware |
| 8 | 82MB | Good | Very Fast | 14GB | Quick testing, low VRAM |
| 16 | 156MB | Better | Fast | 15GB | Balanced efficiency |
| 32 โญ | 305MB | High | Moderate | 16GB | Production (recommended) |
| 64 | 602MB | Very High | Slower | 18GB | Quality-focused work |
| 128 | 1.2GB | Excellent | Slow | 20GB | High-fidelity output |
| 256 | 2.4GB | Maximum | Slowest | 24GB | Research, maximum quality |
Recommendation: Start with rank-32 for optimal quality/performance balance. Scale up (64/128/256) for maximum quality or down (16/8/4) for speed and resource constraints.
# 1. Use lower ranks for faster generation
pipe.load_lora_weights("...rank16-bf16.safetensors")
# 2. Reduce inference steps (distilled model enables this)
video = pipe(prompt, num_inference_steps=15) # Instead of 20-25
# 3. Enable torch.compile() for PyTorch 2.0+
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
# 4. Reduce frame count for faster iteration
video = pipe(prompt, num_frames=16) # ~2 seconds instead of 3
# 5. Use mixed precision
torch.set_float32_matmul_precision('high')
# 1. Use higher ranks for maximum quality
pipe.load_lora_weights("...rank128-bf16.safetensors")
# 2. Increase inference steps
video = pipe(prompt, num_inference_steps=25)
# 3. Tune CFG scale for your prompt
video = pipe(prompt, guidance_scale=7.5) # 6.5-8.0 range
# 4. Add quality keywords to prompt
prompt = "A majestic eagle soaring, cinematic camera movement, 720p HD quality, professional cinematography"
# 5. Generate multiple candidates and select best
for i in range(3):
video = pipe(prompt).frames
export_to_video(video, f"candidate_{i}.mp4", fps=8)
# 1. Enable CPU offloading
pipe.enable_model_cpu_offload()
# 2. Use sequential CPU offload for extreme constraints
pipe.enable_sequential_cpu_offload()
# 3. Lower rank selection
pipe.load_lora_weights("...rank8-bf16.safetensors")
# 4. Clear cache between generations
torch.cuda.empty_cache()
# 5. Use attention slicing
pipe.enable_attention_slicing()
Essential Elements:
"A majestic eagle soaring through mountain valleys at golden hour, cinematic camera movement following the bird, 720p HD quality, professional wildlife cinematography"
"City street time-lapse with traffic flowing, neon lights reflecting on wet pavement, camera slowly panning right, high detail, 720p resolution, urban cinematography"
"Underwater coral reef with tropical fish swimming, gentle camera movement, clear blue water, sunlight filtering from above, smooth motion, cinematic 720p quality"
"Drone shot rising above a misty forest at sunrise, rays of light breaking through trees, smooth camera ascent, aerial cinematography, HD quality 720p"
"Lightning storm over desert landscape, dramatic clouds, time-lapse motion, cinematic wide shot, 720p quality, epic natural phenomenon"
"Cherry blossom petals falling in slow motion, gentle breeze, soft pink lighting, camera tracking downward, beautiful spring scene, 720p HD quality"
Solutions:
# 1. Use lower rank adapter
pipe.load_lora_weights("...rank16-bf16.safetensors") # or rank8, rank4
# 2. Enable CPU offloading
pipe.enable_model_cpu_offload()
# 3. Reduce frame count
video = pipe(prompt, num_frames=16) # Instead of 24
# 4. Enable attention slicing
pipe.enable_attention_slicing()
# 5. Use sequential CPU offload (extreme cases)
pipe.enable_sequential_cpu_offload()
# 6. Clear CUDA cache between generations
import torch
torch.cuda.empty_cache()
Diagnose and Fix:
Issue: Blurry or low-detail output
Issue: Inconsistent motion or artifacts
Issue: Poor prompt adherence
Issue: Wrong resolution output
Optimize Performance:
# Use lower ranks
pipe.load_lora_weights("...rank4-bf16.safetensors") # Fastest
# Reduce steps (distillation enables this)
video = pipe(prompt, num_inference_steps=15)
# Fewer frames
video = pipe(prompt, num_frames=16)
# Enable torch.compile (PyTorch 2.0+)
pipe.unet = torch.compile(pipe.unet)
# Use xformers memory efficient attention
pipe.enable_xformers_memory_efficient_attention()
Common Issues:
# Issue: "File not found"
# Solution: Use absolute paths with forward slashes or raw strings
lora_path = r"E:\huggingface\wan21-lightx2v-t2v-14b-720p\loras\wan\..."
# or
lora_path = "E:/huggingface/wan21-lightx2v-t2v-14b-720p/loras/wan/..."
# Issue: "BF16 not supported"
# Solution: Check GPU architecture (requires Ampere or newer)
# Fallback to FP16 if needed:
pipe = DiffusionPipeline.from_pretrained(
"lightx2v/lightx2v-t2v-14b",
torch_dtype=torch.float16 # Instead of bfloat16
)
# Issue: "CUDA out of memory on load"
# Solution: Use CPU offloading before loading
pipe.enable_model_cpu_offload()
These LoRA adapters follow the license terms of the LightX2V base model. Please review the base model license for usage restrictions:
Important: Verify license compliance for your intended use case (commercial, research, etc.) with the base model license.
If you use these LoRA adapters in your research or projects, please cite:
@software{wan21_lightx2v_t2v_lora_720p,
title={WAN LightX2V T2V LoRA Adapters for 720p Video Generation},
author={WAN Team},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/wan21-lightx2v-t2v-14b-720p}},
note={CFG Step Distillation LoRA adapters (ranks 4-256) for LightX2V T2V 14B}
}
@software{lightx2v_base_model,
title={LightX2V: Text-to-Video Generation Model},
author={LightX2V Team},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/lightx2v}}
}
For issues or questions:
Complete 720p T2V LoRA Collection:
Key Advantages:
Last Updated: October 2024 Repository Version: v1.1 Model Version: CFG Step Distillation v2 Total Repository Size: ~4.7GB (7 adapters) Recommended Rank: 32 (305MB, 16GB VRAM) Primary Use Case: Text-to-video generation at 720p with flexible quality/performance trade-offs