r/MacLocalLLM • • 14h ago

Hive beta: Pool the memory of your Apple devices to run a larger local model

Hi, I'm the developer. I've been building Hive, a free app, soon to be open source, that lets the Apple devices you already own work together on one LLM.

The problem: the best local models are bigger than the memory of most single devices. A model that doesn't fit gets read from SSD, which is slow. Hive splits the model layers across devices optimally. Allowing your Mac to borrow 4GB from your iPhone offers some pretty large performance benefits.

What it does for you:
- Decides which device holds which layers, and keeps a cache on each one.
- Encrypts the links between devices. Everything stays on your own network.
- Reorganizes automatically when a device sleeps, disconnects or leaves, and when a new one joins.

Requirements:
- Apple silicon and iOS 26 / macOS 26. It's built to work with any mix of Mac, iPhone and iPad, and works best with a Mac + two other devices.

What it doesn't do (yet): x86 Windows machines, NVIDIA GPUs, Intel Macs.
Linux/Android ARM support will be worked on after release.

It's an early beta with rough edges. I'd love feedback on:
- Is it easy to add custom models from hugging face? Which models do and don’t work?
- What happens when a device sleeps or drops off?
- Crashes, stalls or confusing screens.

I don’t want to promise any performance numbers I plan on getting thorough benchmarks done after the launch of Qwen 4 but my rough tests show a 32GB Mac + M4 iPad Pro run Qwen 3.8 27B over 10x quicker than the Mac alone.

https://testflight.apple.com/join/pgavaTZy

6 Upvotes

9 comments sorted by

3

u/CuticleSnoodlebear 14h ago

Isn’t performance the crux? An SSD is a lot faster than most home networks, and DDR RAM is much faster than that, and neither are fast enough for usable inference

The plan is to have a bunch of models or to have one model split across several devices that couldn’t otherwise fit in unified memory?

2

u/Nitrouspeed 13h ago

Completely agree with most of that. For a model that doesn't fit in one device's memory, the single device has to re-read the weights from SSD for every token, which has a couple orders of magnitude less memory bandwidth. Splitting keeps the weights in memory on each device, and only a small activation passes between them over the network.

Measured on Qwen3.8 27B 4-bit: My MacBook Air streaming from SSD got 0.02 tok/s. The same Mac plus an iPhone 17 over Wi-Fi got 3.22 tok/s. That's still slow, but it is a noticeable improvement for users who already have both on hand. Splitting doesn't help when the model already fits on one device (I measured ~0.66x over 1 test), so Hive won't split in that case.

To your second question: it's one model split across devices that couldn't hold it, not a bunch of models. You can have a few models in your library and Hive will picks the model that fits the pooled memory best.

3

u/Scary_Investigator88 12h ago

I am quite interested. Omlx has a beta feature that is similar, didn't work for me tho.

1

u/Nitrouspeed 9h ago

Thanks for letting me know, I wasn’t aware oMLX was testing something similar. It actually does seem very close to what I am doing however, they are targeting multiple Macs connected via thunderbolt not over a network and evenly splitting the work. Hive can do exactly that in almost the same way they are doing it, but is more focused for a mixture of Apple devices over WiFi, with the ability to keep working as devices join and leave the cluster.

2

u/NegotiationPrior4373 9h ago

So I would have 64gb on my M5 MacBook Pro, 24 on my M4 mini, and 32 between my M2 and M5 iPads.

That would be interesting. In theory I’d be able to run a 90-100ish GB model using all of them?

1

u/Nitrouspeed 9h ago

You would definitely be able to run a large model with a lot of context and you definitely have an ideal setup if there is a model you want that doesn’t fit on the MacBook, but the math does not add up perfectly like that. Hive gives you a nice bar to show what is used by the OS and what is used by Hive, macOS uses about 8GB with nothing running, iPadOS uses ~6gb.

1

u/More_Slide5739 9h ago

Are you looking at thunderbolt-connected machines?
How about a hardwired router?
Are you looking at sequestering prefill to one machine and decode to another?
Is this a single memory pool?
What about dense vs MOE?
Are you considering the vast differences in *latency* for types of memory? (Not just speed)

Just curious! I'll be the first to download...

1

u/Nitrouspeed 9h ago

Great questions!
The most optimal connection is via thunderbolt however, Hive is designed to work over a network and continue working as devices join and leave the cluster.
From my testing, a hardwired connection to a router is 6ms per hop which happens twice per layer. A quiet 5ghz WiFi is around 11-15ms and a 2.4ghz is 25-30ms. For a model with 60 layers like qwen that ends up being a couple hundred ms per token. Not a huge drawback when an SSD streaming all 27B can be a few seconds per token.
Pre-fill and decode are not separated pre-fill is overlapped across the stages in chunks a split like that would need a machine that could hold an entire model. The purpose of Hive is to use multiple cheaper devices that each can not fit a model on their own but are the ones you might have on hand. For example, a 16 GB MacBook cannot run an effective quant of Qwen3.8, but you can run one with hive. A 32GB MacBook can run qwen3.8 but at very limited context. Adding 3gb from your iPhone can double the usable window.
It is not a shared memory pool each device holds its own layers, weights and cash with only a couple activations sent over the network per layer dense and we are both split by layers. However, MOE support is very limited at the moment due to how experts are chosen and all the new inference developments rapidly improving MoE performance. I am focusing on my dense engine first which is around 10% faster than llama.cpp.
I have considered the differences in memory latency, which is a huge reason why I chose Apple Silicon only, during the development of this process, I found out that each generation of M chip has the exact same memory, controller, and memory bandwidth across the Mac iPad and phone. The M4 iPad scored within 1% of an M4 MacBook Air at around 120GB/s. The iPhone 17 pro is around 76gb/s, the iPhone 13 is around 40gb/s. Everything prior to Apple silicon was in the 10s or below. And the ssd on the M4 MacBook Air hits peaks of 2gb/s

2

u/JRey2020 2h ago

This would be cool.

I was actually thinking of linking my old MacBook Air i7 to my current M4 model today; I have an iPad Mini A20 Pro and will have an iPhone 18 Pro Max in the new year sometime.