I own a few modest laptops and no single big GPU. An RTX 3050 with 4 GB of VRAM can't hold an 8B model. Two or three
laptops together can. So I built HyperPod, a control plane that finds laptops on my network, measures their free
GPU memory, splits a Llama model across them with llama.cpp RPC, and keeps the service alive when one of them
disappears.
It's a hackathon prototype. This post covers what it does, what I measured, and where it falls short. Most of the
numbers are unflattering, and I've left them in.
Code: https://github.com/Dharshaneshwaran/hyperpod
## What HyperPod does
HyperPod implements no transformer kernels. llama.cpp does the layer offload through its ggml-rpc-server. HyperPod
adds the parts around it:
- Discovery. Workers broadcast over UDP (port 50999) and register with the controller over HTTP. Heartbeats arrive every 3 seconds.
- Telemetry. A Rust worker agent collects GPU, VRAM, load, temperature, power draw, RAM, battery and AC state. It reads
nvidia-smiand CIM/WMI on Windows,/procand/syson Linux, andsystem_profiler,sysctl,vm_statandpmseton macOS. - Scheduling. A Go controller turns measured free VRAM into
--tensor-splitweights. - Supervision. The controller launches and watches
llama-server, and parses llama.cpp's load log to report where the weights actually landed. - Recovery. When a remote node dies, the controller rebuilds the pipeline on the survivors and finishes the request.
The repo splits into controller/ (Go), worker/ (Rust), and frontend/ (a Vite + React + TypeScript dashboard).
## Scheduling from measured VRAM
The scheduler assigns each device a weight equal to its measured free VRAM minus a 512 MiB reserve. For two machines
with 5,843 and 3,716 MiB free, that produced --tensor-split 5331,3204. RPC endpoints are sorted so the weight list
is deterministic, and llama.cpp receives the RPC workers first and the local GPU last.
If any device can't report free VRAM, HyperPod sends no custom weights, lets llama.cpp probe devices itself, and
labels the strategy llama.cpp-auto. Unavailable values travel through the whole system as JSON null rather than a
made-up zero. That mattered on the Mac: Apple Silicon shares one memory pool, so there's no separate free-VRAM figure,
and the dashboard shows Unavailable there instead of borrowing a system-RAM number.
One bug was worth the time it took to find. On rebuilds, the split drifted between generations of the same model on
the same three machines:
text gen 1 weights = 5409,5409,3204 (workers idle) gen 2 weights = 4385,4509,3204 (workers partly loaded from gen 1) gen 3 weights = 2665,5409,3204 (one worker still holding gen 2) The scheduler was reading free VRAM while the dying generation still held memory, so layers moved between machines for no physical reason. The fix in reclaim.go adds back what the controller knows the outgoing model occupies on each device, capped by that device's total VRAM. What I measured Setup: an ROG laptop with an RTX 3050 (4,096 MiB) as controller on Linux, Windows laptops with RTX 4050s (6,141 MiB), and for one run an M4 Mac on Metal. Everything talked over 5 GHz Wi-Fi. Each configuration got five sequential requests against an already-warm model. Speed drops as you add machines. For Llama 3.2 3B Q4_K_M: ┌────────────────┬───────────────┐ │ Configuration │ Median decode │ ├────────────────┼───────────────┤ │ One machine │ 75.61 tok/s │ ├────────────────┼───────────────┤ │ Two machines │ 11.79 tok/s │ ├────────────────┼───────────────┤ │ Three machines │ 3.62 tok/s │ └────────────────┴───────────────┘ A layer split is a pipeline. Each device you add puts another network hop on every token, and the devices take turns instead of computing at once. Pooling machines aggregates memory, not compute. The single laptop ran about 21 times faster than the three-machine split. An 8.54 GB Llama 8B Q8_0 across the same three machines ran at 5.64 tok/s, faster than the 3B on the same pool. I can't explain it. Both place weights across the same four buffers and cross the same number of hops per token. I'm reporting it because I measured it. One three-machine 3B run also took 73.8 s while the other four took roughly half that per token, and I kept it in the range instead of dropping it. Capacity is the payoff. Llama 3.1 8B Q4 (4.9 GB) ran across the ROG and a TUF laptop at 6.68 tok/s, with 1,073 MiB on the 3050 and 3,330 MiB on the 4050. It doesn't fit on the 3050 alone. So HyperPod is worth running to add capacity and to survive a failure, not to go faster on this network. What happens when a node dies I stopped a ggml-rpc-server by hand during a live request. Unmodified llama.cpp: the client got curl exit 52 after 34 s, llama-server aborted with Remote RPC server crashed or returned malformed response, and nothing restarted. HyperPod: the same llama-server abort happens, because that's how llama.cpp reacts when an RPC peer dies. The controller then: 1. sees that the llama-server process exited, 2. probes each RPC endpoint and excludes the unreachable one, 3. launches a new generation over the survivors, 4. returns the original HTTP request. On the three-laptop all-NVIDIA pool, going from three machines to two, the log read: llama-server (gen 3) exited: signal: aborted (core dumped) pool: skipping 192.168.1.29:50052 (worker heartbeat ok, but its rpc-server is unreachable) launched llama-server (gen 4) over [192.168.1.5:50052]; scheduler=measured-free-vram weights=5155,3584 reserve=512MiB pipeline ready (gen 4) after 27s The request returned 5,731 characters after 177 s, and the client never resubmitted it. The skip line is the point: the laptop whose accelerator I killed was still alive and still heartbeating 1.4 s later, with a dead RPC server. Its heartbeat alone would have told the controller everything was fine, so HyperPod probes the RPC endpoint itself before trusting it. I verified this with a real M4 loss (three nodes to two) and a real TUF loss (two nodes to local). In the two-node case, where the 3B fits on the ROG's GPU, the pipeline rebuilt on the ROG alone in about 3 seconds. Resuming a partial answer (newer code, not yet tested on hardware) My first version of recovery was restart-and-retry: any tokens already generated were thrown away. The newer controller streams every answer and keeps the text produced so far. It also counts the chunks it has already sent to the client, so it knows how far the answer got before the node died. After a rebuild, the controller resends the request with that partial text as a trailing assistant message and asks only for the tokens still left under the original limit. llama-server's assistant prefill picks the answer up at the point where it stopped and keeps going, and the controller stitches the new tokens onto the kept ones before replying. From the caller's side it is still one HTTP request. What this does not do, so it isn't oversold: - The KV cache is not preserved. The new pipeline re-processes the prompt plus the partial answer as one batched prefill. - Continuation happens at the text level, so re-tokenizing can differ slightly at the join. - The result isn't guaranteed to match an uninterrupted run, since a different split changes floating-point rounding and sampling state isn't carried across. This path has unit tests for streaming, for keeping partial output when a stream breaks, and for the assistant-message request shape. I haven't committed a physical-failure log for it, so the hardware results above are all restart-and-retry, and the README still describes recovery that way. Limitations - Trusted LAN only. llama.cpp RPC has no authentication or encryption, and neither do the controller APIs. Don't expose ports 50052, 8080, 9100 or 50999 to the internet. - Not an accelerator. On my Wi-Fi, splitting cost roughly 6x in throughput for two machines and about 21x for three. - Scheduler inputs are VRAM only. Compute throughput and network bandwidth are displayed but don't influence placement. - Two-node 8B is capacity-only. If the second machine dies, the 8B doesn't fit on the ROG alone, so that placement can't be preserved. - One broadcast domain. Discovery doesn't cross routers. - The controller is a single point of failure. - Small samples. Five runs per configuration is a demo comparison, not a performance claim. Try it You need llama.cpp binaries with RPC support on each machine, plus Go, Rust, and Node. cd controller && go test ./... && go build -o hyperpod-controller . cd ../worker && cargo build --release --locked cd ../frontend && npm install && npm run build The launchers in launchers/ contain my machines' paths, so edit them once for yours. The README and PROTOCOL.md cover the rest. What's next - Preserve the KV cache across a rebuild. Resume currently re-prefills the prompt plus the partial answer from scratch on the new topology. If the surviving nodes kept their KV cache, the continuation would skip that re-prefill and could match an uninterrupted run token for token. This is the main planned step, and it is not built yet. - Test the resume path on real hardware. It has unit tests but no physical-failure log, unlike restart-and-retry. - Feed compute and bandwidth into the scheduler, not only VRAM. Contributing HyperPod is a prototype, and plenty of it is rough. If it's useful to you and you'd like to help, let me know. Bug reports, measurements from your own pool, and pull requests are all welcome, and the KV-cache work and the resume hardware test above are good places to start. What I'd tell someone trying this - Network hops dominate. If your devices talk over Wi-Fi, expect pooling to cost speed. - A live heartbeat says the laptop is up, not that its accelerator still answers. Probe what you actually depend on. - Passing null through the system for unknown values turned out to be more useful than any default I could have picked. - If you reschedule while the old process is still tearing down, your placement drifts. Account for the memory you're about to free. Built with Llama. The models carry Meta's own license terms; HyperPod's own code is Apache 2.0. If you've pooled consumer GPUs over a network, I'd like to hear what hop costs you saw, and whether anyone has a mechanism for the 8B-faster-than-3B result.