Downloads · 30 days
0
ar9av/FLUX.2-klein-4B-mflux-4bit
FLUX.2-klein-4B-mflux-4bit is a text-to-image model from ar9av. Use it when you need an image from a text prompt. It is set up for mflux. The card lists the license as other.
4-bit quantized version of black-forest-labs/FLUX.2-klein-4B, saved with mflux for fast inference on Apple Silicon Macs.
Downloads · 30 days
0
Access
Public
Updated Jun 11, 2026
Repo size
4.6 GB
Likes
0
Public
Click a slice to open those files.
.safetensors4.6 GB · 100%
From the Hugging Face model README
4-bit quantized version of black-forest-labs/FLUX.2-klein-4B, saved with mflux for fast inference on Apple Silicon Macs.
~4 GB on disk (vs ~16 GB for the original BF16 weights).
~9 seconds per image at 512×512, 4 steps on M-series chips.

Prompt: "a red apple on a white table", seed 42, 512×512, 4 steps
pip install mflux
Requires macOS with Apple Silicon (M1/M2/M3/M4). Tested with mflux 0.18.0.
from mflux.models.flux2.variants.txt2img.flux2_klein import Flux2Klein
from mflux.models.common.config.model_config import ModelConfig
flux = Flux2Klein(
model_config=ModelConfig.flux2_klein_4b(),
model_path="ar9av/FLUX.2-klein-4B-mflux-4bit",
)
image = flux.generate_image(
seed=42,
prompt="a photo of an astronaut riding a horse on mars",
num_inference_steps=4,
width=1024,
height=1024,
guidance=1.0,
)
image.image.save("output.png")
mflux-generate-flux2 \
--model flux2-klein-4b \
--model-path ar9av/FLUX.2-klein-4B-mflux-4bit \
--prompt "a photo of an astronaut riding a horse on mars" \
--steps 4 \
--output output.png
# Load the model
curl -X POST http://localhost:8002/v1/models/load \
-H "Content-Type: application/json" \
-d '{"model": "flux2-klein", "model_path": "ar9av/FLUX.2-klein-4B-mflux-4bit"}'
# Generate
curl -X POST http://localhost:8002/v1/images/generations \
-H "Content-Type: application/json" \
-d '{"prompt": "a red apple", "size": "512x512"}'
| Property | Value |
|---|---|
| Base model | black-forest-labs/FLUX.2-klein-4B |
| Quantization | 4-bit (mflux format) |
| Saved with | mflux 0.18.0 |
| Architecture | Flux2Klein (Qwen3 text encoder, no T5) |
| Parameters | ~4B |
| Guidance | 1.0 (distilled, CFG-free) |
negative_prompt (distilled model, guidance=1.0).image_path and image_strength to generate_image.