Home/Q&A/Can I run models with MLX and mlx-lm on a rented Mac?

Can I run models with MLX and mlx-lm on a rented Mac?

Updated · airankrush

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) and mlx_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.

Information as of .

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

  1. 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.
  2. Set up a native Python with Homebrew or the official installer, and create a virtual environment.
  3. Run pip install mlx-lm, then run mlx_lm.generate --prompt without other arguments first to get the default small model working.
  4. Use --model to switch to the model you care about, and watch for a memory warning.
  5. Record the command-line statistics for each model together with the memory pressure shown in Activity Monitor.

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:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A