Views
No views yet
merge_and_unload(), so no PEFT dependency is needed at inference time.Want the standalone LoRA adapter instead? Use DownFlow/Z-Image-Turbo-Fuli-LoRA to apply the adapter on top of any Z-Image-Turbo checkpoint.
by <artist>, to your prompt.pip install diffusers transformers accelerate safetensors1import torch
2from diffusers import DiffusionPipeline
3
4pipe = DiffusionPipeline.from_pretrained(
5 "DownFlow/Z-Image-Turbo-Fuli",
6 torch_dtype=torch.bfloat16,
7).to("cuda")
8
9image = pipe(
10 prompt="by 蠢沫沫, 1girl, solo, smile, soft lighting",
11 num_inference_steps=8,
12 guidance_scale=0.0, # Z-Image Turbo uses CFG=0
13 height=512,
14 width=512,
15).images[0]
16
17image.save("output.png")/v1/images/generations endpoint.1pip install "vllm>=0.8.0"
2
3vllm serve DownFlow/Z-Image-Turbo-Fuli \
4 --task generate \
5 --dtype bfloat16 \
6 --max-model-len 512 \
7 --port 80001curl http://localhost:8000/v1/images/generations \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "DownFlow/Z-Image-Turbo-Fuli",
5 "prompt": "by 蠢沫沫, 1girl, smile, soft watercolour style",
6 "n": 1,
7 "size": "512x512"
8 }'1from openai import OpenAI
2
3client = OpenAI(base_url="http://localhost:8000/v1", api_key="not-needed")
4
5response = client.images.generate(
6 model="DownFlow/Z-Image-Turbo-Fuli",
7 prompt="by 年年, 1girl, white dress, cherry blossoms",
8 n=1,
9 size="512x512",
10)
11print(response.data[0].url)by <artist>, at the start of your prompt.| Token | Training images |
|---|---|
萌芽儿o0 | 30 |
年年 | 26 |
封疆疆v | 26 |
焖焖碳 | 26 |
星之迟迟 | 25 |
蠢沫沫 | 23 |
雨波HaneAme | 23 |
清水由乃 | 21 |
| Property | Value |
|---|---|
| Base model | Tongyi-MAI/Z-Image-Turbo |
| Fine-tuning method | LoRA rank=32, alpha=32 — merged into weights |
| Target modules | to_q, to_k, to_v, w1, w2, w3 |
| Training steps | 5 000 (3 000 at lr=1e-4 + 2 000 continued at lr=5e-5, EMA decay=0.9999) |
| Training resolution | 512 × 512 |
| Inference steps | 8 |
| CFG scale | 0.0 (CFG-free) |
| Precision | bfloat16 |
| Dataset | DownFlow/fuliji (8 artists, ~200 images) |