Instructions to use xcreates/GLM-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use xcreates/GLM-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("xcreates/GLM-Image", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: mit | |
| language: | |
| - zh | |
| - en | |
| library_name: diffusers | |
| pipeline_tag: text-to-image | |
| **See GLM-Image in action - [demonstration video - coming soon](https://youtu.be/DF7WG7KoB1I)** | |
| ## Usage Notes | |
| #### Tested using [xCreate app v1.1.1](https://xcreate.com) | |
| * M3 Ultra: ~ seconds for 10 step generation | |
| * M4 Max: ~ seconds for 10 step generation | |
| * Memory usage: ~ GB | |
| ##### Patch also [submitted to transformers](https://github.com/huggingface/transformers/pull/43286) to fix runtime error | |
| ##### For more details see [demonstration video - coming soon](https://youtu.be/DF7WG7KoB1I) or visit [zai-org/GLM-Image](https://huggingface.co/zai-org/GLM-Image). | |
| ## Disclaimer | |
| We are not the creator, originator, or owner of any model listed. Each model is created and provided by third parties. Models may not always be accurate or contextually appropriate. You are responsible for verifying the information before making important decisions. We are not liable for any damages, losses, or issues arising from its use, including data loss or inaccuracies in AI-generated content. |