Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2KleinPipeline
image-generation
image-editing
flux
Run this model with HF Jobs
Run rootlocalghost/FLUX.2-klein-9B-FP8 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/rootlocalghost/FLUX.2-klein-9B-FP8. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/rootlocalghost/FLUX.2-klein-9B-FP8 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use rootlocalghost/FLUX.2-klein-9B-FP8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rootlocalghost/FLUX.2-klein-9B-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("rootlocalghost/FLUX.2-klein-9B-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] - Diffusion Single File
How to use rootlocalghost/FLUX.2-klein-9B-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
Download editing.jpg from rootlocalghost/FLUX.2-klein-9B-FP8: direct link, hf CLI and curl.
- Browser
- Download file 2.51 MB
-
https://huggingface.co/rootlocalghost/FLUX.2-klein-9B-FP8/resolve/main/editing.jpg
- Command line
-
hf download hf://rootlocalghost/FLUX.2-klein-9B-FP8/editing.jpg
-
curl -L -o editing.jpg https://huggingface.co/rootlocalghost/FLUX.2-klein-9B-FP8/resolve/main/editing.jpg
2.51 MB

- Xet hash:
- 080a9d185eaa300cdf673f067e14250bf7754418996fce91ef82aabb296f4a49
- Size of remote file:
- 2.51 MB
- SHA256:
- 2912ca5a7cb9ccbdc8627f8123894d28d8d5e5b0425e8907b3c8111659885ce0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.