alt.freeweights.image / FLUX.2-klein-4B-FP8
From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.imageSubject:

FLUX.2-klein-4B-FP8

Date: 2026-11-15Commit: 781a4a5Signed: 2DC28CC7B26A283B ✓

Image to image model. Safetensors weights, 25.1 GB in all. Published by unsloth under Apache-2.0.

image25.1GBFLUX.2-klein-4B-FP8safetensorspermissive
FactsParamsnot statedSize25.1 GBFormatssafetensorsTaskimage to imageLicenseApache-2.0From sourcepermissive
$ fw get unsloth/FLUX.2-klein-4B-FP8
# manifest sha256 c6ae14de88a9… · 25.1 GB · 14 files
$ fw verify ./FLUX.2-klein-4B-FP8 unsloth/FLUX.2-klein-4B-FP8
From sourceHosted (signed)unsloth/FLUX.2-klein-4B-FP8Last check: 2026-11-15 02:28 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of FLUX.2-klein-4B.

Works with

Overview

Size
25.1 GB
Weights
17.2 GB (safetensors)
Parameters
not stated
Formats
safetensors
Task
image to image
License
Apache-2.0 (permissive)
Files
14, each with a sha256
Publisher
unsloth
Added
2026-11-15
Section
alt.freeweights.image
Lineage

Original release from the publisher.

Base model: black-forest-labs/FLUX.2-klein-4B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:28 UTCpassed

Model card

From the publisher at commit 781a4a5. Shown as plain text with links; images open at the publisher.

This is an FP8 / INT8 quantized version of FLUX.2-klein-4B.

  • Optimized for efficient inference with reduced memory footprint. Same-seed LPIPS vs the bf16 model (lower is better): 0.123 INT8, 0.104 FP8.

https://github.com/unslothai/unsloth/ https://discord.gg/unsloth https://docs.unsloth.ai/


Samples#

Prompt: "cute sloth typing on a computer"

| INT8 | INT8

| Image: image | Image: image

| FP8 | FP8

| Image: image | Image: image


Image: Teaser Image: Teaser Image: Teaser

The FLUX.2 [klein] model family are our fastest image models to date. FLUX.2 [klein] unifies generation and editing in a single compact architecture, delivering state-of-the-art quality with end-to-end inference in as low as under a second. Built for applications that require real-time image generation without sacrificing quality, and runs on consumer hardware, with as little as 13GB VRAM.

FLUX.2 [klein] 4B is a 4 billion parameter rectified flow transformer capable of generating images from text descriptions and supports multi-reference editing capabilities.

Fully open under Apache 2.0. Our most accessible model runs on consumer GPUs like the RTX 3090/4070. Compact but capable: supports text-to-image, image editing, and multi-reference at quality that punches above its size. Built for local development, edge deployment, and production use.

For more information, please read our blog post.

Key Features#

  1. Our fastest distilled model for sub-second image generation.
  2. Best suited for interactive workflows, production deployments, and latency-critical applications.
  3. Text-to-image and image-to-image multi-reference editing in a single unified model.
  4. Runs on consumer GPUs (~13GB VRAM).
  5. Open weights available for commercial use under the Apache 2.0 license.

Usage#

We provide a reference implementation of FLUX.2 [klein] 4B, as well as sampling code, in a dedicated GitHub repository. Developers and creatives looking to build on top of FLUX.2 [klein] 4B are encouraged to use this as a starting point.

API Endpoints#

The FLUX.2 [klein] 4B model is available via the BFL API:

FLUX.2 [klein] 4B is also available in both ComfyUI and Diffusers.

Using with Diffusers 🧨#

To use FLUX.2 [klein] 4B with the 🧨 Diffusers python library, first install or upgrade diffusers:

pip install git+https://github.com/huggingface/diffusers.git

Then you can use Flux2KleinPipeline to run the model:

import torch
from diffusers import Flux2KleinPipeline

device = "cuda"
dtype = torch.bfloat16

pipe = Flux2KleinPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", torch_dtype=dtype)
pipe.enable_model_cpu_offload()  # save some VRAM by offloading the model to CPU

prompt = "A cat holding a sign that says hello world"
image = pipe(
    prompt=prompt,
    height=1024,
    width=1024,
    guidance_scale=1.0,
    num_inference_steps=4,
    generator=torch.Generator(device=device).manual_seed(0)
).images[0]
image.save("flux-klein.png")

Limitations

  • This model is not intended or able to provide factual information.
  • While the model can output text, text rendered may be inaccurate or subject to distortion.
  • As a statistical model, this checkpoint may represent or amplify biases observed in the training data.
  • The model may fail to generate output that matches the prompts.
  • Prompt following is heavily influenced by the prompting style.

Out-of-Scope Use

The model and its derivatives may not be used:

  • In any way that violates applicable law.
  • For the purpose of exploiting, harming or attempting to exploit or harm minors in any way; including but not limited to the solicitation, creation, acquisition, or dissemination of child exploitative content.
  • To generate or disseminate deceptive, fraudulent, misleading or otherwise harmful content.
  • To generate or disseminate personal identifiable information that can be used to harm an individual.
  • To harass, abuse, threaten, stalk, or bully individuals or groups of individuals.
  • To create non-consensual intimate imagery or illegal pornographic content.
  • For fully automated decision making or high risk applications that adversely impact an individual's legal rights or otherwise create or modify a binding, enforceable obligation.

Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.

Hardware

The FLUX.2 [klein] 4B model fits in ~13GB VRAM and is accessible on NVIDIA RTX 3090/4070 and above.


Responsible AI Development

Black Forest Labs is committed to the responsible development and deployment of our models. Prior to releasing the FLUX.2 family of models, we evaluated and mitigated a number of risks in our model checkpoints and hosted services, including the generation of unlawful content, including child sexual abuse material (CSAM) and nonconsensual intimate imagery (NCII). We implemented a series of pre-release mitigations to help prevent misuse by third parties, with additional post-release mitigations to help address residual risks:

  1. Pre-training mitigation. We filtered pre-training data for multiple categories of "not safe for work" (NSFW) and known child sexual abuse material (CSAM) to help prevent a user generating unlawful content in response to text prompts or uploaded images. We have partnered with the https://www.iwf.org.uk/, an independent nonprofit organization dedicated to preventing online abuse, to filter known CSAM from the training data.
  2. Post-training mitigation. Subsequently, we undertook multiple rounds of targeted fine-tuning to provide additional mitigation against potential abuse, including both text-to-image (T2I) and image-to-image (I2I) attacks. By inhibiting certain behaviors and suppressing certain concepts in the trained model, these techniques can help to prevent a user generating synthetic CSAM or NCII from a text prompt, or transforming an uploaded image into synthetic CSAM or NCII.
  3. Ongoing evaluation. Throughout this process, we conducted multiple internal and external third-party evaluations of model checkpoints to identify further opportunities for mitigation. External third-party evaluations focused on eliciting CSAM and NCII through adversarial testing with (i) text-only prompts, (ii) a single uploaded reference image with text prompts, and (iii) multiple uploaded reference images with text prompts. Based on this feedback, we conducted further safety fine-tuning to produce our open-weight FLUX.2 [klein] models.
  4. Release decision. After safety fine-tuning and prior to release, we conducted a final third-party evaluation of the proposed release checkpoints, focused on T2I and I2I generation of synthetic CSAM and NCII, including a comparison with other open-weight T2I and I2I models. The final FLUX.2 [klein] checkpoints demonstrated high resilience against violative inputs in complex generation and editing tasks, and demonstrated higher resilience than leading open-weight models across these risk categories. Based on these findings, we approved the release of the open-weight FLUX.2 [klein] 4B models under an Apache 2.0 license and the release of the FLUX.2 [klein] 9B models under a non-commercial license to support third-party research and development.
  5. Inference filters. The repository for the FLUX.2 [klein] models includes filters for NSFW and protected content in inputs and outputs. Filters or manual review must be used with the FLUX.2 [klein] 9B models under the terms of the FLUX Non-Commercial License, and we encourage deployers to implement these mitigations when using the FLUX.2 [klein] 4B models. Where we implement these features on our own hosted services, we may apply multiple filters to intercept text prompts, uploaded images, and output images. We utilize both in-house and third-party filters to mitigate against harmful outputs, such as CSAM and NCII outputs, including filters provided by https://thehive.ai/ and https://www.microsoft.com/.
  6. Content provenance. Content provenance features can help users and platforms better identify, label, and interpret AI-generated content online. The inference code for FLUX.2 [klein] implements an example of pixel-layer watermarking. Additionally, this repository includes links to the https://c2pa.org/ standard for metadata. The API for FLUX.2 [klein] applies cryptographically-signed C2PA metadata to downloaded output content to indicate that images were produced with our model.
  7. Policies. Acceptable use of our models and access to our API are governed by policies set out in applicable documentation, including FLUX Non-Commercial License (for our non-commercial open-weight users); Developer Terms of Service, Self-Hosted Commercial License Terms, and Usage Policy (for our commercial open-weight model users); and Developer Terms of Service, FLUX API Service Terms, and Usage Policy (for our API users). These prohibit the generation of unlawful content or the use of generated content for unlawful, defamatory, or abusive purposes.
  8. Safety. Black Forest Labs takes model safety seriously. We provide a dedicated email address (safety@blackforestlabs.ai) to solicit feedback from the community. We maintain a reporting relationship with organizations such as the https://www.iwf.org.uk/ and the https://www.missingkids.org/, and welcome ongoing engagement with authorities, developers, and researchers to share intelligence about emerging risks and develop effective mitigations.

License

This model is licensed under the https://www.apache.org/licenses/LICENSE-2.0.

Trademarks & IP

This project may contain trademarks or logos for projects, products, or services. Use of Black Forest Labs and FLUX trademarks or logos in modified versions of this project must not cause confusion or imply sponsorship or endorsement. Any use of third-party trademarks, intellectual property or logos are subject to those third-party's policies.


Quantized transformer checkpoints (this repo)#

This repo adds pre-quantized diffusion transformer checkpoints for black-forest-labs/FLUX.2-klein-4B, built with torchao dynamic activation quantization from the dense bf16 transformer. The official model card above is unchanged from the source repo.

Files:

  • FLUX.2-klein-4B-INT8.pt (4.0 GB)
  • FLUX.2-klein-4B-FP8.pt (3.9 GB)

Details:

  • int8: Int8DynamicActivationInt8WeightConfig (per-token activation, per-channel weight, torch._int_mm).
  • fp8: Float8DynamicActivationFloat8WeightConfig with PerRow granularity (e4m3, torch._scaled_mm). The loader must floor the dynamic activation scale (activation_value_lb=1e-12 on torchao 0.13+) so all-zero activation token rows cannot produce a zero scale.
  • Loading a checkpoint is bit-identical to quantizing the dense bf16 transformer on the fly; the checkpoint skips the dense load and quantize step.
  • Validated against same-seed dense bf16 renders (SSIM, LPIPS-vgg, CLIP delta, non-finite and black-frame checks) on torch 2.12.1 and torchao 0.17.

Samples#

Prompt: "cute sloth typing on a computer" (1024x1024, family default steps/guidance, seeds 0-2).

int8

Image: image Image: image Image: image

fp8

Image: image Image: image Image: image

Files

14 files · 25.1 GBWeights 17.2 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.85 KB62ee6e240d15eede8b926f44fdfccf5f60da2d64628a3b5af5b2a638e86ecd37
FLUX.2-klein-4B-FP8.pt3.88 GBa94b81ec4581980973bfc2201a29e539004a3615c1c4f5b4982455df43a02260
FLUX.2-klein-4B-FP8.safetensors3.88 GB975c805a46a1b07d25655a806f0ae05169bfe9f5d8cd77d4c9a9b6099bad725f
FLUX.2-klein-4B-INT8-ConvRot.safetensors4.05 GB8776b823f0947d631dbe39c3c94f2a8a4d94b493b2ab6e34ea917b6fc276096a
FLUX.2-klein-4B-INT8.pt4.05 GBc6df3177cfeead330dfdcebcfa058af2706700180a4b6c2040d5d0e997fb2c81
FLUX.2-klein-4B-INT8.safetensors4.05 GB96b8f423f607094436b4d067e4462b1c1089bbb80f64b98798691c64e0588530
FLUX.2-klein-4B-text_encoder-FP8.safetensors5.19 GBcaa768f498a811fa9355d98c28c426ec750c61c81177669e2bd690a101bbb9aa
README.md13.3 KB683a31f4fe0f713a1f1b14fc8393aa4c6732fc5ef96fc79644938ba4eccf2b34
samples/fp8_1.png1.27 MB51b330aecc4a6eb6f75a04ec145db36b8e97fcb6632844f9c49584dac0722f35
samples/fp8_2.png1.20 MBf58c52b8350bed517865560c8938f8afdd0ac78339849d612fdf2131f86a428f
samples/fp8_3.png1.39 MB2fdebca205050a6170255829f05658866c229c7907147ca965ae93f452b082ab
samples/int8_1.png1.26 MB5bfc265a4c7befae17c014a4c75f2311f0d9be2c2bb3a0dcbfb49dfbdb770b46
samples/int8_2.png1.26 MBc94a67e5f0109cd707ae71e3b679e83dbba1e6fa9e4885360f8fb4b82e54f76b
samples/int8_3.png1.33 MBb5e331b04263c4b000c9da39e8a240235e10acb543cbc72a48302cecd98376e2
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
781a4a5984 pinned now2026-11-15 02:28 UTC14 files · 25.1 GB

Use it

$ fw get unsloth/FLUX.2-klein-4B-FP8
# manifest sha256 c6ae14de88a9… · 25.1 GB · 14 files
$ fw verify ./FLUX.2-klein-4B-FP8 unsloth/FLUX.2-klein-4B-FP8
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/unsloth/FLUX.2-klein-4B-FP8.json --dir ./FLUX.2-klein-4B-FP8 $ python3 fw.py verify ./FLUX.2-klein-4B-FP8 ./unsloth__FLUX.2-klein-4B-FP8.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/FLUX.2-klein-4B-FP8 --revision 781a4a598429cde0d0478abff885237f6d11096b --local-dir ./FLUX.2-klein-4B-FP8
Packaged for ComfyUI. Most image, video and music models run in ComfyUI . Check the publisher's page for the workflow. Freeweights does not host it.

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
683a31f4fe0f713a1f1b14fc8393aa4c6732fc5ef96fc79644938ba4eccf2b34
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.imageSubject: FLUX.2-klein-4B-FP8Date: 2026-11-15Commit: 781a4a5Signed: 2DC28CC7B26A283B ✓
Upstream
unsloth/FLUX.2-klein-4B-FP8
Pinned commit
781a4a598429cde0d0478abff885237f6d11096b
Manifest
FLUX.2-klein-4B-FP8.json · .minisig
Manifest sha256
c6ae14de88a94c94b3dfaa52b6da4b49000811aea026568ddff703ac64a2aa1f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/FLUX.2-klein-4B-FP8.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/FLUX.2-klein-4B-FP8.json.minisig $ minisign -Vm FLUX.2-klein-4B-FP8.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

black-forest-labs/FLUX.2-klein-4B · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/FLUX.2-klein-4B-FP8
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. FLUX.2-klein-4B-FP8.json. Provenance. Takedown history: none.
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Boogu-Image
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-HD
From: lodestones <huggingface.co/lodestones>Subject: Chroma1-HD
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-Radiance
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: ERNIE-Image
From: baidu <huggingface.co/baidu>Subject: ERNIE-Image