Instructions to use tianweiy/DMD2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tianweiy/DMD2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tianweiy/DMD2", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download dmd2_sdxl_4step_lora.safetensors from tianweiy/DMD2: direct link, hf CLI and curl.
- Browser
- Download file 787 MB
-
https://huggingface.co/tianweiy/DMD2/resolve/main/dmd2_sdxl_4step_lora.safetensors
- Command line
-
hf download hf://tianweiy/DMD2/dmd2_sdxl_4step_lora.safetensors
-
curl -L -o dmd2_sdxl_4step_lora.safetensors https://huggingface.co/tianweiy/DMD2/resolve/main/dmd2_sdxl_4step_lora.safetensors
787 MB
- Xet hash:
- c54fcd29efaeeb07ae2e6261569dc697e9a80f845e3f0b02f53f1bb67d26f0cb
- Size of remote file:
- 787 MB
- SHA256:
- a374289e9446d7f14d2037c4b3770756b7b52c292142a691377c3c755010a1bb
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.