Run this model with HF Jobs
Run CompVis/stable-diffusion-v1-2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CompVis/stable-diffusion-v1-2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CompVis/stable-diffusion-v1-2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CompVis/stable-diffusion-v1-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use CompVis/stable-diffusion-v1-2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-2", 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
Fix deprecated float16/fp16 variant loading through new `version` API.
#8
by patrickvonplaten - opened
Files changed (9)
- .gitattributes+4
- safety_checker/model.fp16.safetensorsAdded+3
- safety_checker/pytorch_model.fp16.binAdded+3
- text_encoder/model.fp16.safetensorsAdded+3
- text_encoder/pytorch_model.fp16.binAdded+3
- unet/diffusion_pytorch_model.fp16.binAdded+3
- unet/diffusion_pytorch_model.fp16.safetensorsAdded+3
- vae/diffusion_pytorch_model.fp16.binAdded+3
- vae/diffusion_pytorch_model.fp16.safetensorsAdded+3
28 unmodified lines29303128 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text28 unmodified lines2930313233343528 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textunet/diffusion_pytorch_model.fp16.safetensors filter=lfs diff=lfs merge=lfs -texttext_encoder/model.fp16.safetensors filter=lfs diff=lfs merge=lfs -textvae/diffusion_pytorch_model.fp16.safetensors filter=lfs diff=lfs merge=lfs -textsafety_checker/model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:08902f19b1cfebd7c989f152fc0507bef6898c706a91d666509383122324b511size 608018440123version https://git-lfs.github.com/spec/v1oid sha256:22ba87205445ad5def13e54919b038dcfb7321ec1c3f4b12487d4fba6036125fsize 608103564123version https://git-lfs.github.com/spec/v1oid sha256:77795e2023adcf39bc29a884661950380bd093cf0750a966d473d1718dc9ef4esize 246144864123version https://git-lfs.github.com/spec/v1oid sha256:05eee911f195625deeab86f0b22b115d7d8bc3adbfc1404f03557f7e4e6a8fd7size 246187076123version https://git-lfs.github.com/spec/v1oid sha256:0623b8e4563a0c852c59733af2b4f8d27a5fdc9b9e9b148f8ad1b77a2b28e527size 1719327893123version https://git-lfs.github.com/spec/v1oid sha256:3563323226a5d7555928b4628ca6f9ac0d1d0e1116eeb0e1e6541f47e045b218size 1719125304123version https://git-lfs.github.com/spec/v1oid sha256:b7643b3e40b9f128eda5fe174fea73c3ef3903562651fb344a79439709c2e503size 167405651123version https://git-lfs.github.com/spec/v1oid sha256:4fbcf0ebe55a0984f5a5e00d8c4521d52359af7229bb4d81890039d2aa16dd7csize 167335342.gitattributes+4
safety_checker/model.fp16.safetensorsAdded+3
safety_checker/pytorch_model.fp16.binAdded+3
text_encoder/model.fp16.safetensorsAdded+3
text_encoder/pytorch_model.fp16.binAdded+3
unet/diffusion_pytorch_model.fp16.binAdded+3
unet/diffusion_pytorch_model.fp16.safetensorsAdded+3
vae/diffusion_pytorch_model.fp16.binAdded+3
vae/diffusion_pytorch_model.fp16.safetensorsAdded+3