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
- Draw Things
- DiffusionBee
Fix the wrong PR url (to diffuser repo) in README.md
#75
by iconben - opened
The #12715 PR should be https://github.com/huggingface/diffusers/pull/12715, the wrong url is https://github.com/huggingface/diffusers/pull/12704
Hey I am not able to load the diffuser with the ZImagePipeline
ImportError Traceback (most recent call last)
/tmp/ipython-input-2279947404.py in <cell line: 0>()
----> 1 from diffusers import ZImagePipeline
ImportError: cannot import name 'ZImagePipeline' from 'diffusers' (/usr/local/lib/python3.12/dist-packages/diffusers/init.py)
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
QJerry changed pull request status to merged