Run this model with HF Jobs
Run ByteDance/Hyper-SD 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/ByteDance/Hyper-SD. 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/ByteDance/Hyper-SD 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 ByteDance/Hyper-SD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ByteDance/Hyper-SD with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ByteDance/Hyper-SD") 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 files8 unmodified lines910111213141589 unmodified lines10510610710810911011114 unmodified lines126127128129130131132178 unmodified lines3113123133143158 unmodified lines---# Hyper-SDOfficial Repository of the paper: *[Hyper-SD]()*. (already submitted, coming very soon!)Project Page: https://hyper-sd.github.io/89 unmodified linesimport torchfrom diffusers import DiffusionPipeline, DDIMSchedulerfrom huggingface_hub import hf_hub_downloadbase_model_id = "stabilityai/stable-diffusion-v1-5"repo_name = "ByteDance/Hyper-SD"# Take 2-steps lora as an exampleckpt_name = "Hyper-SD15-2steps-lora.safetensors"14 unmodified linesimport torchfrom diffusers import DiffusionPipeline, TCDSchedulerfrom huggingface_hub import hf_hub_downloadbase_model_id = "stabilityai/stable-diffusion-v1-5"repo_name = "ByteDance/Hyper-SD"ckpt_name = "Hyper-SD15-1step-lora.safetensors"# Load model.178 unmodified lines## Citation```bibtex```8 unmodified lines910111213141589 unmodified lines10510610710810911011114 unmodified lines126127128129130131132178 unmodified lines3113123133143153163173183193203213228 unmodified lines---# Hyper-SDOfficial Repository of the paper: *[Hyper-SD](https://arxiv.org/abs/2404.13686)*.Project Page: https://hyper-sd.github.io/89 unmodified linesimport torchfrom diffusers import DiffusionPipeline, DDIMSchedulerfrom huggingface_hub import hf_hub_downloadbase_model_id = "runwayml/stable-diffusion-v1-5"repo_name = "ByteDance/Hyper-SD"# Take 2-steps lora as an exampleckpt_name = "Hyper-SD15-2steps-lora.safetensors"14 unmodified linesimport torchfrom diffusers import DiffusionPipeline, TCDSchedulerfrom huggingface_hub import hf_hub_downloadbase_model_id = "runwayml/stable-diffusion-v1-5"repo_name = "ByteDance/Hyper-SD"ckpt_name = "Hyper-SD15-1step-lora.safetensors"# Load model.178 unmodified lines## Citation```bibtex@misc{ren2024hypersd,title={Hyper-SD: Trajectory Segmented Consistency Model for Efficient Image Synthesis},author={Yuxi Ren and Xin Xia and Yanzuo Lu and Jiacheng Zhang and Jie Wu and Pan Xie and Xing Wang and Xuefeng Xiao},year={2024},eprint={2404.13686},archivePrefix={arXiv},primaryClass={cs.CV}}```
README.md+11-4