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
- Draw Things
- DiffusionBee
[Question] Why Training Adapter
Hi, I am fairly new to training a distilled model.
Could someone explain why do we need a training adapter to train a LoRA?
Really appreciated your answer.
I added some more information to the model card that should clarify it. Let me know if you have more questions @evilperson068
where do you place the adapter? what folder
I assume this is built into AIT, so you just train your model and call it a day. But do you then need to use this model in ComfyUI when using your trained LoRA? If so, at what strength?
where do you place the adapter? what folder
It will download automatically.
I assume this is built into AIT, so you just train your model and call it a day. But do you then need to use this model in ComfyUI when using your trained LoRA? If so, at what strength?
The model is only used during training. On inference in comfy, you can just do their default turbo inference with your trained Lora attached and it will function in the turbo model.
hi,i am a freshman, i should use zimage_turbo_training_adapter before i generate my image data or only in training my new lora model?@evilperson068,thanks