Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

tonera
/
FLUX.2-klein-4B-fp8-diffusers

Image-to-Image
Diffusers
Safetensors
Diffusion Single File
English
Flux2KleinPipeline
text-to-image
image-editing
flux
Model card Files Files and versions
xet
Community
1

Instructions to use tonera/FLUX.2-klein-4B-fp8-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use tonera/FLUX.2-klein-4B-fp8-diffusers 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("tonera/FLUX.2-klein-4B-fp8-diffusers", 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 tonera/FLUX.2-klein-4B-fp8-diffusers 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
FLUX.2-klein-4B-fp8-diffusers
7.64 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
tonera's picture
tonera
Add files using upload-large-folder tool
989cbbf verified 4 months ago
  • scheduler
    Add files using upload-large-folder tool 4 months ago
  • text_encoder
    Add files using upload-large-folder tool 4 months ago
  • tokenizer
    Add files using upload-large-folder tool 4 months ago
  • transformer
    Add files using upload-large-folder tool 4 months ago
  • vae
    Add files using upload-large-folder tool 4 months ago
  • .gitattributes
    1.84 kB
    Add files using upload-large-folder tool 4 months ago
  • LICENSE.md
    9.58 kB
    Add files using upload-large-folder tool 4 months ago
  • README.md
    9.85 kB
    Add files using upload-large-folder tool 4 months ago
  • configuration.json
    72 Bytes
    Add files using upload-large-folder tool 4 months ago
  • editing.jpg
    2.51 MB
    xet
    Add files using upload-large-folder tool 4 months ago
  • flux2_klein_fp8.png
    1.46 MB
    xet
    Add files using upload-large-folder tool 4 months ago
  • model_index.json
    446 Bytes
    Add files using upload-large-folder tool 4 months ago
  • others.jpg
    3.39 MB
    xet
    Add files using upload-large-folder tool 4 months ago
  • realism.jpg
    2.86 MB
    xet
    Add files using upload-large-folder tool 4 months ago