Skip to content

Articles · AI for developers · Distributed Computing · Edge AI · Local LLM · SmartPhones

The Phone Mesh: Turn Your Spare Smartphones into AI Memory

Pool the RAM of the phones you already own to run AI models your PC can't fit alone: how it works, what speed to expect, and when it's worth

Akhilendra Dwivedi8 min read
Local AI Phone Mesh Cover
image 1794839540873
image 1794839540873

Many household now has more smartphones than people. Upgrade cycles leave perfectly good phones behind: 6, 8, even 12 GB of RAM and a processor that would have passed for a decent laptop a few years ago.

Meanwhile your PC refuses to load the AI model you actually want to run. "Out of memory." The model needs 19 GB; your machine has 16, half of it already busy.

So here's the tempting idea: what if your spare phones could join your PC as extra AI memory? A small private network of devices (a phone mesh) working as one machine.

I worked through this for an AI project I'm building. The answer is a surprising yes, just not the way most people imagine it. This post covers:

  • why phones can't lend RAM, but can lend model layers

  • how one word travels through the mesh

  • what you can realistically run with two 8 GB phones, two 12 GB phones, or phones plus a PC

  • which connection to use (Wi-Fi, hotspot, Wi-Fi Direct, USB)

  • when it's worth it, and when to buy a GPU instead.


1. The real wall: AI models are mostly memory

A language model is a huge pile of numbers (its weights). To produce each word (token), the device has to read essentially all of those weights once.

The memory needed at 4-bit quantisation (the usual compressed format for running models at home) is roughly:

Model Size

Memory at 4- bit

3B

~2 GB

8B

~5 GB

14B

~9 GB

24-27B

~15-16 GB

32B

~19 GB

70B

~40 GB

Two rules explain everything below:

  1. Capacity decides whether a model runs at all.

  2. Memory speed (how fast weights can be read) decides how fast it runs.

image 1794839596593
image 1794839596593

One more reality check: an 8 GB phone doesn't give you 8 GB. Android and its apps need their share, so plan on about 3–4 GB usable per 8 GB phone and about 5–6 GB per 12 GB phone.


2. Phones can't lend RAM, but they can lend layers

The naive version is "the PC uses the phone's RAM as extra memory". That fails. Reading memory over a wireless link is thousands of times slower than local RAM, and the PC would spend its life waiting.

The version that works flips it: don't move the memory to the computation; move the computation to the memory.

A model is a stack of layers (say 64) applied one after another. So you split the stack, and each device holds its own slice of layers in its own RAM and computes that slice itself:

image 1794839708479
image 1794839708479

Between devices travels only the hidden state: a short list of numbers that carries "the meaning so far". This is pipeline parallelism, the same idea AI labs use to spread giant models over many GPUs, just running over your own network.


3. How much data crosses the mesh? Very little

For a 32B-class model, the hidden state is about 5,000 numbers. At 16 bits each, that's about 10 KB per word, per hop. A WhatsApp photo is hundreds of times bigger.

So bandwidth is not the problem. Two things are:

  • Memory speed. Each device must still read its whole slice for every word.

  • Network delay. Every hop adds a few milliseconds, every word.


4. What can you actually run? A quick "what if" analysis

These are rough estimates from typical hardware: PC RAM read at ~40 GB/s, phone RAM at ~25 GB/s in practice, and a good local network at ~5 ms per hop. In one conversation the devices take turns rather than working at the same time, so time per word ≈ the sum of each device's read time plus the hops.

Setup

Usable memory for the model

Biggest model that fits (4-bit)

Expected speed

One 8 GB phone alone

~3.5 GB

3B comfortably; 8B is too tight

fast for small models

Two 8 GB phones

~7 GB

8B runs reliably (12B is a squeeze)

~4–5 words/s on 8B

Two 12 GB phones

~11 GB

14B

~2–3 words/s

PC alone (16 GB RAM)

~10 GB

14B

~3–4 words/s

PC (16 GB) + two 8 GB phones

~17 GB

24–27B class

~1.5–2 words/s

PC (16 GB) + two 12 GB phones

~21 GB

32B

~1.5 words/s

PC + several more phones

grows with each phone

32B comfortably; 70B only with many devices

each extra device adds capacity but slows things slightly

Speeds are for generating an answer in one conversation. Measure on your own devices; these are ballpark figures.

image 1794839805796
image 1794839805796

How to read this table:

  • Two phones turn "can't run it" into "runs it". An 8B model, the sweet spot for good small assistants, is risky on one 8 GB phone but comfortable across two.

  • Phones plus a PC are where it gets exciting. A 16 GB PC that tops out at 14B can reach the 24–32B class, a real jump in answer quality.

  • More devices mean more capacity, not more speed. In a pipeline, adding a device lets you hold a bigger model, but every word still passes through every device in turn. It never gets faster than the fastest single device could run the same model alone, if that device had the memory.

  • Compared with your PC swapping to its SSD: the mesh is far faster. Swapping can drop to one word every several seconds.

  • Compared with a gaming GPU or a 64 GB laptop: the mesh is far slower. Those do 10–40 words per second.

Good uses: overnight and batch work (summarising, translating or classifying documents), private offline experiments, and learning how LLMs really work. Weak use: fast live chat.

Two traps

  • Long prompts are slow to start. Before answering, the model processes your whole prompt, and every prompt token's hidden state must cross the mesh. A 2,000-token prompt is about 20 MB per hop, which takes seconds over Wi-Fi.

  • Never split inside each layer over wireless. The other technique, tensor parallelism, gives every device a piece of every layer. It's brilliant inside a server with special high-speed links. Over Wi-Fi the devices must sync about twice per layer, roughly 128 times per word, and at ~5 ms each that's over half a second of pure waiting per word. For a phone mesh, always split by layers.


5. Which connection? Wi-Fi, hotspot, Wi-Fi Direct or USB

Because so little data moves, the best connection is the one with the lowest and steadiest delay, not the highest speed.

Connection

Typical delay per hop

Good for

USB cable (USB tethering, or USB-Ethernet adapters)

~1 ms, very stable

the most reliable link between a PC and a phone; also charges the phone

Home Wi-Fi on 5 GHz

~2–5 ms

everyday use; all devices on one router

Phone or PC hotspot

~3–8 ms

anywhere, with no router: one device is the hub, the others join it

Wi-Fi Direct / Nearby (peer-to-peer mesh)

~3–10 ms

phones linking directly, with no router or internet; good for a phones-only mesh

Busy 2.4 GHz Wi-Fi

~10–30 ms, jumpy

avoid it: every word pays the delay at every hop

image 1794839861259
image 1794839861259

Shape of the mesh: a pipeline is a chain, so a star works best. One hub device (the PC, or the strongest phone) talks to all the others, and the hidden state goes hub → device → hub → next device. Wi-Fi Direct groups and hotspots form exactly this shape. Mixing works too: USB for the phone next to the PC, Wi-Fi for the rest.

Tips:

  • Turn off Wi-Fi power saving on the phones.

  • Keep the devices within a few metres of the hub.

  • If one link is jumpy, the whole mesh feels jumpy. Find it and fix it first.


6. The phone-specific gotchas

  • Android closes background apps. Run the worker in the foreground, keep the screen awake, and switch off battery optimisation for that app.

  • Phones slow down when hot. Take cases off, use a cool surface, even a small fan. Short cool-down gaps often give more total output than running flat out.

  • Battery. Keep phones plugged in, and use a charge limit if your phone has one, because months at 100% hurt the battery.

  • The slowest device sets the pace. Give faster devices more layers and weaker ones fewer; good tools let you set the split.

  • Security. Mesh worker servers usually have no password or encryption. Use them only on your own private network, never on public Wi-Fi, and never expose them to the internet.


7. Tools that already do this

You don't need to write it from scratch. Open-source projects already run models across devices:

  • llama.cpp's RPC backend: a main machine sends model layers to worker "RPC servers" on other devices. People run llama.cpp on Android through Termux.

  • exo: builds a cluster from mixed devices on a local network and splits models by layers.

  • distributed-llama: splits models across several devices; works best over wired links.

These projects move quickly, so check each one's documentation for current setup steps and phone support.


8. Capacity vs speed: the lesson that matters most

In our own project, an app that makes short AI-animated videos entirely on users' phones with no cloud, we did this exact analysis and made a different choice for the product.

Instead of splitting one model across phones, each phone in the mesh runs complete jobs on its own. One voices dialogue while another renders scenes, and a hub phone assembles the result. Nothing waits for a hidden state to cross the room, so every phone added makes the job finish sooner.

That's the key lesson:

Split the model across devices when you need capacity. Split the work across devices when you need speed.

image 1794839969042
image 1794839969042

Splitting by layers answers "can I run something too big for one device?" Splitting by tasks answers "can I finish faster?" Know which question you're asking before you build your mesh.


TL;DR

  • Your spare phones can't lend RAM to your PC, but they can hold and run a slice of the model's layers.

  • Only about 10 KB per word crosses the mesh; memory speed and network delay set the pace.

  • Two 8 GB phones make an 8B model comfortable. A PC plus a couple of phones reaches the 24–32B class at about 1.5–2 words per second.

  • More devices = bigger models, not faster answers. It's great for batch and offline work, weak for fast chat.

  • Use USB or 5 GHz Wi-Fi / Wi-Fi Direct, build a star-shaped mesh, and split by layers, never within layers.

  • For speed instead of size, split tasks, not models.



Note : All numbers are estimates from typical hardware specs; results vary by phone, PC and network, so measure your own. If you build a phone mesh, share your words-per-second. I'd love to compare.

Community article · guidelines

Comments

Loading comments…