本仓库包含 CohereLabs/North-Micro-Vision-Instruct 的 Apple MLX 转换版本,采用 NVFP4 MLX 量化,分组大小为 16。
它属于 North Vision MLX collection,其中包括 BF16、仿射 4/5/6/8 位、MXFP4、MXFP8 和 NVFP4 变体。
该仓库通过 MLX-VLM 转换 CLI 重新生成并直接上传:
python -m mlx_vlm convert \
--hf-path CohereLabs/North-Micro-Vision-Instruct \
--mlx-path North-Micro-Vision-Instruct-nvfp4 \
--quantize --q-bits 4 --q-group-size 16 --q-mode nvfp4 \
--upload-repo mlx-community/North-Micro-Vision-Instruct-nvfp4当前 MLX-VLM 主分支已支持 Cohere Compass。 可直接从 GitHub 安装:
pip install -U "mlx-vlm @ git+https://github.com/Blaizzy/mlx-vlm.git"运行视觉语言推理:
mlx_vlm.generate \
--model mlx-community/North-Micro-Vision-Instruct-nvfp4 \
--image /path/to/image.jpg \
--prompt "Describe this image." \
--max-tokens 512 \
--temperature 0.0你也可以将图像 URL 传入 --image。