frankjoshua / Qwen-Image-Lightning

huggingface.co
Total runs: 963
24-hour runs: 0
7-day runs: -122
30-day runs: 141
Model's Last Updated: October 14 2025
text-to-image

Introduction of Qwen-Image-Lightning

Model Details of Qwen-Image-Lightning

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")

Runs of frankjoshua Qwen-Image-Lightning on huggingface.co

963
Total runs
0
24-hour runs
0
3-day runs
-122
7-day runs
141
30-day runs

More Information About Qwen-Image-Lightning huggingface.co Model

More Qwen-Image-Lightning license Visit here:

https://choosealicense.com/licenses/apache-2.0

Qwen-Image-Lightning huggingface.co

Qwen-Image-Lightning huggingface.co is an AI model on huggingface.co that provides Qwen-Image-Lightning's model effect (), which can be used instantly with this frankjoshua Qwen-Image-Lightning model. huggingface.co supports a free trial of the Qwen-Image-Lightning model, and also provides paid use of the Qwen-Image-Lightning. Support call Qwen-Image-Lightning model through api, including Node.js, Python, http.

Qwen-Image-Lightning huggingface.co Url

https://huggingface.co/frankjoshua/Qwen-Image-Lightning

frankjoshua Qwen-Image-Lightning online free

Qwen-Image-Lightning huggingface.co is an online trial and call api platform, which integrates Qwen-Image-Lightning's modeling effects, including api services, and provides a free online trial of Qwen-Image-Lightning, you can try Qwen-Image-Lightning online for free by clicking the link below.

frankjoshua Qwen-Image-Lightning online free url in huggingface.co:

https://huggingface.co/frankjoshua/Qwen-Image-Lightning

Qwen-Image-Lightning install

Qwen-Image-Lightning is an open source model from GitHub that offers a free installation service, and any user can find Qwen-Image-Lightning on GitHub to install. At the same time, huggingface.co provides the effect of Qwen-Image-Lightning install, users can directly use Qwen-Image-Lightning installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Qwen-Image-Lightning install url in huggingface.co:

https://huggingface.co/frankjoshua/Qwen-Image-Lightning

Url of Qwen-Image-Lightning

Qwen-Image-Lightning huggingface.co Url

Provider of Qwen-Image-Lightning huggingface.co

frankjoshua
ORGANIZATIONS

Other API from frankjoshua

huggingface.co

Total runs: 13
Run Growth: -19
Growth Rate: -146.15%
Updated:May 11 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 17 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 25 2024