The Techno-WitchWe read the fine print so you don't have to.

Consult the almanac

Turning the pages…

Arrow keys to move, Enter to open, Esc to close. Every answer links to a dated page.



Local AI · The Hearth

How to Run an LLM on a Mac: MLX, LM Studio or Ollama

On an Apple Silicon Mac, use LM Studio for a click-through app, Ollama for a simple terminal setup, or mlx-lm for Python. Memory is the limit.

Some links on this site may earn us a commission. It never changes a price, a verdict or what we tell you to skip. How we make money.

In this story (8 sections)
  1. The three tools at a glance
  2. What MLX actually is
  3. The mlx-lm ritual, start to first answer
  4. LM Studio and Ollama, the easier doors
  5. How much memory your Mac needs
  6. The wired-limit tweak for big models
  7. Which local model to run
  8. What to do next

To run an LLM on a Mac, pick one of three tools: LM Studio if you want a desktop app, Ollama if a couple of terminal commands are fine, or Apple's mlx-lm if you're comfortable with Python. All three work on Apple Silicon, and your Mac's memory decides how big a model you can load.

Requirements below are as of November 30, 2026, from each project's own docs.

The three tools at a glance

LM Studio Ollama mlx-lm
What it is Desktop app Model runner, terminal-first Python package
Mac chips Apple Silicon (M1/M2/M3/M4) only Apple M series (CPU and GPU), Intel (CPU only) Apple silicon
macOS 14.0 or newer Sonoma (v14) or newer No general minimum stated
Memory guidance 16GB+ RAM recommended 8 GB of unified memory recommended for its starter example None stated
Price Free at home and at work Free to run locally; paid plans are for cloud models Not stated

On price: LM Studio has been free at home and at work since its July 8, 2025 announcement. Ollama's hosted models are a different thing from running on your Mac, and get their own guide: Ollama cloud.

What MLX actually is

MLX is "an array framework for machine learning on Apple silicon" from Apple's machine learning research team. The trick that matters for Macs: arrays live in shared memory, so the CPU and GPU can work on the same data without copying it back and forth. That's the unified memory design earning its keep.

MLX itself is the engine. mlx-lm is the part you'll touch: "a Python package for generating text and fine-tuning large language models on Apple silicon with MLX." The MLX page installs with pip install mlx on macOS and states no minimum macOS or Python version.

The mlx-lm ritual, start to first answer

Install it with either command from the mlx-lm README:

  • pip install mlx-lm
  • conda install -c conda-forge mlx-lm

Then ask it something:

  • mlx_lm.generate --prompt "How tall is Mt Everest?" gives a single answer.
  • mlx_lm.chat opens a back-and-forth chat.

With no --model flag, both use mlx-community/Llama-3.2-3B-Instruct-4bit, a small 4-bit model that suits a first run. To pick another, add the flag, for example mlx_lm.generate --model mistralai/Mistral-7B-Instruct-v0.3 --prompt "hello".

Pre-converted models live under the mlx-community name on Hugging Face. To shrink a model yourself, run mlx_lm.convert --model mistralai/Mistral-7B-Instruct-v0.3 -q, and add --upload-repo mlx-community/my-4bit-mistral if you want to publish the result. The README mentions mlx_lm.server only in passing, so check the repo before you plan on running it as a local API.

LM Studio and Ollama, the easier doors

LM Studio is the point-and-click route. Its system requirements say Apple Silicon (M1/M2/M3/M4) with macOS 14.0 or newer, and Intel Macs aren't supported. Its docs don't say whether it runs MLX models, so don't pick it on that basis without checking.

Ollama suits people who don't mind a terminal. Per its macOS page, it needs macOS Sonoma (v14) or newer and supports Apple M series chips on the CPU and GPU, or x86 Macs on the CPU only. It uses the Mac's GPU through Apple's Metal API. That macOS page doesn't mention MLX either.

If you'd rather build from source, the llama.cpp build docs say "On MacOS, Metal is enabled by default." For the full head-to-head, read LM Studio vs Ollama, and for what sits underneath Ollama, llama.cpp vs Ollama.

How much memory your Mac needs

Memory is the real limit on a Mac, because the model has to fit in unified memory alongside everything else you have open. The official guidance is thin, but it's there:

  • LM Studio: "16GB+ RAM recommended." 8GB Macs may work with smaller models and modest context sizes.
  • Ollama: "We recommend 8 GB of available VRAM, or unified memory on a Mac" for its small gemma4:e2b example. Longer context needs more memory, and with less memory, responses may be slower.

No official page recommends a specific Mac or RAM configuration, including the M4 Mac mini people keep asking about. Our reading of the two figures above: 8GB gets you small models, and 16GB is the floor LM Studio itself suggests. For model-by-model numbers, our VRAM guide for local LLMs lists the official sizes.

The wired-limit tweak for big models

mlx-lm hides one Mac-specific lever. For large models, the README tells you to raise the GPU wired limit:

sudo sysctl iogpu.wired_limit_mb=N

Set N larger than the model's size in megabytes but smaller than your Mac's total memory. This requires macOS 15.0 or higher. That version applies to this tweak only, not to mlx-lm as a whole. Since it's a sudo command changing system memory behavior, save your work before you try it.

Which local model to run

No official source names a best local LLM; the Ollama library just lists what it supports. So here's our opinion, and it's only that: start small, like mlx-lm's default 3B 4-bit Llama, and move up in size only when your memory has room. A model that fits comfortably beats a smarter one that barely loads.

If you're weighing whether local is worth it at all, local AI vs cloud AI covers the trade, and open-weight models explains which downloads you're allowed to use.

One more myth to banish: no official page says MLX is faster than Ollama or llama.cpp, so treat anyone who states it as fact with suspicion.

What to do next

  • Never opened Terminal: LM Studio, if your Mac is Apple Silicon on macOS 14.0 or newer.
  • Intel Mac: of these three, Ollama is your option, running on the CPU only. LM Studio won't install.
  • Comfortable with Python: pip install mlx-lm, then mlx_lm.chat.
  • 8GB Mac: stick to small models. Both LM Studio and Ollama set expectations at that level.
  • Shopping for a Mac for AI: no vendor recommends a configuration. LM Studio's 16GB+ is the most specific official number.

Receipts

Official pages behind this story, read Nov 30, 2026
  1. github.com
    What is MLX? · How do you install MLX?
  2. github.com
    What is mlx-lm?
  3. raw.githubusercontent.com
    How do you install mlx-lm? · What commands run a model?
  4. lmstudio.ai
    LM Studio Mac requirements?
  5. lmstudio.ai
    Is LM Studio free?
  6. docs.ollama.com
    Ollama Mac requirements?
4 more receipts
  1. docs.ollama.com
    Ollama memory guidance on a Mac?
  2. docs.ollama.com
    Does Ollama use the Mac GPU?
  3. raw.githubusercontent.com
    Does llama.cpp use Metal on Mac?
  4. ollama.com
    Is local use limited?

Only pages the company publishes itself are listed. How we check: our method. Spotted a wrong number? Corrections.

Filed under

Local AI: The Hearth“mlx-lm”

Front page