Instructions to use black-forest-labs/FLUX.2-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use black-forest-labs/FLUX.2-dev with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-dev", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Diffusion Single File
How to use black-forest-labs/FLUX.2-dev with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Inference
- Notebooks
- Google Colab
- Kaggle
Inquiry Regarding the Open-Weight Release of FLUX.2 Max
Hello BFL Team and Community,
First of all, congratulations on the impressive release of the FLUX.2 model family. The community is highly enthusiastic about the capabilities demonstrated so far.
While exploring the Hugging Face repository, I noticed that the FLUX.2-dev and FLUX.2-klein (4B, 9B, etc.) models have been graciously provided to the community. However, the FLUX.2 Max model currently appears to be available exclusively via API (e.g., BFL API, Together AI).
Could you please clarify if there are any future plans to release the open weights for FLUX.2 Max? Many of us rely heavily on local environments (such as ComfyUI or GGUF) for customized workflows and advanced experimentation. It would be highly beneficial to know if Max will eventually be accessible for local inference, or if the strategy is to keep it strictly proprietary/API-only.
Thank you for your time and for the outstanding work you continue to deliver!