mlx-vlm
MLX-VLM is a package for inference and fine-tuning of Vision Language Models (VLMs) and Omni Models (VLMs with audio and video support) on your Mac using MLX.
What it is and what it does
MLX-VLM is a framework for running vision language models on Apple Silicon Macs using the MLX framework. It supports inference and fine-tuning of models that combine vision, language, and optionally audio and video inputs. The package provides multiple interfaces: a command-line tool for quick inference, a Python API for programmatic use, a FastAPI server for deployment with features like continuous batching and KV cache optimization, and a Gradio web UI for interactive chat.
The package is built on a stack of 15 runtime dependencies including transformers for model loading, FastAPI and Uvicorn for the server, Pillow and OpenCV for image processing, and miniaudio for audio support. It targets developers working on Mac hardware who want to run or fine-tune multimodal models without cloud infrastructure. The framework includes quantization support, speculative decoding, and model-specific documentation for OCR and reasoning models.
Use it for:
- Run vision-language inference locally on Mac via CLI or Python without cloud API calls.
- Deploy a multimodal model as a local FastAPI service with continuous batching and KV cache optimization.
- Build an interactive chat interface with Gradio for image, audio, and text input on a single machine.
- Fine-tune a vision language model on your own Mac hardware for domain-specific tasks.
- Process images and audio together in a single inference call using omni models.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
MLX-VLM runs vision language models and omni models (with audio and video support) for inference and fine-tuning on Mac hardware using MLX, with CLI, Python, FastAPI server, and Gradio UI interfaces.
Yes. MLX-VLM is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low-friction installation. It fills a clear niche for developers with Mac hardware who want local multimodal inference without cloud dependencies. The Beta status and broad feature set (CLI, server, fine-tuning, multiple model architectures) suggest a maturing project worth adopting for Mac-based ML workflows.
Install
mlx-vlm on PyPI
pip
pip install mlx-vlmuv
uv add mlx-vlmpoetry
poetry add mlx-vlmInstalling mlx-vlm
Before you install
Low friction install with a pure-Python wheel and 15 runtime dependencies. Actively maintained with a recent release and 5326 repository stars; last commit 2026-08-14.
License in practice
MIT license permits commercial and private use with minimal restrictions; attribution required.
Quickstart
pip install -U mlx-vlm
from mlx_vlm.generate import generate_text
from mlx_vlm.utils import load_config, load_model_and_processor_from_hub
model, processor = load_model_and_processor_from_hub('mlx-community/Qwen2-VL-2B-Instruct-4bit')
output = generate_text(model, processor, prompt='Hello, how are you?', max_tokens=100)
Requires Python >=3.10 and MLX (Apple Silicon Mac recommended for optimal performance).
Verify before relying
- Whether all 15 runtime dependencies are required for basic CLI usage or if some are optional for specific features.
- Performance characteristics and memory requirements for different model sizes on Mac hardware.
- Whether fine-tuning is production-ready or still experimental given the Beta development status.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 15 — mlx, transformers, miniaudio, tqdm, Pillow, requests, llguidance, mlx-lm, mlx-audio, opencv-python, fastapi, python-multipart, starlette, uvicorn, numpy |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 959,074/month — #4,639 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mlx_vlm-0.6.13-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
mlx-lmMLX LM loads, generates text with, fine-tunes,…
permissive · top 5,000 on PyPI
mlx-audioMLX-Audio provides text-to-speech,…
permissive · top 15,000 on PyPI
mlx-whisperRuns OpenAI's Whisper speech recognition models…
permissive · top 15,000 on PyPI
leptonaiLepton AI is a Python framework for building…
unclear · top 15,000 on PyPI
qwen-omni-utilsProvides helper functions to preprocess and…
permissive · top 5,000 on PyPI
ms-swiftms-swift is a framework for training,…
permissive · top 15,000 on PyPI
vllm-cpuvllm-cpu provides CPU-optimized inference for…
permissive · top 15,000 on PyPI
qwen-vl-utilsProvides helper functions to process images and…
permissive · top 5,000 on PyPI
smg-grpc-servicerProvides gRPC servicer implementations that…
permissive · top 5,000 on PyPI
mlxMLX is an array framework for machine learning…
permissive · top 5,000 on PyPI