Skip to content

Support mflux 0.24 and newer (0.2.2) - #20

Merged
IonDen merged 5 commits into
mainfrom
release/v0.2.2
Nov 13, 2026
Merged

IonDen merged 5 commits into
mainfrom
release/v0.2.2

Conversation

@IonDen

@IonDen IonDen commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Why

mflux 0.24 and Pillow 13 could not be installed next to mlx-dfloat[mflux], because the extra pinned mflux>=0.23,<0.24 and pillow<13. That kept mlx-dfloat from installing beside current mflux and the other mlx-* libraries.

What changed

The mflux extra now asks for mflux>=0.24 and pillow>=13, with no upper bound. Users who must stay on mflux 0.23 keep mlx-dfloat 0.2.1.

When the installed mflux is newer than the newest release this version was tested on, 0.24.0, mlx-dfloat emits a one-time DFloatUntestedMfluxWarning, exported from mlx_dfloat. Generation still runs, and the message asks for an issue report with both versions. A scheduled job tests the newest mflux release every week.

mlx-dfloat generate refuses the four flags mflux 0.24 added: --vae-full-precision, --no-vae-full-precision, --small-decoder and --small-text-encoder. mlx-dfloat decodes images on the path its memory numbers were measured on. With an mflux older than 0.24 installed, the model classes raise a clear dependency error naming both versions.

For Z-Image, FLUX.2 Klein and ERNIE-Image, images are decoded on the same code path as 0.2.1, so the picture should match; this was not re-run on real weights. It may differ slightly from stock mflux 0.24, which now decodes images with a new low-memory decoder by default. mlx-dfloat's image decode uses more memory than that new mode, and a lighter decode is planned for a later release.

The README and the CHANGELOG carry the new requirements, the warning, the refused flags, the note above and the list of what was not re-run. The README also says that only the mlx-dfloat generate command stops a run that goes over the memory limit; the Python classes set memory caps but do not stop the process. The tier-table rows are unchanged.

Test change (Qwen-Image 2.1)

The Qwen-Image 2.1 attribute test now also scans the helpers that generate_image calls. It finds them from the source, with no names written down. The model class sets processor = None, because mflux 0.24's prompt encoder reads that attribute on a branch this package never takes.

How to verify

CI on this branch: the required test job passed (2137 passed, 621 skipped, coverage 88.05 %) and the integration (0.24.0) lane passed (584 passed, 15 skipped) (https://github.com/IonDen/mlx-dfloat/actions/runs/43501769085). The small-model tests in that lane compare the denoised latents, the input to the image decoder, bit for bit with stock mflux.

Image identity on real weights was not re-run on mflux 0.24. The memory peaks and fit constants come from the mflux 0.23 or 0.20 runs, on the same code path, and the README's tier table keeps the mflux label of each row. FLUX.1 on 0.24 rests on three things: mflux's FLUX.1 model code is byte-identical between 0.23 and 0.24, the 0.23 real-weights record on the same code, and the new tests. Of the shared code FLUX.1 calls, the model list, the weight loader and the image-decode helper changed. The tests run through the model list and the decode helper. They do not load weights through the loader, whose only change is that it refuses a model path that is a single file.

@IonDen IonDen self-assigned this Nov 13, 2026
@IonDen IonDen added release Release preparation ci CI workflow and configuration tests Test suite changes documentation Improvements or additions to documentation labels Nov 13, 2026
The mflux extra and the bench group need mflux 0.24 or newer and Pillow 13 or newer, with no upper bound, so the extra installs beside current mflux.
@IonDen
IonDen merged commit 17e8738 into main Nov 13, 2026
6 checks passed
@IonDen
IonDen deleted the release/v0.2.2 branch November 13, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI workflow and configuration documentation Improvements or additions to documentation release Release preparation tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant