Views
No views yet
Multi-component diffusion pipeline. Per mlx-community conventions, a pipeline like this (NR-MMDiT + MageVAE + Qwen3-VL conditioner + scheduler) has no single-model_typeslot, so it is published under this namespace rather than a re-hostedmlx-community/*repo. The large component weights come from the upstreammicrosoft/Mage-Flow-Edit-Turborepo (MIT) and are not re-hosted here — only the port's genuine artifact is.
| file | what |
|---|---|
folded_adaln.safetensors | The MageVAE adaLN constants baked at t=0 — the one weight the port adds (0.39 MB, replaces 37.7 M params of t_embedder + adaLN_modulation). |
*_config.json, model_index.json | Component configs, for reference. |
sample_edit_512.png | A validated edit ("make the background a snowy forest"). |
1# 1. download the upstream component weights
2hf download microsoft/Mage-Flow-Edit-Turbo --local-dir Mage-Flow-Edit-Turbo
3# 2. add this repo's baked artifact to the snapshot root
4hf download xocialize/Mage-Flow-Edit-Turbo-mlx folded_adaln.safetensors \
5 --local-dir Mage-Flow-Edit-Turbo
6# 3. run
7swift run -c release mage-flow-edit \
8 --repo Mage-Flow-Edit-Turbo --ref dog.jpg \
9 --prompt "make the background a snowy forest" --out edit.png| component | worst rel error |
|---|---|
| MageFlow NR-MMDiT (12-block, 4.1B) | 6.8e-6 |
| MageVAE (encode + decode) | 1.08e-5 |
| Gaussian-Shading watermark | 0 (bit-exact) |
| FlowMatchEuler 4-step schedule | exact |
| end-to-end denoise (bf16 oracle vs fp32) | 2.8e-2 |
| full resolution range 512–2048 | 2048² @ 34.2 dB PSNR vs oracle |
proj_out) exactly, until an mlx-swift
release ships the fix.CONTENT_FILTER_EDIT_SYSTEM classifier, fail-closed) via the Qwen3-VL backbone.| file | recipe | gate |
|---|---|---|
transformer-int8.safetensors | int8 g32 affine, attn+MLP Linears only | int8 golden-deficit 1.296e-04 vs 2x baseline 1.982e-04 -> PASS |
transformer-int4.safetensors | int4 g64 affine, same scope | int4 per-pass cosine 0.991115 (threshold 0.9900) -> PASS |
proj_out). Files are
self-describing (metadata carries bits / group size / kept blocks) and load
directly with no bf16 peak — int8 gate: golden-relative: deficit vs the fp32 oracle ≤ 2× the bf16 baseline's own deficit (bf16 itself is ~1e-4 from fp32 at this model's ~1.2e5 activation range); int4 gate: per-pass cosine ≥ 0.99 vs bf16 + e2e-validated render (43.9 dB int8 / valid int4 vs the bf16 render).
Quantization is weight-only: the mandatory content filter and the bit-exact
Gaussian-Shading watermark are unaffected. Measured t2i peak GPU @1024²:
bf16 19.6 → int8 17.2 → int4 16.1 GB.1# quant tier: skip the 7.7 GB bf16 transformer entirely
2hf download microsoft/Mage-Flow-Edit-Turbo --include "text_encoder/*" --include "vae/*" --local-dir Mage-Flow-Edit-Turbo
3hf download xocialize/Mage-Flow-Edit-Turbo-mlx folded_adaln.safetensors --local-dir Mage-Flow-Edit-Turbo
4hf download xocialize/Mage-Flow-Edit-Turbo-mlx transformer-int4.safetensors --local-dir Mage-Flow-Edit-Turbo
5swift run -c release mage-flow-edit --repo Mage-Flow-Edit-Turbo --dit-quant Mage-Flow-Edit-Turbo/transformer-int4.safetensors ...MLXMageFlow (same repo) wraps the family as MageFlowT2IPackage
/ MageFlowEditPackage — quant tiers auto-materialize these files via
WeightSourcing.text_encoder/ and vae/ are byte-identical
family-wide; folded_adaln.safetensors is the same file in every repo.