Skip to content

ModelTC/LightX2V

Repository files navigation

⚑️ LightX2V:
Lightweight Video Generation Inference Framework

logo

License Ask DeepWiki Doc Doc Papers Docker

[ English | δΈ­ζ–‡ ]


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

πŸ’‘ Quick Start

For comprehensive usage instructions, please refer to our documentation: English Docs | δΈ­ζ–‡ζ–‡ζ‘£

πŸ€– Supported Model Ecosystem

Official Open-Source Models

Quantized Models

Distilled Models (πŸš€ Recommended: 4-step inference)

Autoregressive Models

πŸš€ Core Features

🎯 Ultimate Performance Optimization

  • πŸ”₯ SOTA Inference Speed: Achieve ~20x acceleration via step distillation and system optimization (single GPU)
  • ⚑️ Revolutionary 4-Step Distillation: Compress original 40-50 step inference to just 4 steps without CFG requirements
  • πŸ› οΈ Advanced Operator Support: Integrated with cutting-edge operators including Sage Attention, Flash Attention, Radial Attention, q8-kernel, sgl-kernel, vllm

πŸ’Ύ Resource-Efficient Deployment

  • πŸ’‘ Breaking Hardware Barriers: Run 14B models for 480P/720P video generation with only 8GB VRAM + 16GB RAM
  • πŸ”§ Intelligent Parameter Offloading: Advanced disk-CPU-GPU three-tier offloading architecture with phase/block-level granular management
  • βš™οΈ Comprehensive Quantization: Support for w8a8-int8, w8a8-fp8, w4a4-nvfp4 and other quantization strategies

🎨 Rich Feature Ecosystem

  • πŸ“ˆ Smart Feature Caching: Intelligent caching mechanisms to eliminate redundant computations
  • πŸ”„ Parallel Inference: Multi-GPU parallel processing for enhanced performance
  • πŸ“± Flexible Deployment Options: Support for Gradio, service deployment, ComfyUI and other deployment methods
  • πŸŽ›οΈ Dynamic Resolution Inference: Adaptive resolution adjustment for optimal generation quality

πŸ† Performance Benchmarks

For detailed performance metrics and comparisons, please refer to our benchmark documentation.

Detailed Service Deployment Guide β†’

πŸ“š Technical Documentation

πŸ“– Method Tutorials

πŸ› οΈ Deployment Guides

🧾 Contributing Guidelines

We maintain code quality through automated pre-commit hooks to ensure consistent formatting across the project.

Tip

Setup Instructions:

  1. Install required dependencies:
pip install ruff pre-commit
  1. Run before committing:
pre-commit run --all-files

We appreciate your contributions to making LightX2V better!

🀝 Acknowledgments

We extend our gratitude to all the model repositories and research communities that inspired and contributed to the development of LightX2V. This framework builds upon the collective efforts of the open-source community.

🌟 Star History

Star History Chart

✏️ Citation

If you find LightX2V useful in your research, please consider citing our work:

@misc{lightx2v,
 author = {LightX2V Contributors},
 title = {LightX2V: Light Video Generation Inference Framework},
 year = {2025},
 publisher = {GitHub},
 journal = {GitHub repository},
 howpublished = {\url{https://github.com/ModelTC/lightx2v}},
}

πŸ“ž Contact & Support

For questions, suggestions, or support, please feel free to reach out through:


Built with ❀️ by the LightX2V team