Instructions to use Tongyi-MAI/Z-Image-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Tongyi-MAI/Z-Image-Turbo 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") 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
Is there an optimal resolution recommendation?
#55
by Mark-Hou - opened
For example, the recommended resolution for an SD 1.5 is 512x number, and for an SDXL it's 1024 x number.
From my multiples tests, as long as you dont go beyond 2048px it's fine.
From my multiples tests, as long as you dont go beyond 2048px it's fine.
how much VRAM do you have? with 24GB it seems I max out at 1024x1024 resolution.
edit: I realise it depends if one uses a quantized version of the weights or not, so I guess the answer is complex then.