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.
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
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Frame generation on NVIDIA cards: DLSS on RTX 40/50, FSR 3 elsewhere
Enabling frame generation on non-RTX 40/50 GPUs lets gamers run console-build games at higher frame rates without buying new hardware.
Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
The Download: Better bionic hands and AI’s natural-gas boom
This newsletter roundup mostly relays other outlets' reporting; its two own stories flag sensory-linked prosthetics reaching home use and AI data centers locking the US grid into natural gas.
Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon
AMD developers running llama.cpp locally on Ryzen/Radeon GPUs can now compare prompt-processing and token-generation speeds across builds, models and quantizations on a public dashboard.