M2M Model2Metal

FLUX.2-klein-4B — Apple Silicon Quantizations & Speeds

Ultra-fast 16 GB Mac image tier: 2.04s warm 1K (10.12s @ 2K) in just 11.76 GB MLX memory on M5 Ultra.

Open on Hugging Face (black-forest-labs/FLUX.2-klein-4B) ← All Models
Quantization & Engine
Output Spec
Weights & Recipe
image FLUX.2-klein-4B AA 838 Elo Hugging Face FLUX · 1 config · min 16 GB 1.2× faster
Details →
RECMLX 8-bit
mflux 0.24.0 Resident Warm (MLX 0.32.5) · @hiddendevj
1024x1024Pomavia Lab
4 steps · M5 Ultra
≥ 16 GB
2.04s
● 74.5%
Near-Peak
25.0 GB
1.18×
HF
Optimization history — 1024×1024 4-Step Generation Time (Lower = Better)
2.4 s2026-12-06Cold First-Run JIT2.04 s2026-12-06Warm Resident MLX 8-bit
Compatible Apple Silicon Macs
Weights & verified launch recipes
python models/image/flux2-klein-4b/run.py --model-path /path/to/FLUX.2-klein-4B --base-model flux2-klein-4b -q 8 --warmup --steps 4 --width 1024 --height 1024
⚡ Hardware roofline · compute efficiency (DiT TFLOPS)
η_FLOPs = sustained TFLOPS / chip peak BF16 tensor TFLOPS · ≥75% = compute roofline
MLX 8-bit (mflux 0.24.0 Resident Warm (MLX 0.32.5))
● 74.5% · Near-Peak
Sustained 102.8 TFLOPS / 138 TFLOPS peak (mflux 0.24.0 Resident Warm (MLX 0.32.5))
4B DiT @ 1024x1024 (4 steps in 2.04s) sustains 102.8 TFLOPS (74.5% Compute Roofline) via warm MLX 8-bit.
📋 Per-Mac dated & verifiable optimization logs
Mac Studio · Apple M5 Ultra (36c CPU / 80c GPU · 256 GB) · macOS 27.2 (26B123) · sysctl iogpu.wired_limit_mb=249036 · 2 TB NVMe (11.18 GB/s)
Pomavia Lab verified log
Date & stageEngine & quantOptimization / ablation parametersMeasured speedWired RAM & NVMe I/OVerification & repro
2026-12-06
Baseline
mflux 0.24.0 · MLX BF16
1st-run cold JIT vs Warm Resident BF16 (1024×1024, 4 steps) 2.41s Cold -> 2.06s Warm
0.30s mmap load · 4 steps
14.47 GB MLX · 25.9 GB Wired
Zero NaN · Crisp EN Signage ✅
2026-12-06
Optimal ★
mflux 0.24.0 · Resident MLX 8-bit
Resident Python pipeline with warmup + 8-bit quantized DiT (1K & 2K) 2.04s Warm 1K · 10.12s Warm 2K
0.33s load · 2.40s cold 1st-run
11.76 GB MLX (14.11 GB @ 2K) -> Fits 16 GB Mac!
Pixel-faithful to BF16 (std=53.9) ✅
Mac Studio (M5 Ultra · 512 GB) (512 GB · 1228 GB/s) · ≈ 2.0s (1024x1024)
Roofline-sized · awaiting lab PR
This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=486400 iogpu.wired_lwm_mb=465920
Submit lab PR ↗
Mac Studio (M3 Ultra) (256 GB · 819 GB/s) · ≈ 6.2s (1024x1024)
Roofline-sized · awaiting lab PR
Note: M2/M3/M4 chips lack the native M5 QxA8 unit — set a8_prefill_enabled=false (use native A16 GPU or calibrated Dual-ANE prefill).
sudo sysctl iogpu.wired_limit_mb=243200 iogpu.wired_lwm_mb=232960
Submit lab PR ↗
Mac Studio / Mac Pro (M2 Ultra) (192 GB · 800 GB/s) · ≈ 8.5s (1024x1024)
Roofline-sized · awaiting lab PR
Note: M2/M3/M4 chips lack the native M5 QxA8 unit — set a8_prefill_enabled=false (use native A16 GPU or calibrated Dual-ANE prefill).
sudo sysctl iogpu.wired_limit_mb=182400 iogpu.wired_lwm_mb=174720
Submit lab PR ↗
Mac Studio / MBP (M5 Max) (128 GB · 614 GB/s) · ≈ 4.1s (1024x1024)
Roofline-sized · awaiting lab PR
This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=121600 iogpu.wired_lwm_mb=116480
Submit lab PR ↗
Mac mini / MBP (M5 Pro) (64 GB · 307 GB/s) · ≈ 8.2s (1024x1024)
Roofline-sized · awaiting lab PR
This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=60800 iogpu.wired_lwm_mb=58240
Submit lab PR ↗
Mac mini / MBP 14″ / iMac (M6) (32 GB · 170 GB/s) · ≈ 13.2s (1024x1024)
Roofline-sized · awaiting lab PR
This Mac has the native M5/M6 Neural GPU matrix path — keep the M5 QxA8 (min_tokens=64) recipe enabled.
sudo sysctl iogpu.wired_limit_mb=28160 iogpu.wired_lwm_mb=26560
Submit lab PR ↗
Mac mini / MacBook Air (M4) (24 GB · 120 GB/s) · ≈ 31.4s (1024x1024)
Roofline-sized · awaiting lab PR
Note: M2/M3/M4 chips lack the native M5 QxA8 unit — set a8_prefill_enabled=false (use native A16 GPU or calibrated Dual-ANE prefill).
sudo sysctl iogpu.wired_limit_mb=21120 iogpu.wired_lwm_mb=19920
Submit lab PR ↗