Repository navigation
Support mflux 0.24 and newer (0.2.2) - #20
Merged
Merged
Conversation
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
force-pushed
the
release/v0.2.2
branch
from
November 13, 2026 17:44
b19c6c0 to
8b9d4d8
Compare
IonDen
force-pushed
the
release/v0.2.2
branch
from
November 13, 2026 20:27
8b9d4d8 to
792d1c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
mflux 0.24 and Pillow 13 could not be installed next to
mlx-dfloat[mflux], because the extra pinnedmflux>=0.23,<0.24andpillow<13. That kept mlx-dfloat from installing beside current mflux and the other mlx-* libraries.What changed
The
mfluxextra now asks formflux>=0.24andpillow>=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 frommlx_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 generaterefuses the four flags mflux 0.24 added:--vae-full-precision,--no-vae-full-precision,--small-decoderand--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 generatecommand 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_imagecalls. It finds them from the source, with no names written down. The model class setsprocessor = 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
testjob passed (2137 passed, 621 skipped, coverage 88.05 %) and theintegration (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.