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

**URL:** <https://forum.gnoppix.org/t/how-to-combine-2-or-more-gpus-within-your-network-into-1-powerful-gpu-from-6-t-sec-into-22-t-sec/7102>\
**Category:** How2's\
**Created:** [August 18, 2026, 3:18pm UTC](https://forum.gnoppix.org/t/how-to-combine-2-or-more-gpus-within-your-network-into-1-powerful-gpu-from-6-t-sec-into-22-t-sec/7102 "2026-08-18T15:18:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amu](https://forum.gnoppix.org/user_avatar/forum.gnoppix.org/amu/32/7_2.png) [@amu](https://forum.gnoppix.org/u/amu)\
**Post date:** [August 18, 2026, 3:18pm UTC](https://forum.gnoppix.org/t/how-to-combine-2-or-more-gpus-within-your-network-into-1-powerful-gpu-from-6-t-sec-into-22-t-sec/7102/1 "2026-08-18T15:18:38Z")

</div>

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.

# 🛠 THE SETUP

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

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

```

### 2. On the worker / borrowed machine:

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

```

> ⚠ **`-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:

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

```

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

```auto
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

```

# 📊 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 |

> ⚠ **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.

> ⛔ **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.

# ⚠ 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

# 🧰 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.

# 🖥 HARDWARE

- **My Linux Machine (Main):**

- **Apple Silicon Mac (Worker):**

- **Network:**

# 🔗 LINKS

- [llama.cpp Repository](https://github.com/ggerganov/llama.cpp)

> Be aware our Gnoppix llama is on CPU.
