Instructions to use fal/FLUX.2-dev-Turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fal/FLUX.2-dev-Turbo 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.2-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("fal/FLUX.2-dev-Turbo") 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
| language: | |
| - en | |
| license: other | |
| license_name: flux-dev-non-commercial-license | |
| license_link: https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/main/LICENSE.txt | |
| base_model: black-forest-labs/FLUX.2-dev | |
| tags: | |
| - image-generation | |
| - flux | |
| - lora | |
| - distillation | |
| - turbo | |
| pipeline_tag: text-to-image | |
| library_name: diffusers | |
| # FLUX.2 [dev] Turbo LoRA | |
| **FLUX.2 [dev] Turbo** is a distilled LoRA adapter for [FLUX.2 [dev]](https://huggingface.co/black-forest-labs/FLUX.2-dev) that enables high-quality image generation in just **8 inference steps**. | |
|  | |
| --- | |
| --- | |
|  | |
| ## Key Features | |
| - β‘ **8-step inference** β 6x faster than the base model's typical 50 steps | |
| - π¨ **Quality preserved** β Matches or surpasses the original FLUX.2 [dev] quality | |
| - π **LoRA adapter** β Lightweight, easy to integrate with existing FLUX.2 workflows | |
| - πΌοΈ **Multiple modes** β Supports both text-to-image and image editing | |
| ## Hosted API Endpoints | |
| FLUX.2 [dev] Turbo is available through fal.ai hosted endpoints: | |
| - [Text-to-Image](https://fal.ai/models/fal-ai/flux-2/turbo) | |
| - [Image Editing](https://fal.ai/models/fal-ai/flux-2/turbo/edit) | |
| ## ComfyUI | |
| ComfyUI-compatible weights are available in the `comfy/` directory, converted by [ByteZSzn](https://huggingface.co/ByteZSzn/Flux.2-Turbo-ComfyUI). | |
| ## Usage | |
| ```python | |
| import torch | |
| from diffusers import Flux2Pipeline | |
| # Pre-shifted custom sigmas for 8-step turbo inference | |
| TURBO_SIGMAS = [1.0, 0.6509, 0.4374, 0.2932, 0.1893, 0.1108, 0.0495, 0.00031] | |
| pipe = Flux2Pipeline.from_pretrained( | |
| "black-forest-labs/FLUX.2-dev", | |
| torch_dtype=torch.bfloat16 | |
| ).to("cuda") | |
| pipe.load_lora_weights( | |
| "fal/FLUX.2-dev-Turbo", | |
| weight_name="flux.2-turbo-lora.safetensors" | |
| ) | |
| prompt = "Industrial product shot of a chrome turbocharger with glowing hot exhaust manifold, engraved text 'FLUX.2 [dev] Turbo by fal' on the compressor housing and 'fal' on the turbine wheel, gradient heat glow from orange to electric blue , studio lighting with dramatic shadows, shallow depth of field, engineering blueprint pattern in background." | |
| image = pipe( | |
| prompt=prompt, | |
| sigmas=TURBO_SIGMAS, | |
| guidance_scale=2.5, | |
| height=1024, | |
| width=1024, | |
| num_inference_steps=8, | |
| ).images[0] | |
| image.save("output.png") | |
| ``` | |
| ## License | |
| This model inherits the [FLUX [dev] Non-Commercial License](https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/main/LICENSE.txt) from the base model. | |