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
Commit History
-
Add files using upload-large-folder tool
Verified signature7264beb
-
Add safetensors
Verified signatureea5292e
-
Record the upstream license and the modification, and drop the stale internal note
Verified signature01f34ca
-
Fix model card tags
Verified signaturee58f310
-
Add pre-cast fp8 text encoder checkpoint
Verified signature128c0ce -
Add files using upload-large-folder tool
Verified signature5864622
-
Set base_model and add unsloth tag
Verified signature454cedd -
Add quantization header and logos
Verified signatured2ba892 -
Add sample widget and showcase table
Verified signature66de2f3 -
Rename checkpoints to model-name files
Verified signature9fb3555 -
Add official model card and quantized samples
Verified signature2ccf030 -
Add files using upload-large-folder tool
Verified signature12d52dd -
initial commit
Verified signatureaecb59b