ModelTC/LightX2V

★ 2,818⑂ 0

Lightweight Image Video Action Generation Inference Framework

About ModelTC/LightX2V

ModelTC/LightX2V is an open-source project on GitHub, mainly written in Python. Lightweight Image Video Action Generation Inference Framework It currently holds 2,818 stars and 0 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Video Projects board and on the AI AI Video Projects list.

GitHub Repository Details

Repository ModelTC/LightX2V · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

⚡️ LightX2V:
Light Video Generation Inference Framework

https://github.com/ModelTC/LightX2V/blob/HEAD/logo

License Ask DeepWiki Doc Doc Docker

\ English | [中文 \]

--------------------------------------------------------------------------------

LightX2V is an advanced lightweight image/video generation inference framework engineered to deliver efficient, high-performance image/video synthesis solutions. This unified platform integrates multiple state-of-the-art image/video generation techniques, supporting diverse generation tasks including text-to-video (T2V), image-to-video (I2V), text-to-image (T2I), image-editing (I2I). X2V represents the transformation of different input modalities (X, such as text or images) into vision output (Vision).

🌐 Try it online now! Experience LightX2V without installation: LightX2V Studio — a free, lightweight AI video platform with Minimax H3, Wan 2.2, SekoTalk, Qwen-Image, SwiftVR, and more models and tasks.
🤗 HuggingFace Model Repository: LightX2V HuggingFace
📝 More content is available on our LightX2V Blog
🌟 Developer Newbie Guide: LightX2V Developer Quick Start Guide
👋 Join our WeChat group! LightX2V Robot WeChat ID: random42seed

🧾 Community Code Contribution Guidelines

Before submitting, please ensure that the code format conforms to the project standard. You can use the following execution command to ensure the consistency of project code format.

pip install ruff pre-commit
pre-commit run --all-files

Besides the contributions from the LightX2V team, we have received contributions from some community developers, including but not limited to:

:fire: Latest News

🏆 Performance Benchmarks (Updated on 2025.12.01)

📊 Cross-Framework Performance Comparison (H100)

| Framework | GPUs | Step Time | Speedup | |-----------|---------|---------|---------| | Diffusers | 1 | 9.77s/it | 1x | | xDiT | 1 | 8.93s/it | 1.1x | | FastVideo | 1 | 7.35s/it | 1.3x | | SGL-Diffusion | 1 | 6.13s/it | 1.6x | | LightX2V | 1 | 5.18s/it | 1.9x 🚀 | | FastVideo | 8 | 2.94s/it | 1x | | xDiT | 8 | 2.70s/it | 1.1x | | SGL-Diffusion | 8 | 1.19s/it | 2.5x | | LightX2V | 8 | 0.75s/it | 3.9x 🚀 |

📊 Cross-Framework Performance Comparison (RTX 4090D)

| Framework | GPUs | Step Time | Speedup | |-----------|---------|---------|---------| | Diffusers | 1 | 30.50s/it | 1x | | FastVideo | 1 | 22.66s/it | 1.3x | | xDiT | 1 | OOM | OOM | | SGL-Diffusion | 1 | OOM | OOM | | LightX2V | 1 | 20.26s/it | 1.5x 🚀 | | FastVideo | 8 | 15.48s/it | 1x | | xDiT | 8 | OOM | OOM | | SGL-Diffusion | 8 | OOM | OOM | | LightX2V | 8 | 4.75s/it | 3.3x 🚀 |

📊 LightX2V Performance Comparison

| Framework | GPU | Configuration | Step Time | Speedup | |-----------|-----|---------------|-----------|---------------| | LightX2V | H100 | 8 GPUs + cfg | 0.75s/it | 1x | | LightX2V | H100 | 8 GPUs + no cfg | 0.39s/it | 1.9x | | LightX2V | H100 | 8 GPUs + no cfg + fp8 | 0.35s/it | 2.1x 🚀 | | LightX2V | 4090D | 8 GPUs + cfg | 4.75s/it | 1x | | LightX2V | 4090D | 8 GPUs + no cfg | 3.13s/it | 1.5x | | LightX2V | 4090D | 8 GPUs + no cfg + fp8 | 2.35s/it | 2.0x 🚀 |

Note: All the above performance data were tested on Wan2.1-I2V-14B-480P(40 steps, 81 frames). In addition, we also provide 4-step distilled models on the HuggingFace page.

💡 Quick Start

For comprehensive usage instructions, please refer to our documentation: English Docs | 中文文档

We highly recommend using the Docker environment, as it is the simplest and fastest way to set up the environment. For details, please refer to the Quick Start section in the documentation.

Installation from Git

pip install -v git+https://github.com/ModelTC/LightX2V.git

Building from Source

git clone https://github.com/ModelTC/LightX2V.git
cd LightX2V
uv pip install -v . # pip install -v .

(Optional) Install Attention/Quantize Operators

For attention operators installation, please refer to our documentation: English Docs | 中文文档

Usage Example

See the MiniMax-H3 guide for checkpoint layout, local LoRA paths, CLI presets, and server/POST examples.

# examples/minimax_h3/minimax_h3_t2av_dmd.py
"""
MiniMax-H3 T2AV generation with the 4-step 768p distilled LoRA.
"""

from lightx2v import LightX2VPipeline

Initialize the MiniMax-H3 T2AV pipeline.

pipe = LightX2VPipeline( model_path="/path/to/MiniMax-H3", model_cls="minimax_h3", model_variant="fl2av", )

The DMD config uses the released 768p LoRA, 4 inference steps,

video_flow_shift=6, audio_flow_shift=3, and lora alpha=128.

pipe.create_generator( config_json="configs/minimax_h3/dmd/minimax_h3_bf16_4step.json" )

Generation parameters

seed = 42 prompt = "A cinematic fox walks through a snowy forest while soft wind and distant birds create an immersive winter soundscape." save_result_path = "outputs/minimax_h3_t2av_768p.mp4"

Generate video with synchronized audio.

pipe.generate( task="t2av", seed=seed, prompt=prompt, save_result_path=save_result_path, )

NVFP4 (quantization-aware 4-step) resources

💡 More Examples: For more usage examples including quantization, offloading, caching, and other advanced configurations, please refer to the examples directory.

🤖 Supported Model Ecosystem

Official Open-Source Models

Quantized and Distilled Models/LoRAs (🚀 Recommended: 4-step inference)

Lightweight Autoencoder Models (🚀 Recommended: fast inference & low memory usage)

Autoregressive Models

🔔 Follow our HuggingFace page for the latest model releases from our team.

💡 Refer to the Model Structure Documentation to quickly get started with LightX2V

🚀 Frontend Interfaces

We provide multiple frontend interface deployment options:

💡 Recommended Solutions:

🚀 Core Features

🎯 Ultimate Performance Optimization

💾 Resource-Efficient Deployment

🎨 Rich Feature Ecosystem

📚 Technical Documentation

📖 Method Tutorials

🛠️ Deployment Guides

🤝 Acknowledgments

We sincerely thank all the model repositories and research communities that inspired and promoted the development of LightX2V. This framework is built on the collective efforts of the open-source community. It includes but is not limited to:

GitHub Stars & Activity

2,818Stars
0Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars2,818
Forks0
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

calesthio / OpenMontage

Python★ 59,376⑂ 0
2

ATH-MaaS / Pixelle-Video

Python★ 28,141⑂ 0
3

KlingAIResearch / LivePortrait

Python★ 19,050⑂ 0
4

Wan-Video / Wan2.2

Python★ 17,520⑂ 0
5

Zulko / moviepy

Python★ 14,897⑂ 0
6

zai-org / CogVideo

Python★ 13,018⑂ 0
7

Tencent-Hunyuan / HunyuanVideo

Python★ 12,527⑂ 0
8

HKUDS / ViMax

Python★ 12,393⑂ 0

More AI Rankings