Run this model with HF Jobs
Run ostris/OpenFLUX.1 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/ostris/OpenFLUX.1. 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/ostris/OpenFLUX.1 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 ostris/OpenFLUX.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/OpenFLUX.1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ostris/OpenFLUX.1", dtype=torch.bfloat16, device_map="cuda") 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
Upload folder using huggingface_hub
Browse filesFiles changed (4)
12345678{"_class_name": "FluxTransformer2DModel","_diffusers_version": "0.30.0.dev0","_name_or_path": "black-forest-labs/FLUX.1-schnell","attention_head_dim": 128,"guidance_embeds": false,"in_channels": 64,"joint_attention_dim": 4096,12345678910111213{"_class_name": "FluxTransformer2DModel","_diffusers_version": "0.30.0.dev0","_name_or_path": "/home/jaret/Dev/models/hf/ostris_FLUX.1-schnell-train/transformer","attention_head_dim": 128,"axes_dims_rope": [16,56,56],"guidance_embeds": false,"in_channels": 64,"joint_attention_dim": 4096,
123version https://git-lfs.github.com/spec/v1oid sha256:85691fa8a8b7ffc417482c68649cf9a39743776c0569bbc148ecfc9358abdafasize 9962579816123version https://git-lfs.github.com/spec/v1oid sha256:b1e88a2b328a7e0931b46c3aa3aca90b86da764d0d4690ce701531d29c5d6e24size 9962579816
123version https://git-lfs.github.com/spec/v1oid sha256:250563446de2a3641599ae22405c326abacd8d4cc2b949726aec4d170cd717bfsize 9949328432123version https://git-lfs.github.com/spec/v1oid sha256:731c47f163efbd34cdadb44a78072358d0c78d3f1b1445c82d27db8b18213963size 9949328432
123version https://git-lfs.github.com/spec/v1oid sha256:a9cdd87d662762edeede625e563f87b701b2744873767b1640c94506d5b684c4size 3870584640123version https://git-lfs.github.com/spec/v1oid sha256:9284a735cef20472890d918774bdbf0b4cd2de9044b790d0874836c4181bc8e1size 3870584640
transformer/config.json+6-1
transformer/diffusion_pytorch_model-00001-of-00003.safetensors+1-1
transformer/diffusion_pytorch_model-00002-of-00003.safetensors+1-1
transformer/diffusion_pytorch_model-00003-of-00003.safetensors+1-1