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
Delete Hyper-SDXL-1step-Unet-workflow.json
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502{ "last_node_id": 24, "last_link_id": 39, "nodes": [ { "id": 8, "type": "VAEDecode", "pos": [ 967, 130 ], "size": { "0": 210, "1": 46 }, "flags": {}, "order": 8, "mode": 0, "inputs": [ { "name": "samples", "type": "LATENT", "link": 35 }, { "name": "vae", "type": "VAE", "link": 8 } ], "outputs": [ { "name": "IMAGE", "type": "IMAGE", "links": [ 9 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "VAEDecode" } }, { "id": 19, "type": "CLIPTextEncode", "pos": [ 6, 541 ], "size": { "0": 422.84503173828125, "1": 164.31304931640625 }, "flags": {}, "order": 6, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 25, "slot_index": 0 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 31 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "" ] }, { "id": 5, "type": "EmptyLatentImage", "pos": [ 463, 707 ], "size": { "0": 315, "1": 106 }, "flags": {}, "order": 0, "mode": 0, "outputs": [ { "name": "LATENT", "type": "LATENT", "links": [ 34 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "EmptyLatentImage" }, "widgets_values": [ 1024, 1024, 1 ] }, { "id": 21, "type": "SamplerCustom", "pos": [ 570, -189 ], "size": { "0": 355.20001220703125, "1": 230 }, "flags": {}, "order": 7, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 36 }, { "name": "positive", "type": "CONDITIONING", "link": 30 }, { "name": "negative", "type": "CONDITIONING", "link": 31 }, { "name": "sampler", "type": "SAMPLER", "link": 29 }, { "name": "sigmas", "type": "SIGMAS", "link": 38 }, { "name": "latent_image", "type": "LATENT", "link": 34 } ], "outputs": [ { "name": "output", "type": "LATENT", "links": null, "shape": 3 }, { "name": "denoised_output", "type": "LATENT", "links": [ 35 ], "shape": 3, "slot_index": 1 } ], "properties": { "Node name for S&R": "SamplerCustom" }, "widgets_values": [ true, 448506039228027, "randomize", 1 ] }, { "id": 22, "type": "KSamplerSelect", "pos": [ 145, -198 ], "size": { "0": 315, "1": 58 }, "flags": {}, "order": 1, "mode": 0, "outputs": [ { "name": "SAMPLER", "type": "SAMPLER", "links": [ 29 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "KSamplerSelect" }, "widgets_values": [ "lcm" ] }, { "id": 9, "type": "SaveImage", "pos": [ 1274, -187 ], "size": { "0": 391.4791564941406, "1": 700.6646728515625 }, "flags": {}, "order": 9, "mode": 0, "inputs": [ { "name": "images", "type": "IMAGE", "link": 9 } ], "properties": {}, "widgets_values": [ "ComfyUI" ] }, { "id": 24, "type": "HyperSDXL1StepUnetScheduler", "pos": [ 104, 225 ], "size": { "0": 315, "1": 58 }, "flags": {}, "order": 4, "mode": 0, "inputs": [ { "name": "model", "type": "MODEL", "link": 39, "slot_index": 0 } ], "outputs": [ { "name": "SIGMAS", "type": "SIGMAS", "links": [ 38 ], "shape": 3, "slot_index": 0 } ], "properties": { "Node name for S&R": "HyperSDXL1StepUnetScheduler" }, "widgets_values": [ 1 ] }, { "id": 20, "type": "Note", "pos": [ -471, -169 ], "size": { "0": 322.0227355957031, "1": 164.27613830566406 }, "flags": {}, "order": 2, "mode": 0, "properties": { "text": "" }, "widgets_values": [ "Use the Hyper-SDXL Unet for 1-step inference. \nIt requires the `HyperSDXL1StepUnetScheduler` to denoise from 800 timestep rather than 999.\n\n\nAttention: `HyperSDXL1StepUnetScheduler` only support our 1-step Unet inference!" ], "color": "#432", "bgcolor": "#653" }, { "id": 6, "type": "CLIPTextEncode", "pos": [ -31, -31 ], "size": { "0": 422.84503173828125, "1": 164.31304931640625 }, "flags": {}, "order": 5, "mode": 0, "inputs": [ { "name": "clip", "type": "CLIP", "link": 23, "slot_index": 0 } ], "outputs": [ { "name": "CONDITIONING", "type": "CONDITIONING", "links": [ 30 ], "slot_index": 0 } ], "properties": { "Node name for S&R": "CLIPTextEncode" }, "widgets_values": [ "a photo of a dog" ] }, { "id": 4, "type": "CheckpointLoaderSimple", "pos": [ -568, 290 ], "size": { "0": 315, "1": 98 }, "flags": {}, "order": 3, "mode": 0, "outputs": [ { "name": "MODEL", "type": "MODEL", "links": [ 36, 39 ], "slot_index": 0 }, { "name": "CLIP", "type": "CLIP", "links": [ 23, 25 ], "slot_index": 1 }, { "name": "VAE", "type": "VAE", "links": [ 8 ], "slot_index": 2 } ], "properties": { "Node name for S&R": "CheckpointLoaderSimple" }, "widgets_values": [ "Hyper-SDXL-1step-Unet-Comfyui.fp16.safetensors" ] } ], "links": [ [ 8, 4, 2, 8, 1, "VAE" ], [ 9, 8, 0, 9, 0, "IMAGE" ], [ 23, 4, 1, 6, 0, "CLIP" ], [ 25, 4, 1, 19, 0, "CLIP" ], [ 29, 22, 0, 21, 3, "SAMPLER" ], [ 30, 6, 0, 21, 1, "CONDITIONING" ], [ 31, 19, 0, 21, 2, "CONDITIONING" ], [ 34, 5, 0, 21, 5, "LATENT" ], [ 35, 21, 1, 8, 0, "LATENT" ], [ 36, 4, 0, 21, 0, "MODEL" ], [ 38, 24, 0, 21, 4, "SIGMAS" ], [ 39, 4, 0, 24, 0, "MODEL" ] ], "groups": [], "config": {}, "extra": {}, "version": 0.4}Hyper-SDXL-1step-Unet-workflow.jsonDeleted-502