Downloads · 30 days
0
mlx-community/FLUX.2-klein-4B-bf16
FLUX.2-klein-4B-bf16 is a text-to-image model from mlx-community. Use it when you need an image from a text prompt. It is set up for mlx. The card lists the license as apache-2.0.
MLX (bf16) snapshot of black-forest-labs/FLUX.2-klein-4B (Apache-2.0) for Apple Silicon — a compact rectified-flow MMDiT (5 double + 20 single blocks) + Qwen3-4B 3-layer-tap conditioner + FLUX.2 VAE. Standard diffuser…
Downloads · 30 days
0
Access
Public
Updated Jul 6, 2026
Repo size
23.7 GB
Likes
0
Public
Click a slice to open those files.
.safetensors23.7 GB · 100%
From the Hugging Face model README
MLX (bf16) snapshot of black-forest-labs/FLUX.2-klein-4B (Apache-2.0) for Apple Silicon — a compact rectified-flow MMDiT (5 double + 20 single blocks)
transformer/ text_encoder/ vae/ tokenizer/), loaded by the Swift/MLX port; int8/int4 are
produced at load time (int4 DiT ~2.35 GB → a q4 pipeline fits a 16 GB Mac).4B only — the 9B klein variants are FLUX Non-Commercial; this Apache-2.0 4B is the wrapped tier.
import MLXKlein
import MLXToolKit
let pkg = Klein4BT2IPackage(configuration: .init(quant: .int4, snapshotPath: "<this repo dir>"))
try await pkg.load()
let r = try await pkg.run(T2IRequest(prompt: "a red fox in a snowy forest at sunrise, photorealistic",
width: 1024, height: 1024, seed: 42)) as! T2IResponse