Views
No views yet
microsoft/Mage-Flow.
Standalone Hugging Face Mage-Flow repository with all 24 image MLP projections kept in BF16 and the 24 text MLP projections stored as native NVFP4.microsoft/Mage-Flow derivative while avoiding any runtime dependency on
a separate local models/ checkout. The complete transformer component,
quantized text encoder, VAE, scheduler, vendored inference code, and
native runtime are all packaged inside the repository layout.
quality package, without upscaling
or post-processing.A 4K resolution high detail photo realistic image of the top half of a cyborg woman with dark black hair, striking blue eyes that have a very subtle glow in the iris, standing side profile, head tilted up towards the sky with a questioning expression, she has subtle gaps in her skin that hint at a robotic nature, outdoor forest night setting, sky filled with bright brilliant stars that glow against the dark setting, nebula visible
3334072683.1795681438,
1024×1024 resolution, 20 steps, CFG 5, and static shift 6. It compares
the complete BF16 pipeline against the complete Quality package,
including its quantized text encoder.| Full BF16 reference | Quality: 24 NVFP4 + 24 BF16 image projections |
|---|---|
![]() | ![]() |
| 21.79 s denoise | 18.48 s denoise |
2424amax11transformer_blocks.0.img_mlp.net.0.projtransformer_blocks.0.img_mlp.net.2transformer_blocks.1.img_mlp.net.0.projtransformer_blocks.1.img_mlp.net.2transformer_blocks.2.img_mlp.net.0.projtransformer_blocks.2.img_mlp.net.2transformer_blocks.3.img_mlp.net.0.projtransformer_blocks.3.img_mlp.net.2transformer_blocks.4.img_mlp.net.0.projtransformer_blocks.4.img_mlp.net.2transformer_blocks.5.img_mlp.net.0.projtransformer_blocks.5.img_mlp.net.2transformer_blocks.6.img_mlp.net.0.projtransformer_blocks.6.img_mlp.net.2transformer_blocks.7.img_mlp.net.0.projtransformer_blocks.7.img_mlp.net.2transformer_blocks.8.img_mlp.net.0.projtransformer_blocks.8.img_mlp.net.2transformer_blocks.9.img_mlp.net.0.projtransformer_blocks.9.img_mlp.net.2transformer_blocks.10.img_mlp.net.0.projtransformer_blocks.10.img_mlp.net.2transformer_blocks.11.img_mlp.net.0.projtransformer_blocks.11.img_mlp.net.22.13.0+cu130, comfy-kitchen==0.2.22, and
flash-attn==2.8.3. Install into a virtual environment using the
included requirements.txt; do not install these packages system-wide.1python3.11 -m venv .venv
2source .venv/bin/activate
3python -m pip install --upgrade pip
4python -m pip install -r requirements.txt
5CUDA_HOME=/usr/local/cuda-13.1 python -m pip install --no-build-isolation flash-attn==2.8.3
6
7CUDA_VISIBLE_DEVICES=0 .venv/bin/python generate.py \
8 --model ajh-code/Mage-Flow-NVFP4-Quality-AJH \
9 --prompt 'A detailed watercolor fox reading under an old oak tree' \
10 --output fox.png --height 1024 --width 1024 --steps 20 --seed 1build_native.sh
after changing PyTorch, CUDA, or the C++ ABI.1.43x BF16 throughput (30% less generation time), and the
Quality transformer at about 1.22x BF16 throughput (18% less
generation time). Projected transformer plus text-checkpoint storage
is about 9.89 GB for Balanced and 10.97 GB for Quality, versus
17.12 GB for BF16. These are policy-level measurements from the
research suite, not universal hardware guarantees.mage_flow_nvfp4_* transformer modules.MAGE_NVFP4_* environment variables.python validate_release.py