LightX2V

ModelTCApache-2.0活跃维护

轻量级图像与视频生成推理框架,支持 Wan、Hunyuan、LTX 等主流视频模型及自回归扩散模型,降低多模态生成模型的部署与推理门槛。

Lightweight Image Video Action Generation Inference Framework

0.6.1发布于 2026-11-09 08:50 UTC2,997star +3 / 7 天307fork同步于 2026-11-10 05:41 UTC

怎么上手

由 README 提炼,执行前请确认
pip install -v git+https://github.com/ModelTC/LightX2V.git
硬件要求按 README 说明

README 未给出统一显存要求,各模型脚本单独说明;支持 RTX 5090、H100/H200 等 GPU,并提到 T-head PPU 和 iluvatar 部署;另有 MacBook 本地推理 APP。

支持 ROCm / AMD昇腾 / Ascend多卡 / 张量并行
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

轻量级图像视频生成推理框架,统一支持文生视频、图生视频、文生图和图像编辑

轻量级图像与视频生成推理框架,支持 Wan、Hunyuan、LTX 等主流视频模型及自回归扩散模型,降低多模态生成模型的部署与推理门槛。

核心能力

  • 统一支持 T2V、I2V、T2I、I2I 多种生成任务
  • 集成 Wan、LTX、HunyuanVideo、MiniMax-H3 等主流模型
  • 提供量化权重、蒸馏模型和轻量 VAE 加速推理
  • 内置 HTTP 服务脚本,默认 8000 端口提交异步请求
  • 支持 RTX 5090、H100/H200 等实时推理配置

容易踩的坑

需按各模型指南单独下载权重并配置模型路径;注意力与量化算子需参照文档额外安装;服务默认占用 8000 端口,切换示例前要先停掉已运行的服务。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

3 个版本0.6.1
  1. 0.6.1最新正式版2026-11-09 · 2026-11-09 08:50 UTC

    这个版本没有写更新说明。

  2. 0.6.02026-10-12 · 2026-10-12 09:13 UTC
    查看更新说明

    LightX2V 0.6.0

  3. 0.5.02026-09-10 · 2026-09-10 02:36 UTC
    查看更新说明

    LightX2V 0.5.0

    LightX2V provides efficient inference for a variety of video generation models, supporting text-to-video, image-to-video, and text-to-audio-video generation.

    Thanks to all contributors and community members for your support!

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    License 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).

    Quick Start · Models · Documentation & Deployment

    🌐 Try the LightX2V-powered AI avatar and multimodal content production platform online: LightX2V Studio

    🍎 MacBook local inference app: LightX2V APP

    🤗 HuggingFace Model Repository: LightX2V HuggingFace

    🌟 Developer Quick Start: LightX2V Developer Quick Start Guide

    📝 Technical Blog: LightX2V Blog

    👋 Join our WeChat group! LightX2V Robot WeChat ID: Jo-1212liz

    🧾 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
    

    We thank the following community developers for their contributions to LightX2V:

    zhtshr · triple-Mu · vivienfanghuagood · yeahdongcn · kikidouloveme79 · ziyanxzy · Tyr0727 · hufangjian2017 · Fatemanx · qiuxin2012

    :fire: Latest News

    • August 7, 2026: 🚀 We added support for synchronized video and audio generation with MiniMax-H3 and released a Prompt Rewriter LoRA that expands short prompts into structured descriptions of visuals, soundscapes, and music. See the MiniMax-H3 guide.

    • July 28, 2026: 🚀 We release the LightLingBot-Video 4-step distilled LoRA for LingBot-Video. It supports T2V, T2I, and I2V generation in only 4 inference steps without CFG. See the LingBot-Video inference scripts for usage.

    • July 23, 2026: ⚡️ We release the blog: LightX2V ROS: Closing the Loop for Action-Generating World Models

    • July 19, 2026: ⚡️ We release the blog: Wan2.2-NVFP4-Sparse: Extremely Fast Wan 2.2 14B Inference

    • June 15, 2026: 🚀 Supported deployment on T-head PPU.

    • May 29, 2026: 🚀 We introduce an extremely efficient Wan 2.2 14B variant (T2V and I2V): NVFP4 Quantization-Aware Step Distillation with Sparse Attention for Blackwell Architecture. Under the test conditions in the model card, inference with 4 NFE achieves over 50× end-to-end speedup over the original model with 40 NFE on a single RTX 5090 GPU.

    • April 30, 2026: 🚀 We now support deployment on iluvatar. Thanks to the iluvatar team.

    • April 20, 2026: 🚀 We are excited to release the Wan2.2-I2V-A14B-4step-720p-high and Wan2.2-I2V-A14B-4step-720p-low models. Compared to previous iterations, this version was trained on a high-quality 720p dataset and features an optimized low-noise training algorithm. These enhancements significantly boost the model's performance in fine-grained detail rendering and visual texture.

    • April 17, 2026: 🚀 We support the WorldMirror 2.0 model. On a single H100 GPU, LightX2V delivers approximately 1.2× speedup. For detailed usage instructions, please refer to this guide.

    • April 10, 2026: 🎉 We released a technical blog on disaggregated deployment

    • March 5, 2026: 🚀 We now support deployment on Intel AIPC PTL. Thanks to the Intel team.

    • March 5, 2026: 🚀 We now support disaggregated deployment based on Mooncake. More improvements and documentation for disaggregated deployment are in progress. Thanks to the Mooncake team for their help!

    • February 27, 2026: 🚀 We now support FP8 and NVFP4 quantization for autoregressive video generation models (Self Forcing)! You can find the quantized model here: Self-Forcing-FP8, Self-Forcing-NVFP4.

    • February 11, 2026: 🎉 We are excited to announce GenRL - a scalable reinforcement learning framework for visual generation! GenRL enables training diffusion/flow models with multi-reward optimization (HPSv3, VideoAlign, etc.) using GRPO algorithm. We've released high-performance LoRA checkpoints trained with multi-node multi-GPU setup, demonstrating significant improvements in aesthetic quality, motion coherence, and text-video alignment. Check out our model collection on HuggingFace! Give us a ⭐ if you find it useful!

    • January 20, 2026: 🚀 We support the LTX-2 audio-video generation model, featuring CFG parallelism, block-level offload, and FP8 per-tensor quantization. Usage examples can be found in scripts/ltx2/inference and scripts/ltx2.

    • January 6, 2026: 🚀 We updated the 8-step CFG/step-distilled models for Qwen-Image-2512 and Qwen/Qwen-Image-Edit-2511. You can download the corresponding weights from Qwen-Image-Edit-2511-Lightning and Qwen-Image-2512-Lightning for use. Usage tutorials can be found here.

    • January 6, 2026: 🚀 Supported deployment on Enflame S60 (GCU).

    • December 31, 2025: 🚀 We support the Qwen-Image-2512 text-to-image model since Day 0. Our HuggingFace has been updated with CFG / step-distilled LoRA. Usage examples can be found here.

    • December 27, 2025: 🚀 Supported deployment on MThreads MUSA.

    • December 25, 2025: 🚀 Supported deployment on AMD ROCm and Ascend 910B.

    • December 23, 2025: 🚀 We support the Qwen-Image-Edit-2511 image editing model since Day 0. On a single H100 GPU, LightX2V delivers approximately 1.4× speedup. We support for CFG parallelism, Ulysses parallelism, and efficient offloading technologies. Our HuggingFace has been updated with CFG / step-distilled LoRA and FP8 weights. Usage examples can be found here. Combined with LightX2V, 4-step CFG / step distillation, and the FP8 model, the maximum acceleration can reach up to approximately 42×. Feel free to try LightX2V Online Service with Image to Image and Qwen-Image-Edit-2511 model.

    • December 22, 2025: 🚀 Added Wan2.1 NVFP4 quantization-aware 4-step distilled models; weights are available on HuggingFace: Wan-NVFP4.

    • December 15, 2025: 🚀 Supported deployment on Hygon DCU.

    • December 4, 2025: 🚀 Supported GGUF format model inference & deployment on Cambricon MLU590/MetaX C500.

    • November 24, 2025: 🚀 We released 4-step distilled models for HunyuanVideo-1.5! These models enable ultra-fast 4-step inference without CFG requirements, achieving approximately 25x speedup compared to standard 50-step inference. Both base and FP8 quantized versions are now available: Hy1.5-Distill-Models.

    • November 21, 2025: 🚀 We support the HunyuanVideo-1.5 video generation model since Day 0. With the same number of GPUs, LightX2V can achieve a speed improvement of over 2 times and supports deployment on GPUs with lower memory (such as the 24GB RTX 4090). It also supports CFG/Ulysses parallelism, efficient offloading, TeaCache/MagCache technologies, and more. We will soon update more models on our HuggingFace page, including step distillation, VAE distillation, and other related models. Quantized models and lightweight VAE models are now available: Hy1.5-Quantized-Models for quantized inference, and LightTAE for HunyuanVideo-1.5 for fast VAE decoding. Refer to this for usage tutorials, or check out the Python API guide for code examples.

    💡 Quick Start

    We recommend using LightX2V through its service API. The examples below cover Qwen-Image-2.1 text-to-image (T2I) generation and MiniMax-H3 text-to-audio-video (T2AV) generation.

    Environment Setup

    We recommend the Docker environment. Clone the repository in your prepared environment:

    git clone https://github.com/ModelTC/LightX2V.git
    cd LightX2V
    

    Run these commands in a prepared Python environment. The service example uses scripts from the cloned repository.

    Installation from Git
    pip install -v git+https://github.com/ModelTC/LightX2V.git
    
    Installation from Source (Repository Root)
    uv pip install -v . # or: pip install -v .
    

    See the environment setup guide for attention and quantization kernel installation.

    Usage Examples

    Both servers use port 8000 by default. Stop the running server before switching examples.

    Qwen-Image-2.1: Text-to-Image

    Follow the Qwen-Image-2.1 guide to prepare the weights, then set the repository path, model path, and GPU in the server script. Run the commands below from the repository root.

    # Terminal 1: start the server
    bash scripts/qwen_image_21/server/start_server.sh
    

    After the model loads, submit the example request from another terminal:

    # Terminal 2: submit a T2I request
    python scripts/qwen_image_21/server/post_t2i.py
    

    Edit the prompt, size, and seed in the request script to generate your own images. Once the request completes, the image is saved by default to save_results/qwen_image_21_t2i.png under the repository root.

    MiniMax-H3: Text-to-Audio-Video

    Follow the MiniMax-H3 guide to prepare the weights and initial AdaLN cache, and set the repository path, model path, and GPU in the server script. Run the commands below from the repository root.

    # Terminal 1: start the server
    bash scripts/minimax_h3/server/start_server.sh
    

    After the model loads, submit the example request from another terminal:

    # Terminal 2: submit a T2AV request
    python scripts/minimax_h3/server/post_t2av.py
    

    Edit the prompt in the request script to generate your own content. Requests are asynchronous; results are saved by default to save_results/server_cache/outputs/ under the repository root.

    🤖 Supported Model Ecosystem

    LightX2V supports image, video, and world models and provides quantized weights, distilled models, and lightweight autoencoders.

    Models / Variants and WeightsGuides / Scripts
    MiniMax-H3 (causal RefA2V requires a separate checkpoint)Guide · Causal
    TaoMate-H3 (autoregressive T2AV)Run script
    StreamRender-H3 (autoregressive RefV2V)Run script
    LTX-2 / LTX-2.3 / LTX-2.5 (distilled)Guide
    HunyuanVideo-1.5Guide
    Wan2.1 / Wan2.2Wan2.1 · Wan2.2
    Wan2.1-VACE / Wan2.2-VACE-Fun-A14BWan2.1 · Wan2.2
    Wan2.2-S2VGuide
    Wan2.2-Animate / Wan2.2-Animate-2 (distilled)Guide
    LingBot-Video Dense 1.3B / MoE 30B-A3BScripts
    SekoTalk (including the autoregressive variant)Scripts
    InfiniteTalkScripts
    Wan-DancerScripts
    Self-ForcingGuide
    Models / Variants and WeightsGuides / Scripts
    Qwen-Image / Qwen-Image-2512Guide
    Qwen-Image-Edit / 2509 / 2511Guide
    Qwen-Image-2.1 / TurboGuide
    Qwen-Image-LayeredGuide
    FLUX.2 dev / klein (base and distilled klein variants)Scripts
    HunyuanImage-3.0-InstructScripts
    Z-Image / Z-Image-TurboTurbo guide; base model: enable CFG (guidance > 1) and adjust sampling steps
    LongCat-Image / Edit / Edit-TurboGuide; Edit-Turbo requires its own weights, 8 steps, and CFG disabled
    BAGELGuide
    HiDream-O1-Image / Dev-2604Scripts
    ERNIE-Image / TurboScripts
    SenseNova-U1 (NeoPP backend, used with LightLLM)Guide
    Models / Variants and WeightsGuides / Scripts
    SeedVR2Guide
    SwiftVRGuide
    RelayVSRGuide
    Models / Variants and WeightsGuides / Scripts
    Cosmos3-Nano / Super (including Nano-Policy-DROID)Scripts
    LingBot-World / FastScripts
    Matrix-Game-4 (Wan2.2 5B Control; autoregressive video rerendering)Run script
    LingBot-Fast (autoregressive I2V)Run script
    Realtime-Video (Wan2.1 autoregressive T2V)Run script
    WorldPlay (bidirectional, autoregressive, and distilled)Guide
    EdenLive (Wan2.1 14B / Wan2.2 5B; bidirectional and four-step autoregressive)Guide
    WorldMirror 2.0 (3D reconstruction)Guide
    Depth Anything 3 MONO-LARGE (image/video relative depth)Guide and run script
    DreamZeroScripts
    LingBot-VAScripts
    MotusScripts
    Fast-WAMScripts
    RealtimeWAM (based on Fast-WAM / Faster-WAM)Guide
    Hunyuan3D-2.1 (image-to-3D shape generation)Scripts
    Models / Variants and WeightsGuides / Scripts
    MiniMax-H3 Turbo — 4-/8-step distilled LoRAs, including 768p T2AV / FL2AV and 4-step Ref2AVGuide
    LightLingBot-Video — 4-step distilled LoRA for T2V, T2I, and I2VScripts
    Wan2.1-Distill-Models / Wan2.2-Distill-ModelsWan2.1 · Wan2.2
    Wan2.1-Distill-Loras / Wan2.2-Distill-LorasWan2.1 · Wan2.2
    Wan-NVFP4 / LightWan2.2-A14BWan2.1 · Wan2.2
    Hy1.5-Distill-Models / Hy1.5-Quantized-ModelsGuide
    Qwen-Image-Lightning / Qwen-Image-2512-Lightning / Qwen-Image-2.1-LightningQwen-Image · 2.1
    Qwen-Image-Edit-2511-LightningGuide
    Z-Image-Turbo-QuantizedGuide
    Self-Forcing-FP8 / Self-Forcing-NVFP4Guide
    Autoencoders (LightVAE / LightTAE)Python API

    🚀 Core Features

    • Few-Step Inference: Support distilled checkpoints and distillation LoRAs, including DMD2 and Wan2.1 MeanFlow inference.
    • Quantization & Optimized Kernels: Support W8A8 (INT8 / FP8) and W4A4 (NVFP4) quantization, with optimized attention backends such as FlashAttention and SageAttention.
    • Hierarchical Offloading: Manage weights across disk, CPU, and GPU with model-level and block-level offloading.
    • Feature Caching: Support TeaCache, MagCache, and TaylorSeer to reuse intermediate results across denoising steps.
    • Parallel Inference: Support tensor parallelism (TP), sequence parallelism (SP), CFG parallelism, and hybrid configurations.
    • Variable-Resolution Inference: Schedule latent resolutions across denoising stages to control computation at each stage.

    Available optimizations depend on the model, hardware, and selected configuration.

    📚 Documentation & Deployment

    Use CaseDocumentation & Examples
    Environment Setup & ConfigurationQuick Start Guide
    Model Preparation & LoadingMiniMax-H3 · Wan2.1 / VACE · Model Formats & Loading
    Service Deployment & API UsageService Deployment · API Reference
    Interactive Interfaces & Workflow IntegrationGradio-Lightx2v · ComfyUI
    Local Deployment on WindowsWindows Deployment Guide
    Resource-Constrained and Low-Latency DeploymentLow-Resource Deployment · Low-Latency Deployment
    Model Quantization & LoRA DeploymentQuantization · LoRA Deployment
    Inference Performance OptimizationWeight Offloading · Feature Caching · Attention Kernels · Parallel Inference · Variable-Resolution Inference · Step Distillation
    Wan2.1 NVFP4 4-Step InferenceI2V Example · T2V Example · Quantization Kernel Installation
    Code Examples & Development ReferencesPython API · scripts

    🤝 Acknowledgments

    We thank the following open-source projects and communities for the models, tools, and research that have helped shape LightX2V:

    Tencent-Hunyuan · Wan-Video · Qwen-Image · MiniMax-H3 · FlashAttention · SageAttention · LightLLM · sglang · vllm · flashinfer · MagiAttention · radial-attention · xDiT · FastVideo · Mooncake

    We also thank the cloud inference platforms supporting the wider ecosystem:

    • Atlas Cloud — a full-modal AI inference platform whose hosted API serves the Wan / Seedance / Kling model families, for teams that prefer a managed API over self-hosting.

    • Sensecore — Sensecore builds efficient, low-cost, scalable AI cloud infrastructure and develops deep learning platforms, algorithms, and models to support AI innovation in industry and academia.

    ✏️ 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: