Downloads · 30 days
70.4K
43% of all-time downloads
Runpod/FLUX.2-klein-4B-mflux-4bit
FLUX.2-klein-4B-mflux-4bit is a text-to-image model from Runpod. Use it when you need an image from a text prompt. It is set up for mflux. The card lists the license as apache-2.0.
4-bit quantized weights of [FLUX.2 [klein] 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) by Black Forest Labs, optimized for mflux on Apple Silicon.
Downloads · 30 days
70.4K
43% of all-time downloads
All-time downloads
165K
Public
Repo size
4.6 GB
Likes
11
Public
Click a slice to open those files.
.safetensors4.6 GB · 100%
From the Hugging Face model README
4-bit quantized weights of FLUX.2 [klein] 4B by Black Forest Labs, optimized for mflux on Apple Silicon.
| Full precision | This repo (4-bit) | |
|---|---|---|
| Size | ~8 GB | 4.3 GB |
| Framework | diffusers / mflux | mflux only |
| Hardware | CUDA / MLX | Apple Silicon (MLX) |
pip install mflux
mflux-generate-flux2 \
--model RunPod/FLUX.2-klein-4B-mflux-4bit \
--prompt "A cute robot standing in a field of flowers, digital art" \
--width 1024 \
--height 1024 \
--steps 4 \
--seed 42 \
--output output.png
from mflux import Flux2
flux = Flux2(
model="RunPod/FLUX.2-klein-4B-mflux-4bit",
base_model="flux2-klein-4b",
)
image = flux.generate_image(
prompt="A cute robot standing in a field of flowers, digital art",
width=1024,
height=1024,
num_inference_steps=4,
seed=42,
)
image.save("output.png")
nn.quantize (group_size=64), created with mflux-save --quantize 4pip install mflux
mflux-save \
--path ./FLUX.2-klein-4B-mflux-4bit \
--model flux2-klein-4b \
--quantize 4
FLUX.2 [klein] 4B is a 4 billion parameter rectified flow transformer by Black Forest Labs for fast image generation and editing. It delivers state-of-the-art quality with sub-second inference on consumer hardware.
Apache 2.0, inherited from the original model.