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 / processor
23.8 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
ZHANGYUXUAN-zR's picture
ZHANGYUXUAN-zR
Add files using upload-large-folder tool
9de9f71 verified 4 months ago
  • chat_template.jinja
    435 Bytes
    Add files using upload-large-folder tool 4 months ago
  • preprocessor_config.json
    431 Bytes
    Add files using upload-large-folder tool 4 months ago
  • tokenizer.json
    23.8 MB
    xet
    Add files using upload-large-folder tool 4 months ago
  • tokenizer_config.json
    4.93 kB
    Add files using upload-large-folder tool 4 months ago