Model or dataset
ModelTC/LightX2V-Qwen-Image-Lightning avatar
ModelTC/LightX2V-Qwen-Image-Lightning

Qwen-Image-Lightning for Faster Four-Step Image Generation

Qwen-Image-Lightning: Speed up Qwen-Image model with distillation

1,365 stars49 forksPythonApache-2.0

At a glance

What is it?
Qwen-Image-Lightning is a distilled set of LoRA weights for reducing Qwen-Image inference to four or eight steps. It is aimed at Diffusers, ComfyUI, and other supported users who accept model-specific compatibility constraints.
Who is it for?
Adopt Qwen-Image-Lightning when four-step or eight-step Qwen-Image inference matters and the required runtime or ComfyUI workflow is available. Do not assume that every Qwen-Image base is compatible, particularly an FP8 base paired with an ordinary Lightning LoRA.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 53 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on October 21, 2026, and from our analysis. They are not legal advice.

Editorial analysis

Why Qwen-Image-Lightning Reduces the Denoising Budget

Qwen-Image-Lightning addresses the time and iteration cost associated with running the Qwen-Image diffusion pipeline. The repository distributes distilled LoRA weights rather than a separate image-generation application with its own graphical interface. Its goal is to let supported Qwen-Image pipelines produce an image with a small, predetermined denoising budget instead of following a longer sampling schedule.

The repository publishes four-step and eight-step variants for Qwen-Image, plus dedicated checkpoints for Qwen-Image-Edit releases. The newest entry listed in the README is `Qwen-Image-2512-Lightning-4steps-V1.0`, released in fp32 and bf16 forms on January 1, 2026. Earlier entries include the original Qwen-Image Lightning models, Qwen-Image-Edit Lightning models, and checkpoints tied to the 2509 and 2511 edit generations.

This project is most relevant to an engineer or image-generation operator who already understands Qwen-Image and wants fewer sampling steps. It is less suitable as a turnkey package for someone looking for a standalone text-to-image service. The base Qwen-Image model, a compatible execution path, and suitable weights remain separate parts of the setup. The README does not present the project as a replacement for Qwen-Image itself. It describes an acceleration layer for that model family.

V1.x, V2.x, and Checkpoint Selection in Qwen-Image-Lightning

Checkpoint choice is not a minor packaging detail because the published variants target different Qwen-Image generations and use different precision or quantization arrangements. A filename such as `Qwen-Image-Lightning-4steps-V2.0.safetensors` identifies a four-step V2.0 model, while the 2512 release is named `Qwen-Image-2512-Lightning-4steps-V1.0`. Edit checkpoints include the generation in their names, which helps prevent an edit LoRA from being applied to an unrelated generation.

The README compares V1.x and V2.x specifically on output character. It states that V2.0 produces less oversaturated images than V1.0, with improved skin texture and more natural-looking visuals. That is a documented project claim accompanied by image comparisons, not a measured guarantee for every prompt. Prompt interpretation, the base checkpoint, precision, sampler configuration, and runtime can still affect the result.

Users also need to distinguish standalone LoRA weights from fused models. For the Qwen-Image-Edit 2511 release, the README lists fp32 and bf16 Lightning files and a fused fp8 model that combines the bf16 base with an fp32 LoRA. These are not interchangeable descriptions. The former identifies a Lightning adapter, while the fused checkpoint changes how the base and acceleration weights are packaged.

There is no GitHub release history to simplify version selection through packaged installers. Instead, the README links individual files on Hugging Face. Exact naming and runtime documentation therefore matter more. The repository metadata does not identify a single default checkpoint, so the intended base and adapter pair must be selected deliberately.

Diffusers, ComfyUI, Nunchaku, and Cache-dit Integration

Qwen-Image-Lightning does not require every adopter to use one execution engine. The README points to four integration paths, each with a different operational purpose. Hugging Face Diffusers reportedly supports loading Qwen-Image-Lightning within its Qwen-Image pipeline. This is the closest path for Python users who want to work through the Qwen-Image pipeline API, although the repository delegates detailed loading instructions to the Diffusers documentation.

ComfyUI provides native workflows for Qwen-Image and Qwen-Image-Edit, including Lightning LoRA weights. That route is relevant to users who assemble node graphs around the model and already manage ComfyUI model placement and workflow configuration. The repository contains a top-level `workflows/` directory, but the README does not document its files closely enough to reproduce a node graph here.

Nunchaku offers a separate 4-bit Qwen-Image Lightning implementation and an example script intended to reduce inference GPU memory usage. Cache-dit documents support for 3.5-step inference with cache acceleration. These are not merely alternate spellings of the same operation. Nunchaku changes weight precision and memory behavior, while Cache-dit changes sampling through caching. The README lists both as community options but does not say they are maintained by this repository or guarantee identical outputs.

That distinction matters during adoption. A LoRA-compatible Diffusers or ComfyUI route does not imply compatibility with a 4-bit runtime or cache pipeline. Likewise, the documented fp8 compatibility problem for a specific Lightning LoRA and FP8 base combination shows that runtime support and model-format support are separate concerns.

FP8 Compatibility and Quantization Boundaries

The clearest documented failure mode concerns combining a Lightning LoRA with the `qwen_image_fp8_e4m3fn.safetensors` Qwen-Image FP8 base. The README says compatibility issues associated with that pairing were resolved and directs users to choose between alternative approaches according to their technical constraints and performance needs. The README excerpt does not reproduce those two approaches in full, so it would be unsafe to invent model filenames, loader settings, or conversion commands.

The project has moved beyond simply saying that FP8 is unsupported. The December 22, 2025 Qwen-Image-Edit 2511 entry includes a fused fp8 model combining the bf16 base with fp32 LoRA. That fused file is a concrete project option, but the README does not state whether it is a drop-in replacement for every pipeline or whether it has the same precision, memory, and output characteristics as loading the bf16 base with an adapter separately.

Nunchaku's 4-bit support introduces another boundary. It is presented as a way to lower inference GPU memory use, but the README does not provide the memory requirement, supported hardware details, output comparison, or migration procedure. Users should not treat fp32, bf16, fused fp8, and 4-bit as interchangeable deployment presets.

For this project, the safe approach is to identify the base checkpoint first, then find the Lightning checkpoint published for that exact generation, then confirm that the selected runtime documents support for both formats. If a workflow mixes an FP8 base with a separate LoRA, the compatibility section should be consulted before inference. The README does not document rollback or recovery after a failed checkpoint load.

Obtaining Weights and Running a First Qwen-Image-Lightning Check

The repository does not provide installation commands in the README. It links Hugging Face checkpoint files and directs Python users to the Diffusers Qwen-Image pipeline documentation. It also links ComfyUI documentation and Nunchaku's example script. Because the project supplies model artifacts rather than a documented package installation procedure, the first setup step is obtaining the intended base model and matching Lightning weights from the linked locations.

For a Python route, start with the Diffusers documentation because the README states that Diffusers supports Qwen-Image-Lightning within the Qwen-Image pipeline. The README does not show the required `diffusers` version, device map, scheduler configuration, pipeline class call, or model-loading code. Supplying those details as though they came from this project would be misleading. The README also does not state which checkpoint is the default.

For a visual workflow route, use the linked ComfyUI Qwen-Image or Qwen-Image-Edit documentation together with the repository's `workflows/` directory. The expected result is a loaded base model with the corresponding Lightning adapter or fused checkpoint selected. The README does not define the expected filename for a local model directory, so readers must use the actual file names linked in the repository documentation.

A first check should use a short prompt that includes legible text, because preserving complex text rendering is one of the repository's stated goals. Compare four-step and eight-step variants on the same prompt if both are candidates. Also inspect saturation and skin texture when choosing between V1.x and V2.x. The README does not document automated acceptance tests, quality thresholds, or a command that can certify a correct installation.

Maintenance Scope, License, and Upgrade Work

The repository is not archived, and its last push was on 2026-08-31. That indicates recent repository activity, but the project has no GitHub releases. Model publication is tracked through dated README entries and linked Hugging Face files instead. This distinction matters when planning upgrades: a new model file may appear in the model repository without becoming a formal GitHub release.

The README shows repeated model-generation updates during 2025, followed by the 2512 Lightning release in January 2026. It also lists an unfinished Qwen-Image-Edit-Lightning V2.0 item and a missing Qwen Edit 2511 ComfyUI workflow in its todo list. Those entries reveal uneven coverage across model generations and integration formats. An adopter should not assume that every newer Qwen-Image or edit generation has both V2.0 weights and a ready-made ComfyUI workflow.

The repository is licensed under Apache-2.0. That license covers the repository code, but the README does not state separate licensing or redistribution terms for the linked model weights. This review therefore does not infer that the model files inherit every repository-code permission. Anyone planning commercial redistribution or model integration should inspect the license files and terms attached to each Hugging Face artifact separately.

Upgrade work is more involved than replacing one Python package. Users must track base generations, adapter generations, fp32 or bf16 variants, fused fp8 artifacts, ComfyUI workflow coverage, and runtime support. The documented FP8 compatibility history shows that format combinations can require deliberate changes rather than a transparent file swap.

Editorial conclusion

Adopt Qwen-Image-Lightning when four-step or eight-step Qwen-Image inference matters and the required runtime or ComfyUI workflow is available. Do not assume that every Qwen-Image base is compatible, particularly an FP8 base paired with an ordinary Lightning LoRA. Verify the exact base model, LoRA or fused checkpoint variant, precision, runtime support, and text-rendering quality on representative prompts first. For the January 2026 release, the relevant choice is the four-step `Qwen-Image-2512-Lightning-4steps-V1.0` checkpoint in either fp32 or bf16.

Frequently asked questions

How many inference steps does Qwen-Image-Lightning use?

The repository publishes four-step and eight-step Qwen-Image Lightning variants. Cache-dit separately documents a 3.5-step route using cache acceleration.

Can Qwen-Image-Lightning be used with Diffusers and ComfyUI?

Yes. The README states that Diffusers supports it within the Qwen-Image pipeline and that ComfyUI provides native workflows, including Lightning LoRA weights.

Which Qwen-Image-Lightning checkpoint should I choose?

Match the checkpoint to the Qwen-Image or Qwen-Image-Edit generation, preferred step count, and runtime format. The README links fp32, bf16, fused fp8, and community 4-bit options, but it does not define a single default.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. ModelTC/LightX2V-Qwen-Image-Lightning on GitHub
  4. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/modeltc-lightx2v-qwen-image-lightning.svg)](https://hysenlabs.com/projects/modeltc-lightx2v-qwen-image-lightning)

Was this useful?