Outlier  ›  run

How to run Qwen3.5-397B on a Mac without 512 GB of RAM

Quick answer
  • The MoE design fires only 10 of 512 experts for any given token.
  • Paged expert streaming parks the active experts in RAM and pulls the rest off the SSD.
  • What you get from Plus, measured on an M1 Ultra Mac Studio with 64 GB: 14 GB peak RAM, 1.59 tok/s.
  • You'll want the internal NVMe SSD; I have not measured external drives.

Qwen3.5-397B-A17B is a Mixture-of-Experts model from Alibaba. At MLX 4-bit quantization the full weights weigh in around 209 GB. Everyone tells you to go buy a server, and for a 70B dense model they're right. Qwen's MoE design gives you an out. Keep the active experts in unified memory and stream the rest off your SSD as you need them.

The model in one paragraph

Qwen3.5-397B-A17B carries 512 experts per layer. For each token, a router picks 8 of them and only those 10 do work. The "397B" is every parameter across all the experts added up. The "A17B" is what's actually active per token. That router decision is content-dependent, so different tokens wake up different experts. Across a long conversation, though, expert usage settles into a fairly stable pattern. That stability is what makes caching pay off.

Why a 64 GB Mac is enough

If only 10 of 512 experts ever fire per token, there's no reason to keep all 512 sitting in RAM. What you actually need is small:

On a 64 GB Mac Studio Ultra running Outlier's V9 paged engine, peak OS-level RSS during Plus 397B generation lands around 14 GB. The other ~50 GB of RAM goes to the OS and whatever else you've got open. Generation runs at roughly 1.59 tokens per second. Memory isn't the bottleneck. The SSD is. Specifically, how fast it can pull an expert's weights when the router asks for one that isn't cached.

What the SSD needs to be

This is where the SSD earns its keep. Apple's first-party Mac Studio SSDs sustain several GB/s of sequential read. Apple's Mac Studio SSDs are fast enough to feed the expert demand at about 630 ms per decoded token (1 ÷ 1.59 tok/s).

Two things follow from that.

The honest tradeoff

Nothing here is free, so let's be straight about it. Against the capacity engine (the path that crams everything into RAM), V9 paged inference uses roughly 15× less peak memory (about 209 GB against about 14 GB), and the price is being SSD-bound rather than memory-bound. On long contexts, once expert usage settles, the cache holds the hot set and SSD reads taper off. On a fresh prompt the experts are all cold, so every token misses and triggers a read. Your first response is always the slowest one.

Against cloud inference, the speed hit is large: 1.59 tok/s on our M1 Ultra. In return you get no API key, no rate limit, no shipping your code off to someone's server, and no monthly bill once the model's on disk. If you're doing an architecture review or grinding through a long debugging session or a real code refactor, that swap usually favors running local. For "what's the syntax for X in Python," it doesn't.

Setting it up

Easiest route is Outlier's Mac app. Download the DMG, install it, switch to the Pro tier. Plus 397B needs that Pro tier: $49 lifetime (the Outlier Lifetime Licence). The app takes care of the model download, the streaming engine, and the chat / agent UI for you. You can roll your own with mlx-lm and a custom streaming loader, but that's a pile of Python plumbing and you lose everything around it.

Frequently asked questions

Do you need 512 GB of RAM to run Qwen3.5-397B?

No. With paged expert streaming the model runs on a 64 GB Mac. On our M1 Ultra it measured about 1.59 tok/s and roughly 14 GB peak RAM.

Where are the model weights stored?

On your SSD as MLX 4-bit safetensors, about 209 GB. Experts stream into memory on demand as the router selects them.

Does SSD speed matter?

Yes. Internal Apple Silicon NVMe sustaining 5 to 15 GB/s is needed; external Thunderbolt SSDs are roughly half the throughput and run correspondingly slower.

Try Outlier free

Free: Nano + Lite. Pro: $49 once. macOS 15+. Refund window: 30 days, no questions asked.

Download free (276 MB) Buy Pro

New models worth running