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 files84 unmodified lines858687888990911 unmodified line9394959697989984 unmodified linesnegative_prompt = ""with torch.cuda.amp.autocast(dtype=dtype):prior_output = prior_pipeline(prompt=prompt,height=1024,width=1024,1 unmodified lineguidance_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,84 unmodified lines858687888990911 unmodified line9394959697989984 unmodified linesnegative_prompt = ""with torch.cuda.amp.autocast(dtype=dtype):prior_output = prior(prompt=prompt,height=1024,width=1024,1 unmodified lineguidance_scale=4.0,num_images_per_prompt=num_images_per_prompt,)decoder_output = decoder(image_embeddings=prior_output.image_embeddings,prompt=prompt,negative_prompt=negative_prompt,
README.md+2-2