Run this model with HF Jobs
Run technillogue/stable-diffusion-2-1 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/technillogue/stable-diffusion-2-1. 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/technillogue/stable-diffusion-2-1 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 technillogue/stable-diffusion-2-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use technillogue/stable-diffusion-2-1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("technillogue/stable-diffusion-2-1", 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 ·
f2ecae1
1
Parent(s): fde586f
Adding `safetensors` variant of this model
Browse filesFiles changed (3)
123version https://git-lfs.github.com/spec/v1oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668size 680821096123version https://git-lfs.github.com/spec/v1oid sha256:8a3a4d7978884c5e4ef00b62641b1b544b257be2f6715d984188610ad6475ad2size 1731904736123version https://git-lfs.github.com/spec/v1oid sha256:c8b011e5a18c53888d51a81aa28223ddec87b450c14dc9650d9c3ebbcd17624esize 167335350text_encoder/model.safetensorsAdded+3
unet/diffusion_pytorch_model.safetensorsAdded+3
vae/diffusion_pytorch_model.safetensorsAdded+3