Instructions to use cudabenchmarktest/flux1-fill-dev-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use cudabenchmarktest/flux1-fill-dev-fp8 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("cudabenchmarktest/flux1-fill-dev-fp8", 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] - Notebooks
- Google Colab
- Kaggle
| license: other | |
| license_name: flux-1-dev-non-commercial-license | |
| license_link: LICENSE | |
| base_model: black-forest-labs/FLUX.1-Fill-dev | |
| pipeline_tag: image-to-image | |
| library_name: diffusers | |
| tags: | |
| - flux | |
| - inpainting | |
| - fp8 | |
| - non-commercial | |
| # flux1-fill-dev-fp8 | |
| Float8 (`e4m3fn`) safetensors of [`black-forest-labs/FLUX.1-Fill-dev`](https://huggingface.co/black-forest-labs/FLUX.1-Fill-dev), prepared for inpainting workloads on consumer GPUs. This repository is an unmodified redistribution of [`boricuapab/flux1-fill-dev-fp8`](https://huggingface.co/boricuapab/flux1-fill-dev-fp8) with an explicit copy of the upstream license added (the source had an empty LICENSE file). | |
| ## Files | |
| - `flux1-fill-dev-fp8.safetensors` — single-file fp8 weights (~11 GB) | |
| - `LICENSE` — FLUX.1 [dev] Non-Commercial License text | |
| - `README.md` — this file | |
| ## Inference | |
| ```python | |
| import torch | |
| from diffusers import FluxFillPipeline | |
| pipe = FluxFillPipeline.from_pretrained( | |
| "cudabenchmarktest/flux1-fill-dev-fp8", | |
| torch_dtype=torch.bfloat16, | |
| ).to("cuda") | |
| result = pipe( | |
| prompt="...", | |
| image=init_image, | |
| mask_image=mask_image, | |
| num_inference_steps=28, | |
| guidance_scale=3.5, | |
| ).images[0] | |
| ``` | |
| ## License and attribution | |
| Governed by the **FLUX.1 [dev] Non-Commercial License** (see `LICENSE`). Non-commercial use only. Commercial use requires a separate license from Black Forest Labs. | |
| - Original training and release: Black Forest Labs (`black-forest-labs/FLUX.1-Fill-dev`). | |
| - fp8 conversion: `boricuapab` (`boricuapab/flux1-fill-dev-fp8`). | |
| - This redistribution: weights unmodified, LICENSE added, README replaced. No additional modifications. | |