Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

zai-org
/
GLM-Image

Text-to-Image
Diffusers
Safetensors
Chinese
English
GlmImagePipeline
Model card Files Files and versions
xet
Community
26

Instructions to use zai-org/GLM-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use zai-org/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("zai-org/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]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
GLM-Image
35.8 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 16 commits
zRzRzRzRzRzRzR
offlaod
2c433cc 4 months ago
  • processor
    Add files using upload-large-folder tool 4 months ago
  • scheduler
    Add files using upload-large-folder tool 4 months ago
  • text_encoder
    Add files using upload-large-folder tool 4 months ago
  • tokenizer
    Add files using upload-large-folder tool 4 months ago
  • transformer
    Add files using upload-large-folder tool 4 months ago
  • vae
    Add files using upload-large-folder tool 4 months ago
  • vision_language_encoder
    update 4 months ago
  • .gitattributes
    1.58 kB
    Add files using upload-large-folder tool 4 months ago
  • README.md
    31.3 kB
    offlaod 4 months ago
  • model_index.json
    619 Bytes
    Add files using upload-large-folder tool 4 months ago