CoolFace
Modelpublic

AakashTestCheck/Wan2.2-Distill-Loras

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes39downloads
Model Card

๐ŸŽฌ Wan2.2 Distilled LoRA Models

โšก High-Performance Video Generation with 4-Step Inference Using LoRA

LoRA weights extracted from Wan2.2 distilled models - Flexible deployment with excellent generation quality

img_lightx2v


![๐Ÿค— HuggingFace](https://huggingface.co/lightx2v/Wan2.2-Distill-Loras) ![GitHub](https://github.com/ModelTC/LightX2V) ![License](LICENSE)


๐ŸŒŸ What's Special?

<table> <tr> <td width="50%">

โšก Flexible Deployment

  • โ€”Base Model + LoRA: Can be combined with base models
  • โ€”Offline Merging: Pre-merge LoRA into models
  • โ€”Online Loading: Dynamically load LoRA during inference
  • โ€”Multiple Frameworks: Supports LightX2V and ComfyUI

</td> <td width="50%">

๐ŸŽฏ Dual Noise Control

  • โ€”High Noise: More creative, diverse outputs
  • โ€”Low Noise: More faithful to input, stable outputs
  • โ€”Rank 64 LoRA, compact size

</td> </tr> <tr> <td width="50%">

๐Ÿ’พ Storage Efficient

  • โ€”Small LoRA Size: Significantly smaller than full models
  • โ€”Flexible Combination: Can be combined with quantization
  • โ€”Easy Sharing: Convenient for model weight distribution

</td> <td width="50%">

๐Ÿš€ 4-Step Inference

  • โ€”Ultra-Fast Generation: Generate high-quality videos in just 4 steps
  • โ€”Distillation Acceleration: Inherits advantages of distilled models
  • โ€”Quality Assurance: Maintains excellent generation quality

</td> </tr> </table>


๐Ÿ“ฆ LoRA Model Catalog

๐ŸŽฅ Available LoRA Models

Task TypeNoise LevelModel FileRankPurpose
I2VHigh Noisewan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors64More creative image-to-video
I2VLow Noisewan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors64More stable image-to-video
๐Ÿ’ก Note: - xxx in filenames represents version number or timestamp, please check HuggingFace repository for the latest version - These LoRAs must be used with Wan2.2 base models

๐Ÿš€ Usage

Prerequisites

Base Model: You need to prepare Wan2.2 I2V base model (original model without distillation)

Download base model (choose one):

Method 1: From LightX2V Official Repository (Recommended)

bash
# Download high noise base model
huggingface-cli download lightx2v/Wan2.2-Official-Models \
    wan2.2_i2v_A14b_high_noise_lightx2v.safetensors \
    --local-dir ./models/Wan2.2-Official-Models

# Download low noise base model
huggingface-cli download lightx2v/Wan2.2-Official-Models \
    wan2.2_i2v_A14b_low_noise_lightx2v.safetensors \
    --local-dir ./models/Wan2.2-Official-Models

Method 2: From Wan-AI Official Repository

bash
huggingface-cli download Wan-AI/Wan2.2-I2V-A14B \
    --local-dir ./models/Wan2.2-I2V-A14B
๐Ÿ’ก Note: lightx2v/Wan2.2-Official-Models provides separate high noise and low noise base models, download as needed

Method 1: LightX2V - Offline LoRA Merging (Recommended โญ)

Offline LoRA merging provides best performance and supports quantization simultaneously.

1.1 Download LoRA Models
bash
# Download both LoRAs (high noise and low noise)
# Note: xxx represents version number, please check HuggingFace for actual filename
huggingface-cli download lightx2v/Wan2.2-Distill-Loras \
    wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --local-dir ./loras/
1.2 Merge LoRA (Basic Merging)

Merge LoRA:

bash
cd LightX2V/tools/convert

# For directory-based base model: --source /path/to/Wan2.2-I2V-A14B/high_noise_model/
python converter.py \
    --source ./models/Wan2.2-Official-Models/wan2.2_i2v_A14b_high_noise_lightx2v.safetensors \
    --output /path/to/output/ \
    --output_ext .safetensors \
    --output_name wan2.2_i2v_A14b_high_noise_lightx2v_4step \
    --model_type wan_dit \
    --lora_path /path/to/loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --lora_strength 1.0 \
    --single_file

# For directory-based base model: --source /path/to/Wan2.2-I2V-A14B/low_noise_model/
python converter.py \
    --source ./models/Wan2.2-Official-Models/wan2.2_i2v_A14b_low_noise_lightx2v.safetensors \
    --output /path/to/output/ \
    --output_ext .safetensors \
    --output_name wan2.2_i2v_A14b_low_noise_lightx2v_4step \
    --model_type wan_dit \
    --lora_path /path/to/loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --lora_strength 1.0 \
    --single_file
1.3 Merge LoRA + Quantization (Recommended)

Merge LoRA + FP8 Quantization:

bash
cd LightX2V/tools/convert

# For directory-based base model: --source /path/to/Wan2.2-I2V-A14B/high_noise_model/
python converter.py \
    --source ./models/Wan2.2-Official-Models/wan2.2_i2v_A14b_high_noise_lightx2v.safetensors \
    --output /path/to/output/ \
    --output_ext .safetensors \
    --output_name wan2.2_i2v_A14b_high_noise_scaled_fp8_e4m3_lightx2v_4step \
    --model_type wan_dit \
    --lora_path /path/to/loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --lora_strength 1.0 \
    --quantized \
    --linear_dtype torch.float8_e4m3fn \
    --non_linear_dtype torch.bfloat16 \
    --single_file

# For directory-based base model: --source /path/to/Wan2.2-I2V-A14B/low_noise_model/
python converter.py \
    --source ./models/Wan2.2-Official-Models/wan2.2_i2v_A14b_low_noise_lightx2v.safetensors \
    --output /path/to/output/ \
    --output_ext .safetensors \
    --output_name wan2.2_i2v_A14b_low_noise_scaled_fp8_e4m3_lightx2v_4step \
    --model_type wan_dit \
    --lora_path /path/to/loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --lora_strength 1.0 \
    --quantized \
    --linear_dtype torch.float8_e4m3fn \
    --non_linear_dtype torch.bfloat16 \
    --single_file

Merge LoRA + ComfyUI FP8 Format:

bash
cd LightX2V/tools/convert

# For directory-based base model: --source /path/to/Wan2.2-I2V-A14B/high_noise_model/
python converter.py \
    --source ./models/Wan2.2-Official-Models/wan2.2_i2v_A14b_high_noise_lightx2v.safetensors \
    --output /path/to/output/ \
    --output_ext .safetensors \
    --output_name wan2.2_i2v_A14b_high_noise_scaled_fp8_e4m3_lightx2v_4step_comfyui \
    --model_type wan_dit \
    --lora_path /path/to/loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --lora_strength 1.0 \
    --quantized \
    --linear_dtype torch.float8_e4m3fn \
    --non_linear_dtype torch.bfloat16 \
    --single_file \
    --comfyui_mode

# For directory-based base model: --source /path/to/Wan2.2-I2V-A14B/low_noise_model/
python converter.py \
    --source ./models/Wan2.2-Official-Models/wan2.2_i2v_A14b_low_noise_lightx2v.safetensors \
    --output /path/to/output/ \
    --output_ext .safetensors \
    --output_name wan2.2_i2v_A14b_low_noise_scaled_fp8_e4m3_lightx2v_4step_comfyui \
    --model_type wan_dit \
    --lora_path /path/to/loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --lora_strength 1.0 \
    --quantized \
    --linear_dtype torch.float8_e4m3fn \
    --non_linear_dtype torch.bfloat16 \
    --single_file \
    --comfyui_mode
๐Ÿ“ Reference Documentation: For more merging options, see LightX2V Model Conversion Documentation

Method 2: LightX2V - Online LoRA Loading

Online LoRA loading requires no pre-merging, loads dynamically during inference, more flexible.

2.1 Download LoRA Models
bash
# Download both LoRAs (high noise and low noise)
# Note: xxx represents version number, please check HuggingFace for actual filename
huggingface-cli download lightx2v/Wan2.2-Distill-Loras \
    wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors \
    --local-dir ./loras/
2.2 Use Configuration File

Reference configuration file: wan_moe_i2v_distil_with_lora.json

LoRA configuration example in config file:

json
{
    "lora_configs": [
        {
            "name": "high_noise_model",
            "path": "/path/to/loras/wan2.2_i2v_A14b_high_noise_lora_rank64_lightx2v_4step_xxx.safetensors",
            "strength": 1.0
        },
        {
            "name": "low_noise_model",
            "path": "/path/to/loras/wan2.2_i2v_A14b_low_noise_lora_rank64_lightx2v_4step_xxx.safetensors",
            "strength": 1.0
        }
    ]
}
๐Ÿ’ก Tip: Replace xxx with actual version number (e.g., 1022). Check HuggingFace repository for the latest version
2.3 Run Inference

Using I2V as example:

bash
cd scripts
bash wan22/run_wan22_moe_i2v_distill.sh

Method 3: ComfyUI

Please refer to workflow

โš ๏ธ Important Notes

  1. 1.Base Model Requirement: These LoRAs must be used with Wan2.2-I2V-A14B base model, cannot be used standalone
  1. 1.Other Components: In addition to DIT model and LoRA, the following are also required at runtime:
  2. 2.T5 text encoder
  3. 3.CLIP vision encoder
  4. 4.VAE encoder/decoder
  5. 5.Tokenizer

Please refer to LightX2V Documentation for how to organize complete model directory

  1. 1.Inference Configuration: When using 4-step inference, configure correct denoising_step_list, recommended: [1000, 750, 500, 250]

๐Ÿ“š Related Resources

Documentation Links

Related Models

๐Ÿค Community & Support

  • โ€”GitHub Issues: https://github.com/ModelTC/LightX2V/issues
  • โ€”HuggingFace: https://huggingface.co/lightx2v/Wan2.2-Distill-Loras
  • โ€”LightX2V Homepage: https://github.com/ModelTC/LightX2V

If you find this project helpful, please give us a โญ on GitHub