Instructions to use black-forest-labs/FLUX.1-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.1-dev 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") 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
How " reshard " 3 .safetensors files of a flux fine tuned into checkpoint ?
Hi there, I got diffusion_pytorch_model-00001-of-00003.safetensors, diffusion_pytorch_model-00002-of-00003.safetensors and diffusion_pytorch_model-00003-of-00003.safetensors after full finetuned Flux with Ostris Ai toolkit ( transformer files ) , I guess at this point I will have to fusion/merge theses 3 parts for created the whole checkpoint usable for a1111 Forge ( so reshard theses 3 shards ) . Is anyone know a script or a tool who can allow this last step ?
You are very lucky i saw this post.
https://github.com/NotTheStallion/Re-shard_Safetensors
Let me know if you find any problems or bugs while setting it up.
You are very lucky i saw this post.
https://github.com/NotTheStallion/Re-shard_SafetensorsLet me know if you find any problems or bugs while setting it up.
Thanks a lot, gonna try it and let you know