Instructions to use BAAI/AltDiffusion-m18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BAAI/AltDiffusion-m18 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m18", 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
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.460015b
-
Upload m18.ckpt
b3c429d -
Upload m18.ckpt
6eec8ef
-
Upload m18.ckpt
2a6ecd9
-
Update README.md
821ec6b
-
Update README.md
2415dce -
Update README.md
6e3f45a
-
Update README.md
0c2521b -
Update README.md
ead6be7 -
Update README.md
3f4fdff -
Update README.md
4bf8c5a -
Update README.md
e2a09d3 -
Update README.md
b3d5acb
-
Update text_encoder/config.json
879fd34 -
Update text_encoder/config.json
97c7dac
-
Update README.md
180ca84 -
Update README.md
90f6682 -
Update README.md
88a3192 -
Upload 10 files
5c9b4ab
-
Upload 4 files
3328559 -
Upload pytorch_model.bin
e47bed9
-
Upload config.json
8a5f373 -
Upload 7 files
19596fb -
Upload preprocessor_config.json
d3f66ac -
Delete feature_extractor
d31bdc4 -
feature_extractor
a78fa9b -
Delete feature_extractor
1832888 -
Create feature_extractor
034cec7 -
initial commit
80ef9b5