Views
No views yet
3.1 GB (4-bit, group size 64)1# 1. install the MLX stack + register the mage_vl plugin
2pip install mlx mlx-lm mlx-vlm numpy pillow tokenizers jinja2 av
3git clone https://github.com/rsravanreddy/Mage-VL-MLX && cd Mage-VL-MLX
4ln -s "$PWD/mage_vl" "$(python -c 'import mlx_vlm,os;print(os.path.dirname(mlx_vlm.__file__))')/models/mage_vl"
5
6# 2. download these weights
7hf download sr29/Mage-VL-mlx-4bit --local-dir mage-vl-mlx
8
9# 3. run (image or video)
10python scripts/generate.py --mlx mage-vl-mlx --tokenizer-src mage-vl-mlx \
11 --image path/to/image.jpg --prompt "Describe this image."
12python scripts/generate.py --mlx mage-vl-mlx --tokenizer-src mage-vl-mlx \
13 --video path/to/video.mp4 --num-frames 8 --prompt "What is happening?"| model | weights | image decode | image peak RAM |
|---|---|---|---|
| 4-bit | 3.1 GB | 30.6 tok/s | 4.65 GB |
| 8-bit | 5.0 GB | 19.1 tok/s | 6.55 GB |
Qwen2VLImageProcessor (max_abs_diff 0.0).max_abs_diff 3.0e-4, fp32, full 24 layers).4.3e-7).streammind_gate) is ported
(mage_vl/streaming.py). See scripts/stream.py for a per-frame silent/speak
timeline. Note: the gate weights (streammind_gate.safetensors) are separate and
downloaded from the upstream Mage-VL repo.