Instructions to use callgg/glm-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use callgg/glm-encoder with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("callgg/glm-encoder", 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
Commit History
-
Upload model.safetensors with huggingface_hub
Verified signature644c914 -
Upload generation_config.json with huggingface_hub
Verified signature023bec0 -
Upload config.json with huggingface_hub
Verified signature6422738 -
Upload chat_template.jinja with huggingface_hub
Verified signaturec74d4ee -
Update README.md
Verified signature2082214 -
initial commit
Verified signature004d8b0