MLX LM runs and fine-tunes language models on Apple silicon
OtherPublished: Source: GitHub Trending (Python, daily)
TL;DR:MLX LM is a Python package for running and fine-tuning large language models on Apple silicon using MLX.
MLX LM is a Python package for running and fine-tuning large language models on Apple silicon using MLX. It supports models from Hugging Face, 4-bit quantization and uploads, distributed inference and fine-tuning, streaming generation, and prompt caching for repeated long contexts.
This story is not fully summarized yet
Key points
- Supports thousands of compatible models listed on Hugging Face.
- Provides low-rank and full fine-tuning, including for quantized models.
- Prompt caching can reduce repeated processing of the same long context.
- Large-model memory wiring requires macOS 15 or later.
Why it matters
Developers with Apple silicon Macs can run and adapt a broad range of open models locally, with quantization and prompt caching offering ways to manage memory and repeated workloads.
Companies and models mentioned
- MLX LM
- MLX
- Hugging Face
- Apple
- Mistral 7B
- Llama 3.2 3B Instruct