Training a 480B Model on a MacBook: What PagedMoE Really Costs

The small open-source project PagedMoE can now train AI models five times larger than a MacBook's memory. The trick is that most of the model stays on the SSD. We ran the numbers on how long training takes, what it would cost on rented GPUs and how much data flows through the SSD along the way.

Analysis Nov 28, 2026 10 min read Original analysis by our editors
Illustrative image, AI-generated

What it's about

It's been known for a few months that you can run huge language models on a Mac even when they don't fit in memory. Projects like flash-moe or mlx-moe do it by loading whichever parts of the model are needed from the SSD. It works, but it's usually slow. PagedMoE is more ambitious. The one-person project PagedMoE by Noah Clark wants to train these models too. According to the README, pre-release 0.4.0 trains an adapter for Qwen3-Coder-480B, a 270 GB checkpoint, on a MacBook Pro with an M5 Pro and 48 GB. Memory use supposedly never goes above 30 GiB.

We look at the project and run the numbers. How long do realistic datasets take? What does the same job cost on rented GPUs? What does the SSD have to put up with, and where are the limits? All performance figures come from the developer. We couldn't find any independent measurements. The project is also very young. The repository has existed since mid-September 2026 and has 23 stars. GitHub has no release or tag for v0.4.0, so you install straight from source.

How training from the SSD works

PagedMoE is built for MoE (Mixture of Experts) models. In these models, only a few of many "expert" subnetworks are active for each token. The part that always runs (attention, router, embeddings) stays in memory. The experts live on the SSD and get loaded when the router asks for them.

Training doesn't change the base model's weights. PagedMoE only attaches small LoRA adapters: slim extra matrices that learn alongside the frozen layers. For the 35B model, the docs put that at about 0.06 percent of the parameters. Gradients and optimizer state exist only for these adapters, which the docs describe as "a few hundred MB." A "layered executor" runs one layer at a time across all micro-batches in a step and recomputes the layers during the backward pass. According to the docs, that's why the experts get read "roughly twice" per step, no matter how big the model is. Because the base model is in 4-bit, this is technically QLoRA.

Supported methods include SFT (classic fine-tuning on example conversations) and CPT (continued pretraining on raw text). There are also the preference methods DPO, ORPO, SimPO, CPO and KTO, which learn from good/bad pairs, and GRPO, a reinforcement learning method that uses reward functions. You can define custom objectives and trainable input encoders too. A planner decides automatically whether the model stays fully in memory or gets streamed. It times three trial steps up front. If memory gets tight, it shrinks the expert cache first and then the micro-batches.

Getting started and exporting adapters

You install with git clone, then run ./install_mlx.sh and set up a dedicated Python environment (Python 3.10+). PagedMoE pins mlx 0.32.2 and mlx-lm 0.31.3, because according to INSTALL.md, mlx-lm 0.32 already breaks the engine. A typical workflow:

  • paged-moe-train plan sft --model <path> --data chat.jsonl shows the plan without training.
  • paged-moe-train sft ... --epochs 2 starts training. Use resume, chat and eval to continue a run, try it out in chat or evaluate it (loss, exact match, token F1).
  • paged-moe-train export <run> writes a PEFT adapter, the standard format in the Hugging Face ecosystem. You can load it in transformers, in vLLM (--enable-lora), or in llama.cpp after converting it with convert_lora_to_gguf.py.

On export, the tool checks names and shapes against the original safetensors and stops if anything doesn't match. The developers point out two limitations. Because the adapter was trained on 4-bit weights, it shows a slight numerical drift on the full-precision model. And LoRA weights on the routed experts aren't exported. There's also a Mac app called "Paged Trainer." It comes from QWERTY Code LLC, the company behind pagedmoe.com.

Running the numbers: how long, how expensive?

The project's benchmark table (M5 Pro, 48 GB, SFT on rows of 2,048 tokens, QLoRA rank 16) lists figures for 1,000 rows. We extrapolated the 10,000-row figures from the seconds per step:

Model Checkpoint Tokens/s Peak 1,000 rows 10,000 rows (our math)
Qwen3-Coder-Next 6-bit 65 GB 123 28.5 GiB 4 h 37 min ~46 h
Qwen3-235B-A22B 4-bit 132 GB 63 29.7 GiB 9 h 06 min ~91 h (3.8 days)
Qwen3.8-Flash-Next 6-bit 148 GB 61 27.9 GiB 9 h 20 min ~94 h
GLM-4.7 4-bit 199 GB 24 27.9 GiB 23 h 59 min ~240 h (10 days)
Qwen3-Coder-480B 4-bit 270 GB 24 29.8 GiB ~1 day ~242 h (10 days)

That's for a single epoch. Two epochs, or a second attempt with a different learning rate, doubles the time.

Now compare that with data center hardware. The ms-swift framework documents a LoRA run for Qwen3-235B-A22B on eight H20 GPUs at 3.5 seconds per step with 16 examples (max 2,048 tokens). That works out to at most 0.22 seconds per example. The Mac needs about 33 seconds per row for the 235B model. The H20 is a cut-down version of the H100, so an 8×H100 server shouldn't be any slower. At roughly 3.6 minutes for 1,000 examples and 36 minutes for 10,000, compute time is small. Most of the rental time goes to downloading (about 470 GB in bf16), conversion and setup.

An 8×H100 node costs $4.59 per GPU-hour at Lambda, or about $37 per hour. Runpod clusters charge $4.79 per GPU-hour. Our estimate: including setup, 1,000 examples on the 235B model cost about $40 to $80, and 10,000 examples about $75 to $130. In bf16, the 480B model takes up about 960 GB, which won't fit on eight 80 GB cards. You'd need H200 or B200 nodes at roughly $51 to $62 per hour, and our rough range is $100 to $250.

The Mac, by contrast, costs little more than electricity. Notebookcheck measured up to 38 watts for the M5 Pro GPU. If we assume 60 watts for the whole machine, that's about 1.4 kWh per day, or roughly 50 euro cents. The ten days for 480B would come to about 5 euros. The real cost is time. With 480B you get just one 1,000-row experiment per day, and the machine is tied up the whole time. PagedMoE only allows one GPU job at a time.

The SSD: lots of reading, little writing

The benchmark table also lists the read volume per step. Tokens per step tell you how many rows a step processes, and we extrapolated from there:

Model Rows/step (derived) GB read/step per 1,000 rows per 10,000 rows
Qwen3-Coder-Next ~8 59 ~7 TB ~74 TB
Qwen3-235B ~7 211 ~30 TB ~300 TB
GLM-4.7 ~3 351 ~117 TB ~1.2 PB
Qwen3-Coder-480B ~1 339 ~340 TB ~3.4 PB

With the 480B model, each step apparently processes just one row. So every row pushes about 339 GB through the SSD, averaging around 3.9 GB/s. The docs otherwise talk about steps of "at least roughly 16k tokens," and the project doesn't explain why the planner goes so small here.

SSD wear is mostly about writes, and there are few of those: a checkpoint every 50 steps or 20 minutes, with three kept. Reads aren't entirely harmless, though. With "read disturb," frequent reads shift the charge in neighboring cells, and the controller then copies the affected blocks internally ("read reclaim"). Research on NAND flash has shown this. Nobody has published how much petabytes of repeated reads strain an Apple SSD. The docs say nothing about temperatures or multi-day sustained load. Notebookcheck does report that the 16-inch M5 Pro doesn't throttle under sustained load.

The limits

  • LoRA/DoRA only, frozen 4-bit base. Full fine-tuning is out. In streaming mode the experts stay untouched. LoRA on experts only works if the whole model fits in memory. That's a big deal: an arXiv study found that adapting the experts is exactly what gives the best results. A user on the NVIDIA forums reports that with attention-only training, "the loss stayed very high."
  • No quality evidence for the big runs. We found no before-and-after evaluations for a 235B or 480B model trained this way, only the eval tool itself.
  • Docs aren't fully consistent. The README shows a GLM-4.7 training run, while the training docs list GLM-4-MoE as "likely compatible, untested."
  • "Speed" mode is inference-only. It skips low-weight experts, so it isn't bit-exact. It's disabled during training, which always runs on the exact model.
  • AGPL. According to the GNU FAQ, internal use within an organization doesn't count as distribution, and a program's output generally isn't covered by its license. But if you modify PagedMoE and offer it over a network, for example through the OpenAI-compatible server, you have to publish the source code. For closed products, SaaS or OEM, the project points to a commercial license by email. The prices at pagedmoe.com/business ($1,500 setup plus $49 per Mac per month) are for the office product. The page doesn't say whether they include the trainer license. This isn't legal advice.

For context: mlx-lm and mlx-lm-lora handle LoRA, QLoRA and many methods up to GRPO on the Mac, but their memory tips assume the model fits in memory. flash-moe and mlx-moe stream experts from the SSD, but only for inference. We didn't find any other Mac project that trains beyond available memory. The developer says the same on Reddit, adding that he might be wrong. One thing to watch when searching: a November 2026 arXiv paper is also called "PagedMoE," but it's by different authors and covers inference only.

Our take

PagedMoE shows that you can, in principle, train models bigger than your memory on a laptop. That's technically impressive, but it doesn't replace GPU servers yet. Our assessment: on pure compute time, the Mac is roughly 150 times slower than a rented 8-GPU node for the 235B model. The cost advantage is a few dozen to a few hundred dollars per run. It can be worth it if your data can't leave the building, if you're experimenting with small datasets, or if you want to train a smaller adapter for Qwen3-Coder-Next overnight. For serious iteration on 480B at ten days per epoch, it's hardly practical. Open questions remain. How good can adapters get if they never touch the experts and routers? How well does the hardware handle days of full load? And will a one-person project be maintained for the long haul? If you want to try it, start with plan and a small model, and check the PEFT export on your target system early.

#apple silicon#fine-tuning#moe#mlx#lora

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.