ワンクリックで
mflux-model-porting
// Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style.
// Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style.
Navigate MFLUX CLI capabilities, locate commands by area, and summarize supported features.
Debug MLX ports by comparing against a PyTorch/diffusers reference via exported tensors/images (export-then-compare).
Set up and work in the mflux dev environment (arm64 expectation, uv, Makefile targets, lint/format/test).
Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts.
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.
Prepare a release in mflux (version bump, changelog, contributors, uv lock) without tagging/publishing. Use when preparing a release branch or release PR.
| name | mflux-model-porting |
| description | Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style. |
Provide a repeatable, MLX-focused workflow for porting ML models (typically from diffusers repo located near mflux repo in the system) into mflux with correctness first, then refactor to mflux style.
mx.compile, kernel fusion tweaks, scheduler micro-optimizations); add optimizations only after correctness is locked.z_image_turbo and flux2_klein for structure and naming.mx.compile and other speed-focused changes until deterministic parity is passing.mx.save/mx.load at critical points; it is OK to add these to the reference (without changing logic) to export latents.prompt → text_encoder → transformer_loop → VAE → image.MFLUX_PRESERVE_TEST_OUTPUT=1 uv run <test command>.CallbackManager.register_callbacks(...) so shared features like --stepwise-image-output-dir work; pass a latent_creator that supports unpack_latents(...).ModelConfig entry + aliasesuv for running scripts and tests: uv run <command>.uv run python -m <module> for local modules.