Instructions to use ostris/zimage_turbo_training_adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/zimage_turbo_training_adapter with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ostris/zimage_turbo_training_adapter") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Negative alpha as distill accelerate LoRA!
Quite simple idea. (Distilled Model) + (This LoRA) = (Non-Distilled Model) -> (Non-Distilled Model) + (-1) * (This LoRA) = (Distilled Model)
I tried to train LoRA without the adapter. And infer with
A. LoRA I trained.
B. LoRA I trained + LoRA you provided * (-1)
Found that A ruins distillation and B brings it back. It works!
More experiment is needed for prove.
I haven't yet done enough extensive experiments though. And my LoRA trained is rubbish even with cfg+more-steps, mine maybe need tuning hyper parameter/adjusting dataset.
Example:
pink hair, cat ears, heterochromia, sailor collar, serafuku, school uniform, red eyes, blue eyes

original model
my LoRA with turbo inferene
My LoRA with "base" inference (cfg=2.5 with negative prompts, steps=25)
My LoRA + (-1)* this LoRA with turbo inference.
Quite simple idea.
(Distilled Model) + (This LoRA) = (Non-Distilled Model)->(Non-Distilled Model) + (-1) * (This LoRA) = (Distilled Model)
I tried to train LoRA without the adapter. And infer with
A. LoRA I trained.
B. LoRA I trained + LoRA you provided * (-1)
Found that A ruins distillation and B brings it back. It works!
More experiment is needed for prove.
I haven't yet done enough extensive experiments though. And my LoRA trained is rubbish even with cfg+more-steps, mine maybe need tuning hyper parameter/adjusting dataset.Example:
pink hair, cat ears, heterochromia, sailor collar, serafuku, school uniform, red eyes, blue eyes
original model
my LoRA with turbo inferene
My LoRA with "base" inference (cfg=2.5 with negative prompts, steps=25)
My LoRA + (-1)* this LoRA with turbo inference.
so in practical term what should i do with this lora in comfyui or in a workflow for normal users?
I continued training and the trick no longer works. Seem my previous lora is under-trained.