How to combine 2 (or more) GPUs within your network into 1 powerful GPU from (6 t/sec into 22 t/sec)

The real problem in practice is that better models require more GPU VRAM. To run high-end open-source models which today nearly match the quality of GPT and Claude we can, for example, combine two GPUs into one.

Network Bandwidth Bottleneck

Standard Gigabit Ethernet transfers data at ~115 MB/s. Pooling RAM over a local network allows you to fit massive models that wouldn’t fit on a single PC, but inter-node communication latency will make execution slower than a single physical GPU.

:hammer_and_wrench: THE SETUP

1. Build llama.cpp on both machines with RPC enabled:

cmake -B build -DGGML_RPC=ON
cmake --build build --config Release

2. On the worker / borrowed machine:

ggml-rpc-server -H 0.0.0.0 -p 50052 -c -d MTL0

:warning: -d pins ONE device. Without it, rpc-server advertises every backend it finds — on the Mac, that includes Apple’s BLAS, causing the scheduler to crash.

  • Use -d MTL0 on a Mac

  • Use -d CUDA0 on Nvidia

  • -c caches weights locally so subsequent starts skip the network transfer.

3. On your main machine:

llama-server -m model.gguf --rpc 192.168.1.x:50052 -ngl 99

My tuned invocation for Qwen3.8-27B at 128k:

llama-server -m model.gguf --rpc 192.168.1.x:50052 -ngl 99 \
  -dev RPC0,CUDA0 \
  -ts 6,4 \
  -c 131072 \
  --flash-attn 1 \
  -ub 512

:bar_chart: THE NUMBERS

Model: Qwen3.8 27b Q4_K_M · VRAM Size: 15.92 GiB · Layers: 65

Setup / Configuration Performance Notes
RTX 3060 alone 6.79 t/s Layers offloaded to system RAM
3060 + Mac over RPC 13.69 t/s Before tuning
Mac alone 13.98 t/s The cluster was doing nothing
3060 + Mac 16.39 t/s After fixing device order
With MTP 22.00 t/s Empty context
With MTP ~19.50 t/s Once context grows

:warning: Note on 22 t/s: This was measured during a live llama-server run. On a llama-bench sweep with the same config (131072 · f16 · -ts 6,4 · -ub 512), the figure is 20.05 t/s — a bench and a serve run measure different things.

:no_entry: Environment note: Measured on llama.cpp master commit 84e908c62 (2026-08-12). Not “latest master” — RPC and MTP behaviour moves between builds, and today’s HEAD may not reproduce these numbers.

:warning: SECURITY — Read This Bit

rpc-server has NO AUTHENTICATION. Anyone who can reach the port can use it.

  • Never expose it to the internet

  • Firewall the port to specific machines

  • Don’t run it as root

  • A VPN helps, but it is not an allow-list

:toolbox: THE FOUR TRAPS

  1. Pin each worker with -d, or the Mac advertises BLAS as a device and crashes.

  2. Build separately per Linux version, or use matching containers.

  3. Keep the llama.cpp build identical at both ends — a mismatch looks like a network failure.

  4. macOS GPU RAM Limit: macOS gives the GPU only ~75% of unified memory by default.

    Raise it:

    sudo sysctl iogpu.wired_limit_mb=20480
    
    

:desktop_computer: HARDWARE

  • My Linux Machine (Main):

    • RTX 3060 (12 GB VRAM)

    • 61 GB System RAM

  • Apple Silicon Mac (Worker):

    • 24 GB Unified Memory (~18 GB reaches the GPU)
  • Network:

    • Wired Gigabit, 1.19 ms RTT

:link: LINKS

Be aware our Gnoppix llama is on CPU.