Instructions to use tiny-random/moss-image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tiny-random/moss-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("tiny-random/moss-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
File size: 442 Bytes
7ff060e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
"source_model": {
"name": "OpenMOSS-Team/MOSS-Image-Base",
"commit_id": "85975793d8b3d432f1b6e27f352abaa4c2a4c0d3"
},
"env": {
"python": "3.12.13",
"packages": {
"Pillow": "12.3.0",
"diffusers": "0.40.0.dev0",
"huggingface_hub": "1.27.0",
"safetensors": "0.8.0",
"tokenizers": "0.23.0rc0",
"torch": "2.13.0+cu126",
"transformers": "5.15.0.dev0"
},
"cuda": "12.6"
}
} |