AIAny
AI Model2026
Icon for item

Mage-Flow

Efficient 4B native-resolution diffusion foundation model for text-to-image generation and instruction-based image editing. Uses a lightweight Mage‑VAE tokenizer and a 4B NR‑MMDiT backbone to produce 512–2048 outputs with low memory and fast inference; ships in Base, RL-aligned and few-step Turbo variants.

Introduction

Most recent open models trade parameter scale for resolution or latency; Mage‑Flow deliberately targets a different point in that trade space: a single compact 4B family that can generate and edit images at native high resolutions without making the VAE or tokenizer the high-resolution bottleneck.

Key Capabilities
  • Co‑designed tokenizer + backbone so you don't need a huge VAE: Mage‑VAE is a one‑step diffusion codec that achieves FLUX.2‑level reconstruction fidelity while using roughly ~12× fewer encode MACs and ~22× fewer decode MACs per pixel, which reduces per‑sample memory and compute.
  • Native‑resolution generation and packing: one checkpoint generalizes across sizes (512→2048 and extreme aspect ratios like 4:1) via native‑resolution packing and per‑sample 2D RoPE, eliminating bucket quantization and padding overhead.
  • Competitive quality at small scale: the 4B NR‑MMDiT generation family matches or outperforms many much larger open systems on several benchmark suites, and the editing family supports diverse instruction‑based edits (semantic, appearance, restoration) within a unified model.
  • System and latency advantages: training optimizations (fused kernels, FlashAttention var‑len packing) cut per‑step training time significantly; at 1024² on a single A100, Turbo inference runs at ~0.59 s/image (generation) and ~1.02 s/edit with peak memory ~18–20 GB.
  • Production variants: Base (30 steps), RL‑aligned (20 steps) and few‑step Turbo distilled (4 steps) provide choices across quality/latency tradeoffs.
Who it fits and trade‑offs

Great fit if you need high‑quality text→image generation or instruction‑based editing where GPU memory and latency matter — for example, research prototypes, interactive editing tools, or production pipelines that must support multiple native output sizes from one checkpoint. The MIT license and a Hugging Face diffusers‑style repo make fine‑tuning and integration straightforward.

Look elsewhere if you require a closed‑source commercial model with larger multimodal frontends (e.g., very large multimodal LLM+vision stacks) or if you lack GPUs with sufficient memory/bandwidth: practical Turbo/1024² operation still expects modern GPU hardware and sometimes specific CUDA/torch/build steps (FlashAttention compilation requirements). The design also encodes specific engineering choices (native‑resolution packing, Mage‑VAE/NR‑MMDiT co‑design) that may not be ideal if you must strictly match another VAE/backbone stack.

Information

  • Websitehuggingface.co
  • OrganizationsMicrosoft
  • AuthorsZhang Xinjie, Zhang Peng, Zheng Shicheng, Guo Jinghao, Jia Zhaoyang, Shen Yifei, Guo Xun, Luo Yuxuan, Li Jiahao, Xie Wenxuan
  • Published date2026/07/21

More Items

Hugging Face
AI Model2026

1B-parameter text-generation model tuned for conversational and agentic workflows with a focus on security and vulnerability-detection; suited for low-cost or on-prem/edge deployments and terminal-agent integrations.

Hugging Face
AI Model2026

GGUF conversions of Laguna S 2.1 for llama.cpp, including quantized builds (Q4_K_M, Q8_0, F16) and a small DFlash drafter for speculative decoding; configured for a 256K default context window and intended for local inference and serving with Poolside's llama.cpp fork.