Ir para o conteúdo
ModelVerificadoExterno
Baixar

Qwen Image Lightning

Please refer to Qwen-Image-Lightning github to learn how to use the models.

TipoOtherModelo baseQwen/Qwen-ImageVersãoRevision e74da8dPublicador@lightx2vBnota

Fonte do modelo

Tipo
Other
Tamanho do arquivo
810 MB–19,0 GB
Modelo base
Qwen/Qwen-Image
Versão
vRevision e74da8d
Atualizado
5 de out. de 2026
Publicador
@lightx2v
Downloads
331,8 mil
Tarefas
Edição de imagem, Texto para imagem
Fonte
Hugging Face

Descrição da fonte

Please refer to Qwen-Image-Lightning github to learn how to use the models.

use with diffusers 🧨:

make sure to install diffusers from main (pip install git+https://github.com/huggingface/diffusers.git)

from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler
import torch 
import math

# From https://github.com/ModelTC/Qwen-Image-Lightning/blob/342260e8f5468d2f24d084ce04f55e101007118b/generate_with_diffusers.py#L82C9-L97C10
scheduler_config = {
    "base_image_seq_len": 256,
    "base_shift": math.log(3),  # We use shift=3 in distillation
    "invert_sigmas": False,
    "max_image_seq_len": 8192,
    "max_shift": math.log(3),  # We use shift=3 in distillation
    "num_train_timesteps": 1000,
    "shift": 1.0,
    "shift_terminal": None,  # set shift_terminal to None
    "stochastic_sampling": False,
    "time_shift_type": "exponential",
    "use_beta_sigmas": False,
    "use_dynamic_shifting": True,
    "use_exponential_sigmas": False,
    "use_karras_sigmas": False,
}
scheduler = FlowMatchEulerDiscreteScheduler.from_config(scheduler_config)
pipe = DiffusionPipeline.from_pretrained(
    "Qwen/Qwen-Image", scheduler=scheduler, torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights(
    "lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.0.safetensors"
)

prompt = "a tiny astronaut hatching from an egg on the moon, Ultra HD, 4K, cinematic composition."
negative_prompt = " "
image = pipe(
    prompt=prompt,
    negative_prompt=negative_prompt,
    width=1024,
    height=1024,
    num_inference_steps=8,
    true_cfg_scale=1.0,
    generator=torch.manual_seed(0),
).images[0]
image.save("qwen_fewsteps.png")

Recursos relacionados

40 conexões
Usado porQwenEdit+Plus New Edition Universal Shell Removal Offset Fix Version 1 (Pre-Installation - Grayscale Decoding) — v1.0Usado porQwen+Image+InstanX Super-Powered Image Enlarger V1 (Supports Text) — v1.0Usado por【F2P Three-Panel Grid】Next+Scene+V3 Model: A Trio of Melancholic Literature (Facial Enhancement Edition) — v1.0Usado porQwen-TXT-IMG-Basic — v1.0Usado porQwen2509 & Next Scene consistency-enhanced next-shot prediction — v1.0Usado porQwen Image Edit Plus (2511) 8steps Multi Edit — v1.0 (old 2509)Usado porPosed Sprite Sheet Generator — v1.0Usado porQwen Image Edit Plus image fusion — v1.0Usado porImage Inpaint(Qwen & InstantX) — v1.0Usado porExtreme HD Repair - Add Details - Eliminate AI Qwen2511+Flux kontextUsado porQwen+Edit Image Editor 4-Step New Version Lightning V2 Super Accelerated Edition — v1.0Usado porComfy Challenge 4+Qwen+image+Wan2.2+Fun Full-Body Pose Control V1 — v1.0Usado porQwen Image Context Control Union Workflow — v1.0Usado porRebels Qwen Image Edit 2509 + Upscale LoRA — Qwen Edit+Enhance LoRAUsado por2512 vs z-image vs flux2 — v1.0Usado porQwen-Image refiner — v1.0Usado porQwen Image Edit 2509: Build a LoRA Dataset — v1.0Usado porQwen Image EditUsado porComfy Challenge 4+Qwen+image+Wan2.2+UNI3C Full-Body Pose Control V1 — v1.0Usado porqwen image ControlNet Redraw the image — v1.0Usado porNunchaku+Qwen+Edit+8-Step Rapid Image Editing V1 — v1.0Usado porImage extension-Qwen image Inpaintint — v1.0Usado porQY6 - Master of Clothing and Makeup Transformation for Portraits (Qwen-image-Edit) — v1.0Usado porPut It Here v1 Qwen Edit All Things Merge into One Image — v1.0Usado porQwen Image Edit 2509Usado porQwen - The Strongest Anime to Realistic Real Person Transformation in History (Z-Image Remastered CFG1.6) — v1.0Usado porWen+Image+InstantX+Controlnet Pose Control — v1.0Usado porComfyUI Qwen Edit Workflow for Head Swap no LoRAs needed! — v1.0Usado por[Qwen_2511] Outpaint everything — v1.0Usado porQwen Image generation + upscale (SD1.5, SDXL, WAN2.2) + LLM + Face Detailer — v1.0Usado porQwen-Image depth-guided creationUsado porQwen Image Edit Multi GenUsado porQwen Image canvas outpaintingUsado porQwen-Image edge-guided restylingUsado porKlein+Zimage二转三anime to real — v1.5Usado porImage relightUsado porIllustration to realismUsado porQwen-Image: Text to imageUsado porTriple-panel photo by qwen image 2509 + wan2.2 — v1.0Usado porReference-guided relighting

Fontes

1 fonte
Hugging FacePrimárioVersão e74da8d4e71a54b341de86aa9f8d2509165aa513
huggingface.co/lightx2v/Qwen-Image-Lightning/tree/e74da8d4e71a54b341de86aa9f8d2509165aa513

Verificado 5 de out.

Artefatos de modelo

21 artefatos

Qwen-Image-Edit-2509/qwen_image_edit_2509_fp8_e4m3fn_scaled.safetensors

safetensors · 19,0 GB · SHA-256 cc7a73527bd4…a001 · Hugging Face

Baixar

Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors

safetensors · 810 MB · SHA-256 2a32ce938ec7…1377 · Hugging Face

Baixar

Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-fp32.safetensors

safetensors · 1,58 GB · SHA-256 6065f62669c9…36b1 · Hugging Face

Baixar

Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors

safetensors · 810 MB · SHA-256 b5c48ba90d22…7f72 · Hugging Face

Baixar

Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-8steps-V1.0-fp32.safetensors

safetensors · 1,58 GB · SHA-256 eece790fc6ac…e841 · Hugging Face

Baixar

Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors

safetensors · 810 MB · SHA-256 d8132c32e7df…beb1 · Hugging Face

Baixar

Qwen-Image-Edit-Lightning-4steps-V1.0.safetensors

safetensors · 1,58 GB · SHA-256 e752ea1553f0…cc1b · Hugging Face

Baixar

Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors

safetensors · 810 MB · SHA-256 36ee4ff86085…01b9 · Hugging Face

Baixar

Qwen-Image-Edit-Lightning-8steps-V1.0.safetensors

safetensors · 1,58 GB · SHA-256 5910104f8922…a826 · Hugging Face

Baixar

Qwen-Image-fp8-e4m3fn-Lightning-4steps-V1.0-bf16.safetensors

safetensors · 810 MB · SHA-256 11704ff6034a…442c · Hugging Face

Baixar

Qwen-Image-fp8-e4m3fn-Lightning-4steps-V1.0-fp32.safetensors

safetensors · 1,58 GB · SHA-256 a74d58821ed0…ec6b · Hugging Face

Baixar

Qwen-Image-Lightning-4steps-V1.0-bf16.safetensors

safetensors · 810 MB · SHA-256 3ac242b4ff22…8c84 · Hugging Face

Baixar

Qwen-Image-Lightning-4steps-V1.0.safetensors

safetensors · 1,58 GB · SHA-256 9526e90d71c4…c8b1 · Hugging Face

Baixar

Qwen-Image-Lightning-4steps-V2.0-bf16.safetensors

safetensors · 810 MB · SHA-256 3e43b9796143…67c5 · Hugging Face

Baixar

Qwen-Image-Lightning-4steps-V2.0.safetensors

safetensors · 1,58 GB · SHA-256 878c519b75aa…c228 · Hugging Face

Baixar

Qwen-Image-Lightning-8steps-V1.0.safetensors

safetensors · 1,58 GB · SHA-256 07b5a9998814…fff9 · Hugging Face

Baixar

Qwen-Image-Lightning-8steps-V1.1-bf16.safetensors

safetensors · 810 MB · SHA-256 fe04c3ec1dd4…79c8 · Hugging Face

Baixar

Qwen-Image-Lightning-8steps-V1.1.safetensors

safetensors · 1,58 GB · SHA-256 c5f33b60c0e3…a508 · Hugging Face

Baixar

Qwen-Image-Lightning-8steps-V2.0-bf16.safetensors

safetensors · 810 MB · SHA-256 5bdbf6991228…57ee · Hugging Face

Baixar

Qwen-Image-Lightning-8steps-V2.0.safetensors

safetensors · 1,58 GB · SHA-256 f4f5b6607939…3d56 · Hugging Face

Baixar

Qwen-Image/qwen_image_fp8_e4m3fn_scaled.safetensors

safetensors · 19,0 GB · SHA-256 0b4ecbb63b40…7bae · Hugging Face

Baixar

Trechos de fonte

3 trechos

--- license: apache-2.0 language: - en - zh base_model: - Qwen/Qwen-Image pipeline_tag: text-to-image tags: - Qwen-Image - distillation - LoRA - lora library_name: diffusers --- Please refer to [Qwen-Image-Lightning github](https://github.com/ModelTC/Qwen-Image-Lightning/) to learn how to use the models. use with diffusers 🧨: make sure to install diffusers from `main` (`pip install git+https://github.com/huggingface/diffusers.git`) ``` from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler import torch import math # From https://github.com/ModelTC/Qwen-Image-Lightning/blob/342260e8f5468d2f24d084ce04f55e101007118b/generate_with_diffusers.py#L82C9-L97C10 scheduler_config = { "base_image_seq_len": 256, "base_shift": math.log(3), # We use shift=3 in distillation "invert_sigmas": False, "max_image_seq_len": 8192, "max_shift": math.log(3), # We use shift=3 in distillation "num_train_timesteps": 1000, "shift": 1.0, "shift_terminal": None, # set shift_terminal to None "stochastic_sampling": False, "time_shift_type": "exponential", "use_beta_sigmas": False, "use_dynamic_shifting": True, "use_exponential_sigmas": False, "use_karras_sigmas": False, } scheduler = FlowMatchEulerDiscreteScheduler.from_config(scheduler_config) pipe = DiffusionPipeline.from_pretrained( "Qwen/Qwen-Image", scheduler=scheduler, torch_dtype=torch.bfloat16 ).to("cuda") pipe.load_lora_weights( "lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.0.safetensors" ) prompt = "a tiny astronaut hatching from an egg on the moon, Ultra HD, 4K, cinematic composition." negative_prompt = " " image = pipe( prompt=prompt, negative_prompt=negative_prompt, width=1024, height=1024, num_inference_steps=8, true_cfg_scale=1.0, generator=torch.manual_seed(0), ).images[0] image.save("qwen_fewsteps.png") ```

Source context: 331759 downloads · 835 likes · Pipeline text-to-image · Library diffusers · Repo lightx2v/Qwen-Image-Lightning

Source context: 396109 downloads · 811 likes · Pipeline text-to-image · Library diffusers · Repo lightx2v/Qwen-Image-Lightning