Local image generation on an M4 Max: FLUX.2 Klein 4B and Qwen-Image

Date
8 March 2026
Task type
Image generation
Status
Complete

Models tested

Model or toolProviderOpen?How run
FLUX.2 Klein 4B (4B parameters, 8-bit, run with mflux)Black Forest LabsOpen weightsLocal
Qwen-Image 2512 (20B parameters, 4-bit MLX build, Apache 2.0, run with mflux 0.16 or later)AlibabaOpen weightsLocal

Purpose

Find out how long Qwen-Image takes to generate an image on Apple Silicon, and how that compares with FLUX Klein.

Context

An Apple M4 Max computer with 128 GB of unified memory and 40 GPU cores. Both models were run through the mflux command-line tool, one image per setting, in a hands-on session.

Method

Images were generated at the resolutions and step counts in the table and total time was noted for each.

Results

At 1024 x 1024, FLUX Klein took about 18 s; Qwen-Image at 20 steps took about 8 minutes.
ModelQuantisationResolutionStepsTime
FLUX.2 Klein 4B8-bit512 x 5124about 7 s
FLUX.2 Klein 4B8-bit1024 x 10244about 18 s
Qwen-Image 25124-bit1024 x 102420about 8 min
Qwen-Image 25124-bit1328 x 132820about 10 min

Caveats

What this suggests

On this machine Qwen-Image ran at about 23.5 s per step, which made a 20-step image take about 8 minutes against about 18 s for FLUX Klein at 1024 x 1024. The notes record that Qwen-Image renders text in images better, but that was not measured here.

Source

entries/2026-03-08-local-image-generation-m4-max.md in the GitHub repository (Markdown with YAML frontmatter).