Views
No views yet
microsoft/Mage-VL,
a ~5B vision-language model (Mage-ViT codec-native visual encoder + Qwen3-4B-Instruct text backbone).| value | |
|---|---|
| Precision (LLM) | MXFP4, group 32 |
| Vision tower | bf16 (not quantized) |
| Bits/weight (overall) | 5.07 bpw |
| On-disk size | ~2.8 GB |
| Decode speed¹ | 62.7 tok/s |
| Peak memory¹ | ~4.5 GB |
| build | decode | peak RAM |
|---|---|---|
| bf16 | 30.1 tok/s | 10.9 GB |
| MXFP8 | 48.4 tok/s | 6.6 GB |
| MXFP4 (this) | 62.7 tok/s | 4.5 GB |
"A diagram showing the process of predicting gate signals, generating commentary, and decoding text in a machine learning model."
⚠️ These are MLX weights (Apple Silicon), formlx-vlm— not loadable with 🤗 Transformers.mage_vlsupport is added in mlx-vlm PR #1751. Once it merges, plainpip install -U mlx-vlmis enough. Until then, either install from the PR branch, or copy the bundled model definition into your mlx-vlm (one-time), then usemlx_vlm.generatenormally:
1# option A — install mlx-vlm with mage_vl support from the PR
2pip install "git+https://github.com/SahilChachra/mlx-vlm.git@add-mage-vl"1# option B — stock mlx-vlm + copy the bundled definition (one-time)
2pip install mlx-vlm
3python - <<'PY'
4import mlx_vlm, os, shutil
5dst = os.path.join(os.path.dirname(mlx_vlm.__file__), "models", "mage_vl")
6shutil.rmtree(dst, ignore_errors=True); shutil.copytree("mlx_vlm_mage_vl", dst)
7print("installed mage_vl ->", dst)
8PY
9
10# native mlx-vlm CLI (verified)
11python -m mlx_vlm generate --model . --image your_image.jpg \
12 --prompt "Describe this image." --max-tokens 128 --temperature 0.0run_mage_vl_mlx.py (uses the model's HF processor for
preprocessing) is also bundled as an alternative.neural_codec/ from the base repo if you need it.streammind_gate (streaming EPFE) component is omitted — not used on the
standard image/video path.microsoft/Mage-VL (Apache-2.0)mlx-lm / mlx-vlm.