Direct answer
Yes. MLX and mlx-lm are ordinary Python packages that you install with pip under the customer account. Large models come with a macOS version requirement, so check the system version before installing.
Basis
- MLX's official repository describes it as an array framework for machine learning on Apple silicon. One of its features is the unified memory model: arrays live in shared memory, and operations on the CPU and GPU do not need to copy data. This is the main difference in principle between running models on a Mac and on a machine with a discrete graphics card.
- mlx-lm is the package for running and fine-tuning language models on MLX. The entry points given in its README are
mlx_lm.generate(one-off generation),mlx_lm.chat(a chat in the terminal) andmlx_lm.convert(convert and quantize a model). Models can be pulled by name from community repositories on Hugging Face that have already been converted. - The README states that running large models needs a recent macOS (it currently says 15.0 or later), and that if you see a warning that the model needs more memory than is available, generation will be slow. That warning is itself a useful test result.
- When generation finishes, the command line prints statistics for that run. We have no figures from any machine for you to compare against; the numbers you get yourself are the only reliable evidence.
Boundaries: when the answer is different
The README mentions raising the system's limit on GPU memory use to fit larger models. That is a change to a system kernel parameter, so contact support to confirm before touching it and do not try it on your own. Fine-tuning takes far more memory and time than inference, and the configurations on offer (see the plans page) may not suit it; if you want to train, a cloud server with a graphics card is the better place to look.
How to do it
- Confirm the macOS version meets the requirement in the mlx-lm README. If the system needs upgrading, contact support first; do not upgrade it yourself.
- Set up a native Python with Homebrew or the official installer, and create a virtual environment.
- Run
pip install mlx-lm, then runmlx_lm.generate --promptwithout other arguments first to get the default small model working. - Use
--modelto switch to the model you care about, and watch for a memory warning. - Record the command-line statistics for each model together with the memory pressure shown in Activity Monitor.
Related questions
- How much RAM do I need for local LLMs on a Mac? Rent a Mac mini for a month before buying
- How much memory does a Mac need for local LLMs, and how do I test it myself?
- What is GGUF quantization, and which level should I download on a Mac?
- Rented Mac mini vs GPU cloud server for running LLMs: what's the difference?
- Can I install Node, Homebrew and Docker on a rented Mac mini myself?
Use case
This question belongs to the use case: How much RAM do I need for local LLMs on a Mac? Rent a Mac mini for a month before buying
Other questions in the same use case:
- Can programs on my own computer call a local model on a rented Mac as an API?
- Who can see my prompts and files when I run a local model on a rented Mac?
- Should I rent a Mac for a month before buying one for local LLMs?
- Buying a Mac for local LLMs: spend the budget on memory or storage?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support