# Full Workshop: Frontier AI at Home — Alex Cheema, EXO Labs
<!--
ref: @content/youtube/aie/2026-05-26-full-workshop-frontier-ai-at-home
version: 3
updated_at: 2026-10-31T20:28:26.413Z
-->

Alex Cheema (AI Engineer, 2026-05-26): Local inference is a memory problem, not a compute problem, and the entire hardware and research stack was built around training, where compute dominates.

*Synthesized from Alex Cheema on AI Engineer, 2026-05-26.*

Alex Cheema works on EXO, a lab focused on running frontier AI on local hardware across the full stack — models, software, and hardware — with the stated mission of driving down the cost of running frontier systems locally.

## Core Thesis

Local inference is a memory problem, not a compute problem, and the entire hardware and research stack was built around training, where compute dominates. That mismatch leaves enormous unclaimed performance at every layer — kernels, orchestration, model architecture, even the agent harness — and because those gains compound, Cheema argues roughly 100x of price-to-performance improvement is still available. The consequence is that a $5,000 box running near-frontier models fast is a matter of engineering, not of waiting for a breakthrough.

## Key Insights

- The name EXO comes from **exocortex** — the idea that AI stops being a tool you open and becomes an extension of yourself. Cheema's framing question follows from that: do you want to rent your brain? He cites Andrej Karpathy's line, "not your weights, not your brain." His concrete example of the risk is a friend doing authorized penetration testing who got locked out of three major API providers at once.
- **The hardware lottery, applied to inference.** Cheema points to Sarah Hooker's work: current research is shaped by the hardware that exists, and that hardware — stacked NVIDIA GPUs optimized for FLOPs unit economics — was built for training. Inference on that stack inherits assumptions that were never checked, which is why the low-hanging fruit is everywhere.
- **A worked example of that fruit.** Running Qwen 3.5 locally on Apple silicon, EXO found real throughput about 50% below theory. The cause was unnecessary separate kernel launches; at a theoretical ~150 tokens/second — under 10 ms per token — a few milliseconds of launch overhead each is decisive. Basic kernel fusion recovered 30% performance. His point is that a stack most people assume is already well-optimized simply isn't.
- **Training is about FLOPs; inference is mostly about memory.** Locally you are a single user, so you cannot batch, and low-batch decode is memory-bound. Cheema splits inference into prefill (loading context, generating KV caches — compute-bound) and decode (autoregressive, token by token — memory-bound), and argues **prefill matters far less than people think** for real local workloads, because a good harness produces heavy cache hits. His verification: type `/context` in Claude Code and see how much of the prompt is system prompt and tool definitions that never change. Benchmarks emphasizing enormous prompt sizes mislead.
- **Three things determine decode.** First, the model must *fit in memory* — otherwise you page from disk and lose. Second, **memory bandwidth** sets speed. Third, and specific to local, **energy per byte moved** determines whether the thing is usable at all.
- **Why phone inference isn't there yet.** An iPhone battery holds roughly 10–15 watt-hours; inference draws roughly 10–15 watts. That is about one hour of battery, and when EXO benchmarked phones around 18 months prior, the handset became too hot to hold. Asked later, Cheema puts serious phone inference "many years out."
- **Intelligence per watt** — a metric from Stanford's Hazy Research group (known for ThunderKittens) — captures all three by dividing task performance by energy consumed, and it has improved roughly **5x over two years** from hardware, with another **3x from model improvements**, compounding. Cheema's correction to the name: it should be intelligence per *joule*, since what matters is total energy for a task, not power.
- **Consumer memory capacity is genuinely new.** Off-the-shelf 256 GB and (until recently) 512 GB Mac Studios, and an M5 Max MacBook configurable to 128 GB at 614 GB/s of bandwidth, are hardware categories that did not exist for consumers before.
- **The honest cost of frontier-open today.** GLM 5.1, released the day before the talk, is about a trillion parameters and natively FP16 — call it 1.5 TB of weights. On 512 GB Mac Studios that is roughly **$40,000 of hardware** running at maybe **20 tokens/second**, against the ~50 tokens/second people are now accustomed to from the cloud. Cheema is explicit that he would not tell a friend to spend $5,000 on an inference box today unless they want to experiment — but he expects near-frontier performance at that price within about 18 months, and shippable consumer products within two years.
- **The bifurcation thesis.** Every use case follows an S-curve where more intelligence stops paying. Transcription (his example is Whisper Flow), summarization, to-do lists, email digests — a 10-trillion-parameter model reasoning for minutes is both too slow and no better. So compute demand splits: enormous models for genuinely hard problems like disease research, local models for the ~90–99% of consumer work that has already saturated. He notes both directions are live: rumors of 10-trillion-parameter frontier models on one side, and a tiny Gemma 4 that beats the best model of two years ago on the other.
- On specialized silicon, Cheema's read is that model-specific chips haven't made sense because the frontier moves every three months and the chip is obsolete before it ships — but that if capabilities plateau per use case, the math flips. He sketches the follow-on: closed labs must ship one monolithic model because their API serves every use case, whereas an opinionated local stack could ship 20 specialized models covering the same ground, each paired with silicon that runs it efficiently. He notes this co-design is already happening in data centers, citing NVIDIA's acquisition of Groq and Cerebras and AWS Trainium pairings.
- **Mac vs. RTX is a false choice; you want both.** A 512 GB Mac Studio has more than 10x the memory of an RTX 5090 (32 GB GDDR7) but roughly half its bandwidth and about a tenth its compute. Since prefill is compute-bound and decode is memory-bandwidth-bound, run each phase where it belongs. EXO demonstrated exactly this by pairing an NVIDIA Spark-class box (about $4,000, 273 GB/s bandwidth, ~4x the compute) with a MacBook (546 GB/s) — a **12x difference in the compute-to-bandwidth ratio** between the two. Cheema's own comment: it is crazy that this is necessary because no single piece of hardware has it all.
- **The heterogeneous split has a hard engineering constraint**: the KV cache lives on the prefill machine and must reach the decode machine, streamed and overlapped with computation or the phases serialize. That is why the pair is connected by **10 gigabit Ethernet** (via an adapter, since the MacBook has no port). When the demo accidentally routed over Wi-Fi, bandwidth became the bottleneck. Working, on a ~100 KB prompt, the split gave about **2x** end-to-end versus the MacBook alone — and only for large prompts, since prefill time grows quadratically with prompt size while a "hello" gains nothing.
- **Dense vs. MoE changes the right hardware.** The Mac's ratio of memory to bandwidth is very high, which suits sparse MoE models. For a dense model like Gemma 4's larger variant, fitting it all in memory buys you little — you want a smaller, much faster pool, i.e. the GPU.
- **RDMA is what made Mac clustering actually faster rather than merely bigger.** Over Thunderbolt 5 (essentially PCIe in a wrapper) between consumer Macs running a general-purpose OS, inter-node latency was about **300 microseconds**. With tensor parallelism requiring two synchronizations per layer, a 60-layer model like Kimi or DeepSeek needs 120 synchronizations per token — roughly 40 ms of pure communication, enough that clustering previously bought capacity at the cost of speed. EXO's low-latency RDMA integration cut that **~100x to single-digit microseconds**, under 1 ms total, which makes scaling up genuinely faster than a single device.
- **EXO in practice is one background app per machine.** Install it, and nodes auto-discover and form a mesh however you cable them; the software decides how to distribute the model given the hardware present. It maintains a **live view of the physical topology** to choose the split. Internally it uses **event sourcing** — each machine writes an append-only log, merged for consistency — precisely because devices sleep, die, and rejoin mid-request; a newly connected node visibly replays cluster history before participating. Each node exposes the same HTTP API and dashboard, so you can drive the cluster from any of them.
- The live demo ran GLM 5.1 across four Mac Studios in tensor parallel with all four at 100% utilization — the 4-bit conversion (still nearly 400 GB, about 112 GB per machine) done the day before, easy only because GLM 5 already existed and the architecture was unchanged. He contrasts this with Gemma 4, whose unusual KV cache design took real work to support. A smaller Qwen 3.5 instance across two machines ran at 77 tokens/second.
- Remote access is deliberately not reinvented: EXO exposes an endpoint per device and Cheema uses **Tailscale** to reach his home cluster from anywhere. The vision he describes is a box at home with access to all your data, running something like an always-on agent, reachable securely from your phone — with no per-token cost, only electricity.
- **Local won't stay batch-size-one, and that undercuts the cloud's economics argument.** Three trends push local batch sizes up: multi-agent systems (a single Grok request now fans out across four or more collaborating agents), test-time scaling via search (best-of-N with a trained verifier — he cites Hugging Face results showing a 1B model matching a larger one given enough test-time compute), and **continual learning / test-time training**. The last is the sharpest: if each user's weights diverge, cloud providers cannot batch at all, which he estimates would make local roughly 10x better relative to cloud. He expects continual learning to hit an inflection point this year, and notes it also dissolves the context/memory problem, since you update weights instead of managing sessions.
- **On renting out spare capacity**: interesting only at scale, and at the wrong level of abstraction as usually proposed. Renting hardware fails; renting a *use case* — tokens, or better, tasks — lets you get creative. His example of a viable product is a latency-insensitive API that guarantees a task completes within 24 hours and can freely retry. He notes utilization may not stay low anyway, since a box you already own invites you to run an agent continuously.
- **The closing critique is about epistemics.** The best public sources on local inference are Reddit and Twitter, everyone says different things, and capable AI tools have produced many citizen scientists and correspondingly much noise. His canonical failure is heavy quantization: a model at one bit is worse than a smaller model left unquantized, so "I ran Kimi on a MacBook" threads usually conceal one-bit weights plus expert pruning — two active experts instead of eight — and unusable speeds. EXO's answer is to publish thousands of open benchmarks across models, quantizations, and pruning strategies, pairing raw throughput and prefill time with *quality* metrics like intelligence per joule, so you can pick a budget and see the Pareto frontier of local setups at that price.
- Asked about Karpathy-style automated research loops optimizing models for specific hardware, Cheema is openly skeptical — not of the tool but of its use without the scientific method. Without a reasoned hypothesis and real experiments it is brute force, "a slot machine," and worse, auto-research can silently destroy model quality while reporting that it works. On disk-based inference specifically he is unconvinced: memory hierarchies are fundamental, but disk is simply too slow and the money is better spent on the memory problem — unless someone builds something exotic like 64 SSDs in RAID with speculative expert prefetch, which is still not a MacBook.
- Cheema's own utilization is low and he still uses Opus heavily — the local set is growing as "good enough" expands, but he does not oversell his current usage.

## Actionable Takeaways

1. Optimize for decode, not prefill, in local setups. Verify how static your prompt actually is (`/context` in Claude Code shows how much is unchanging system prompt and tools) before paying for prefill throughput.
2. Order your hardware decisions: does the model fit in memory at all → memory bandwidth → energy per byte. Missing the first turns everything into disk paging.
3. Pair complementary hardware rather than choosing between them — run prefill on the compute-heavy device (a Spark-class box, an RTX card) and decode on the bandwidth-heavy one — but only expect gains on large prompts, where prefill scales quadratically.
4. Budget real network for the KV cache handoff. 10 gigabit Ethernet, not Wi-Fi; if the transfer can't overlap computation, the phases serialize and you lose the speedup.
5. For multi-Mac clusters, Thunderbolt 5 plus RDMA is the difference between more capacity and more speed — at 300 µs latency, 120 synchronizations per token costs ~40 ms and erases the benefit.
6. Match model sparsity to hardware ratio: MoE models suit the Mac's high memory-to-bandwidth ratio; dense models are better served by a smaller, much faster GPU memory pool.
7. Distrust one-bit quantization results. If a setup needs one-bit weights or expert pruning to fit, a smaller unquantized model will usually be both faster and better.
8. Audit your kernels before assuming your local stack is optimized — EXO recovered 30% on Qwen 3.5 by fusing unnecessary separate kernel launches.
9. Use Tailscale (or equivalent) to reach a home cluster; EXO exposes an HTTP endpoint per node and does not bundle its own remote-access layer.
10. Apply the scientific method to auto-research loops: state a hypothesis, run experiments that test it, and independently verify model *quality* — a loop reporting "it works" can be hiding a quality collapse.
11. Practical EXO gotchas from the live demo: never use the Thunderbolt port adjacent to the Ethernet port on these Macs; the low-level DMA mode required for the fast path must be enabled from macOS recovery mode; and mismatched macOS versions across nodes (26.2 vs 26.3) raise a compatibility warning.

## Notable Quotes

> "Not your weights, not your brain." — Andrej Karpathy, quoted by Alex Cheema

> "Training is about FLOPs. Inference is mostly about memory." — Alex Cheema

> "If you quantize a model to one bit, you're better off just using a smaller model and not quantizing it." — Alex Cheema

> "It's kind of crazy that you have to do this at the moment — that there isn't hardware that just has it all." — Alex Cheema

> "There's not unlimited returns on intelligence. At a certain point you don't need any more to do something." — Alex Cheema

> "Auto research without understanding what's going on is a slot machine." — Alex Cheema

> "Instead of subscriptions, buy this hardware and you never have to pay for a token again. It's just the electricity cost." — Alex Cheema

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*