Run this model with HF Jobs
Run jasperai/flash-sd3 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/jasperai/flash-sd3. 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/jasperai/flash-sd3 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 jasperai/flash-sd3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jasperai/flash-sd3 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-diffusion-3-medium", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("jasperai/flash-sd3") 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
Update README.md
Browse files38 unmodified lines3940414243444546474849505152535455562 unmodified lines59606162636465666738 unmodified lines# Load LoRAtransformer = SD3Transformer2DModel.from_pretrained("stabilityai/stable-diffusion-3-medium",subfolder="transformer",torch_dtype=torch.float16,revision="refs/pr/26")transformer = PeftModel.from_pretrained(transformer, "jasperai/flash-sd3")# Pipelinepipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium",revision="refs/pr/26",transformer=transformer,torch_dtype=torch.float16,text_encoder_3=None,2 unmodified lines# Schedulerpipe.scheduler = FlashFlowMatchEulerDiscreteScheduler.from_pretrained("stabilityai/stable-diffusion-3-medium",subfolder="scheduler",revision="refs/pr/26",)pipe.to("cuda")38 unmodified lines394041424344454647484950515253542 unmodified lines575859606162636438 unmodified lines# Load LoRAtransformer = SD3Transformer2DModel.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers",subfolder="transformer",torch_dtype=torch.float16,)transformer = PeftModel.from_pretrained(transformer, "jasperai/flash-sd3")# Pipelinepipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers",transformer=transformer,torch_dtype=torch.float16,text_encoder_3=None,2 unmodified lines# Schedulerpipe.scheduler = FlashFlowMatchEulerDiscreteScheduler.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers",subfolder="scheduler",)pipe.to("cuda")
README.md+3-6