turbo8_lora_step2500.safetensors

更新:2026-10-20 14:30|发布时间:2026-10-20 14:30
10
0
0
turbo8_lora_step2500.safetensors. --- license: other license name: qwen-research license link: LICENSE base model: Qwen/Qwen-Image-2.1 base model relation: adapter pipeline tag: te…
turbo8_lora_step2500.safetensors - 2
头像
Gugugaga
类型
LoRA
基础模型
Qwen-Image
发布时间
2026-10-20 14:30
文件签名
c6ff83214b73d0fdff0b3ef83ac36ed62b1930bf97c95141cd1590ff346b23e4
turbo8_lora_step2500.safetensors
1.27 GB

license: other license_name: qwen-research license_link: LICENSE base_model: Qwen/Qwen-Image-2.1 base_model_relation: adapter pipeline_tag: text-to-image library_name: diffusers tags:

  • lora
  • distillation
  • dmd2
  • few-step
  • text-to-image
  • image-editing
  • rgba
  • comfyui

Turbo8: 8-step LoRA for Qwen-Image-2.1

Built with Qwen. Turbo8 is a step-distillation LoRA for Qwen-Image-2.1. It generates in 8 steps with no CFG instead of the base model's 40, about 5× faster. It covers everything the base model does:

  • text-to-image, up to native 2K
  • text rendering, in English and Chinese
  • image editing, with up to 10 reference images
  • transparent (RGBA) generation and subject extraction

showcase

All samples use Turbo8 with 8 steps and cfg 1 at 1024², first seed, with no cherry-picking within a prompt. The prompts were chosen for display from the held-out evaluation set.

Usage

ComfyUI

  1. Put turbo8_lora_step2500.safetensors in ComfyUI/models/loras/.
  2. Load comfyui/turbo8_t2i.json (text-to-image and RGBA) or comfyui/turbo8_edit.json (editing and extraction).
  3. Keep steps 8, cfg 1, sampler euler, scheduler simple.

The T2I workflow includes a ModelSamplingFlux node (max_shift 0.6935, base_shift 0.5), wired to width and height. It reproduces the resolution-dependent noise schedule the LoRA was trained with, including at 2K. Tested with ComfyUI 0.36.0's native Qwen-Image-2.1 support: all 227 LoRA layers map, and a 1024² image takes about 4 s on an RTX PRO 6000.

Diffusers

import torch
from diffusers import FlowMatchEulerDiscreteScheduler, QwenImage21Pipeline

base = "Qwen/Qwen-Image-2.1"
scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(base, subfolder="scheduler", shift_terminal=None)
pipe = QwenImage21Pipeline.from_pretrained(base, scheduler=scheduler, torch_dtype=torch.bfloat16)
pipe.load_lora_weights("chriswritescode/Turbo8-LoRA-Qwen-Image-2.1", weight_name="turbo8_lora_step2500.safetensors")
pipe.to("cuda")

image = pipe(
    prompt='A cozy bakery storefront with a carved wooden sign reading "Fresh Baked Daily"',
    num_inference_steps=8,
    generator=torch.Generator("cuda").manual_seed(0),
).images[0]
image.save("turbo8.png")

shift_terminal=None is required. The LoRA was distilled on the base schedule without the terminal stretch.

Prompt templates (same as the base model)

  • Transparent image: This is an RGBA image with transparency. {description}. The image has alpha channel and the background is transparent.
  • Subject extraction (pass the photo as the input image): This is an RGBA image with transparency. Extract the {subject} from the photo. The image has alpha channel and the background is transparent.

Evaluation

Offline evaluation on 192 held-out prompts: 64 DrawBench prompts plus 24 extra seeds for diversity, 40 text-rendering prompts (7 in Chinese), 24 GenEval-subject RGBA prompts, 24 OmniEdit edits and 16 extractions. The teacher is the base model at 40 steps.

MetricTeacher (40 steps)Turbo8 (8 steps)
PickScore, T2I22.1521.94
CLIPScore, T2I26.8926.89
PickScore, RGBA20.5120.07
Text exact match (OCR by Qwen3-VL)95.0%75.0%
Text character accuracy99.6%95.3%
Transparency rate (RGBA + extraction)0.8750.925
Seed diversity (DINOv2 similarity, lower = more varied)0.7050.670
Edit similarity to teacher (DINOv2)—0.967
Extraction alpha IoU vs teacher—0.85

teacher vs Turbo8

Teacher at 40 steps (upper row of each pair) against Turbo8 at 8 steps (lower row), same seed. Samples cover T2I, text, edits, RGBA and extraction.

Limitations

  • Dense or long text (paragraphs, small print) degrades much more than at 40 steps. Short headlines, signs and labels are reliable.
  • On some busy scenes, the composition can differ from the teacher's at the same seed.
  • Extraction inherits the base model's failure cases: in the evaluation, 3 of 16 extractions came out empty for both teacher and Turbo8. Turbo8 sometimes includes more surrounding context in the cutout than the teacher.
  • Tuned for 8 steps and cfg 1. Using more steps, or cfg above 1, does not improve results.

Training

See the full description on the original page

作品

暂无作品