Run this model with HF Jobs
Run stabilityai/stable-cascade 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/stabilityai/stable-cascade. 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/stabilityai/stable-cascade 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 stabilityai/stable-cascade with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-cascade with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-cascade", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files83 unmodified lines8485868788899091929394959697989910010110210310483 unmodified linesprompt = "Anthropomorphic cat dressed as a pilot"negative_prompt = ""prior_output = prior_pipeline(prompt=caption,height=1024,width=1024,negative_prompt=negative_prompt,guidance_scale=4.0,num_images_per_prompt=num_images_per_prompt,)decoder_output = decoder_pipeline(image_embeddings=prior_output.image_embeddings,prompt=caption,negative_prompt=negative_prompt,guidance_scale=0.0,output_type="pil",).images```## Uses83 unmodified lines8485868788899091929394959697989910010110210310410583 unmodified linesprompt = "Anthropomorphic cat dressed as a pilot"negative_prompt = ""with torch.cuda.amp.autocast(dtype=torch.bfloat16):prior_output = prior_pipeline(prompt=prompt,height=1024,width=1024,negative_prompt=negative_prompt,guidance_scale=4.0,num_images_per_prompt=num_images_per_prompt,)decoder_output = decoder_pipeline(image_embeddings=prior_output.image_embeddings,prompt=prompt,negative_prompt=negative_prompt,guidance_scale=0.0,output_type="pil",).images```## Uses
README.md+16-15