Image-to-Image
Diffusers
Diffusion Single File
English
fp8
unsloth
quantized
image-generation
image-editing
flux
Instructions to use unsloth/FLUX.2-dev-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use unsloth/FLUX.2-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("unsloth/FLUX.2-dev-FP8", dtype=torch.bfloat16, device_map="cuda") prompt = "cute sloth typing on a computer (INT8)" 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 unsloth/FLUX.2-dev-FP8 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Record the upstream license and the modification, and drop the stale internal note
Browse files
README.md
CHANGED
|
@@ -4,6 +4,7 @@ language:
|
|
| 4 |
- en
|
| 5 |
license: other
|
| 6 |
license_name: flux-non-commercial-license
|
|
|
|
| 7 |
extra_gated_prompt: By clicking "Agree", you agree to the [FLUX Non-Commercial License
|
| 8 |
Agreement](https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/main/LICENSE.md)
|
| 9 |
and acknowledge the [Acceptable Use Policy](https://bfl.ai/legal/usage-policy).
|
|
@@ -185,7 +186,10 @@ Details:
|
|
| 185 |
- Validated against same-seed dense bf16 renders (SSIM, LPIPS-vgg, CLIP delta, non-finite and
|
| 186 |
black-frame checks) on torch 2.12.1 and torchao 0.17.
|
| 187 |
|
| 188 |
-
Note: Derived from FLUX.2-dev
|
|
|
|
|
|
|
|
|
|
| 189 |
|
| 190 |
## Samples
|
| 191 |
|
|
|
|
| 4 |
- en
|
| 5 |
license: other
|
| 6 |
license_name: flux-non-commercial-license
|
| 7 |
+
license_link: https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/main/LICENSE.md
|
| 8 |
extra_gated_prompt: By clicking "Agree", you agree to the [FLUX Non-Commercial License
|
| 9 |
Agreement](https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/main/LICENSE.md)
|
| 10 |
and acknowledge the [Acceptable Use Policy](https://bfl.ai/legal/usage-policy).
|
|
|
|
| 186 |
- Validated against same-seed dense bf16 renders (SSIM, LPIPS-vgg, CLIP delta, non-finite and
|
| 187 |
black-frame checks) on torch 2.12.1 and torchao 0.17.
|
| 188 |
|
| 189 |
+
Note: Derived from black-forest-labs/FLUX.2-dev and distributed under the
|
| 190 |
+
[FLUX Non-Commercial License](https://huggingface.co/black-forest-labs/FLUX.2-dev/blob/main/LICENSE.md).
|
| 191 |
+
The weights are modified only by the quantization described above. Not an official Black Forest Labs
|
| 192 |
+
product and not endorsed by Black Forest Labs.
|
| 193 |
|
| 194 |
## Samples
|
| 195 |
|