Autoresearching Apple's "LLM in a Flash" to run Qwen 397B locally

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Public code now lets anyone run a 209GB MoE model on 48GB of RAM at 5.5 tokens/sec, making huge local models viable on consumer Macs.

Read this as

Dan Woods got an enormous AI model called Qwen3.5-397B, so big its files take 209GB, running on a regular MacBook with only 48GB of memory, at a usable speed of 5.5 words-per-second. He did this by streaming most of the model from the computer's storage on demand, keeping only a small 5.5GB portion in working memory. This uses a 2023 Apple research idea called 'LLM in a flash'. Anyone wanting to run large AI models on ordinary hardware without expensive servers could benefit.

Woods demonstrated that a 397-billion-parameter Qwen model, normally impossible to host on a laptop, can run on a 48GB MacBook Pro M3 Max at 5.5+ tokens/second by streaming expert weights from SSD using Apple's 2023 flash-memory paper. The open-source flash-moe repo and accompanying paper are available now. Cost-conscious teams and local-AI vendors gain a proven recipe; cloud inference providers face more competition from on-device options. Unverified model quality is the main risk.

Qwen3.5-397B-A17B is a Mixture-of-Experts model, so only a subset of weights is needed per token, allowing expert weights (quantized to 2-bit, 120GB total) to be paged from flash on demand. Non-expert components, embeddings and routing matrices, stay at original precision, 5.5GB resident. Woods ran 90 experiments via Claude Code using Karpathy's autoresearch pattern, producing MLX Objective-C and Metal code, published at danveloper/flash-moe. Experts were cut from 10 to 4 per token; claimed 2-bit output quality is 'indistinguishable from 4-bit', but evaluation methodology is thin.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Qwen3.5-397B-A17B MacBook Pro M3 Max Claude Code Claude Opus 4.6 flash-moe LLM in a flash

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading