Open Hardware & RISC-V

Shard pools Mac and Windows PC compute over Ethernet to run larger GGUF models via llama.cpp RPC

Key Takeaway

Shard is an MIT-licensed set of Python scripts that turns several Macs and Windows PCs into a single llama.cpp RPC cluster, letting a coordinator distribute model layers and tensors across workers on a gigabit LAN.

Summary

Maddie D. Reese has published shard on GitHub, an MIT-licensed collection of scripts that pools compute and memory from multiple Macs and Windows PCs so they can run larger GGUF language models locally. One machine acts as coordinator while the others run as workers, and either operating system can fill either role. Shard launches the workers, passes their addresses to llama.cpp RPC, and leaves layer placement and inference execution to llama.cpp.

The setup assumes a gigabit switch with Cat6 cabling and a fixed address for every node, with Python 3 installed across the machines and the model file stored on the coordinator. Workers receive the tensors assigned to them when the model loads. In the published demonstration, a run that answered 2 + 2 completed in 11 minutes 51 seconds, which frames the project as an experiment in distributed local inference rather than a performance-oriented serving stack.

How shard distributes a GGUF model across machines

  • Coordinator and worker roles: One machine coordinates the run while the remaining machines execute as workers; the scripts are OS-agnostic, so a Mac can coordinate Windows workers and vice versa.
  • llama.cpp RPC as the transport: Shard starts the workers and hands their addresses to llama.cpp RPC, which is responsible for placing model layers and running the inference across the pool.
  • Network and host prerequisites: Nodes are connected through a gigabit switch with Cat6 cables, each has a fixed address, and Python 3 must be present on every machine.
  • Demonstrated latency: The published demo answered 2 + 2 in 11 minutes 51 seconds, indicating that the current scripts prioritize proving the pooling mechanism over throughput.

Why it matters

Shard shows how llama.cpp's existing RPC backend can be wrapped in lightweight tooling to combine consumer hardware that would otherwise be too small individually for a given GGUF model. Because the code is MIT licensed and built on llama.cpp rather than a proprietary runtime, users can inspect, modify and redistribute it, and the approach is not tied to a single vendor's accelerator stack. The measured latency makes clear this is not a replacement for a single large GPU or a tuned inference server, but it is a useful reference for homelab and small-team experiments in distributed local inference across mixed macOS and Windows machines.

Original reference: blog.adafruit.com →