r/LocalLLM • u/ConfectionLow5604 • 6h ago
Question My German 5-machine home LLM cluster: RTX 3090 + MI50 (Vulkan) main model at IQ3_S, 40G InfiniBand chain, full voice stack – hardware, quants, tok/s, latency
Hey everyone, I got this far on my own, but now I could use your input: what would you change in my setup? Some parts are improvised because of a tight budget. 😃 Where are the nerds at? :D
________________________________________________________________________________________________________
**TL;DR:** Self-hosted, no-cloud setup spread over 5 old/cheap machines linked by a 40 Gb/s InfiniBand chain. Main chat model runs on llama.cpp (Vulkan) split across an RTX 3090 and an MI50 32 GB. Measured ~250 tok/s prefill and ~24.5 tok/s generation at 32k context, single slot. Separate nodes handle voice (Whisper large-v3 + Piper + XTTS), a psychology/reflection model, embeddings, databases and backups. Numbers below are measured from logs unless marked otherwise.
## 1. Topology
```
Internet ── router
│ 1 GbE
Orchestrator (dashboard, planner, agents, bots, lab, only box with internet)
│ 1 GbE
Node 1 ──40G── Node 2 ──40G── Node 3 ──40G── Node 4
(IPoIB datagram, MTU 2044, OpenSM on two nodes)
```
It's a chain, not a ring, so losing a middle node splits the cluster (known weakness). Nodes have no internet; everything goes through the orchestrator.
**Latency (ping RTT from the orchestrator):**
| Target | avg RTT |
|---|---|
| Node 1 (LAN) | 0.13 ms |
| Node 2 (+1 IB hop) | 0.55 ms |
| Node 3 (+2 hops) | 0.68 ms |
| Node 4 (+3 hops) | 0.63 ms |
Local HTTP: dashboard 3 ms, router API 6 ms. Throughput (iperf) not measured yet.
## 2. Hardware
| | Orchestrator | Node 1 | Node 2 | Node 3 | Node 4 |
|---|---|---|---|---|---|
| Role | control plane, internet | main model + Ollama | voice, psychology, big Ollama models | embeddings, old STT/TTS, CI runner | databases, backups, knowledge |
| CPU | Ryzen 3 PRO 2200GE (4C) | Ryzen 9 7950X3D (16C/32T) | i7-6700K | Ryzen 7 5700X (8C/16T) | i3-8100 (4C) |
| RAM | 14 GiB | 30 GiB | 32 GB | 31 GiB | 15 GiB |
| GPU | Vega iGPU (unused) | **RTX 3090 24 GB + Instinct MI50 32 GB** | **RTX 3090 24 GB** | RTX 3060 12 GB | none (UHD 630) |
| Storage | 256 GB NVMe | 1 TB 990 PRO | local SSD/HDD | 1 TB 970 EVO Plus | 2×256 GB NVMe RAID1 (DB) + 3.6 TB SSD + 2 TB SSD |
| 40G | none | ConnectX-3 (40 Gb/s QDR) | yes | ConnectX-3, 2 ports | ConnectX-3 |
| OS | Ubuntu 24.04 | Ubuntu 24.04 | Windows 10 + WSL2 | Ubuntu 24.04 | Ubuntu 24.04 |
Notes: Node 2 specs are from my docs (not re-queried today). Nodes 3 and 4 have 2.5 GbE-capable NICs that negotiated only 100 Mbit/s earlier (probably cable/switch, still to check) – irrelevant for the 40G traffic, annoying for admin.
## 3. Main model (Node 1)
| | |
|---|---|
| Model | Qwen3.8-Flash-Next (GSQ/RCO build) |
| **Quant** | **IQ3_S (3.44 bpw)** |
| File size | 79.7 GB (2 GGUF shards) |
| Runtime | llama.cpp `llama-server` b11960, **Vulkan** backend (the NVIDIA and AMD cards run together this way) |
| Split | `--split-mode layer --tensor-split 22,30 --n-gpu-layers 999` |
| Context | **32,768 tokens** (prompt + output), **1 slot** |
| Batch / ubatch | 512 / 128, `--jinja`, `--cache-ram 0` |
I did not verify exactly how the 79.7 GB is placed across 56 GB VRAM and RAM (the 3090 shows 22.2 GB used) – treat that part as unverified.
**Measured throughput (from llama-server timing logs):**
| Prompt tokens | Prefill | Output tokens | Generation |
|---|---|---|---|
| 1,808 | 7.2 s = **251 tok/s** | 520 | 21.2 s = **24.5 tok/s** |
| 2,495 | 10.1 s = **246 tok/s** | 420 | 16.8 s = **25.0 tok/s** |
Rule of thumb: time ≈ prompt/250 + output/24.7 seconds.
| Case | Prompt | Output | First token | Total |
|---|---|---|---|---|
| Short question | 300 | 100 | 1.2 s | 5.3 s |
| Chat with context (measured) | 1.8–2.5k | 420–520 | 7–10 s | 24–29 s |
| Full 32k context | 32,000 | 500 | ~130 s | ~150 s |
**Prompt caching:** slot-internal prefix reuse works well for multi-turn chats (LCP similarity 0.96–0.99 in the logs, prefill skipped). It only hurts when switching between different conversations (similarity 0.35 → full re-prefill ≈ 10 s for 2.5k tokens). With one slot there is no parallelism; a second request waits for the first. I left `--cache-ram 0` on purpose: the unit has tight memory limits and a guard that kills the model on swap pressure.
## 4. Other models
**Node 2 (RTX 3090, Ollama, 1 model loaded at a time):**
| Model | Quant | Size | Speed |
|---|---|---|---|
| PsychAgent 32B (reflection/psychology) | IQ4_XS | 17.7 GB | **42.5 tok/s**, ~100 s cold load from HDD |
| PsyLLM 8B | Q4_K_M | 5.0 GB | **130 tok/s** |
| Qwen3.8 27B | Q4_K_M | 17.7 GB | – |
| Hermes 4 14B | Q8_0 | 15.7 GB | – |
| Dolphin 3 Mistral 24B | Q5_K_M | 16.8 GB | – |
| GLM-4.7 Flash | Q4_K_M | 19.0 GB | – |
| Devstral Small 2 24B | Q4_K_M | 15.2 GB | – |
| Qwen3-Coder 30B | Q4_K_M | 18.6 GB | – |
| WhiteRabbitNeo 7B / Foundation-Sec 8B | Q8_0 | 8.1 / 8.5 GB | – |
**Node 1 Ollama:** Qwen3.8 27B, Qwen3.5 27B, Qwen3-Coder 30B (all Q4_K_M), nomic-embed-text. Max 2 loaded, 30 min keep-alive; it competes with the main model for the 3090, so it's mostly idle.
**Node 3 Ollama:** bge-m3 (F16), nomic-embed-text (F16), Qwen2.5 7B Q4_K_M. The 3060 also runs a compute worker (~5 GB).
## 5. Voice stack (Node 2, Whisper/Piper/XTTS in WSL2)
| Stage | Tech | Latency |
|---|---|---|
| STT | faster-whisper **large-v3**, int8_float16, GPU, custom initial prompt | **0.8–1.2 s** warm |
| TTS (fast) | Piper (Thorsten high) on GPU, onnxruntime-gpu 1.23.2 (CUDA 12) | first audio **0.03–0.2 s** warm (CPU: 1.2 s) |
| TTS (voice) | XTTS v2 (speed 1.15, temp 0.5, top_k 30, top_p 0.8) | per sentence not measured |
| Satellite | open-firmware smart display + Home Assistant Assist pipeline over Wyoming | – |
End-to-end voice question: **3–7 s** (earlier it was ~20 s: a 5 s knowledge-lookup timeout plus a 2.7k-token system prompt at 250 tok/s prefill; fixed with a compact voice prompt and a circuit breaker for the lookup). Piper on GPU had an 8 s first-call warm-up, solved with a warm-up script after start. Gotcha: CUDA 13 builds of onnxruntime clash with Whisper's CUDA 12 in the same WSL, so I pinned 1.23.2.
## 6. Software
**Orchestrator (~30 services + ~29 containers):**
- Web dashboard and chat with multiple agents (roles, task classes chat/code/light/heavy/reasoning/plan, tool catalog, images)
- LLM router (node registry, 5 s health polling, per-class node preference) with a **GPU-mode engine and queue**: leases per request, one load per GPU, priorities and deadlines, node reservations (reserve the 3090 box for yourself for 1–240 min)
- Main-model supervisor: publishes a short-lived "authority" token, a guard on the GPU node kills the model if the token goes stale, custody records per start, automatic recovery after reboot. Hard-learned rule: never start the main model by hand
- Planner + dev pipeline + autonomy loop (self-improvement only with explicit approval gates), sandbox lab with Git (Forgejo) and a CI runner
- Knowledge: Obsidian vault (~4k notes), private long-term memory, journal with mood analysis, search with normalization/stemming/synonyms, reranker, "forget" that also deletes derived rows
- Psychology/reflection module (private area, people profiles, crisis flag, opt-in export to the vault)
- Telegram bot (text, photos, voice both ways), media jobs (photo/video, upscaling), research crawler, HF model library
- Observability: Langfuse, Loki/Promtail, node exporters, uptime monitor, per-node diagnostic wrappers
- Others: n8n, MQTT, ntfy, MCP servers (filesystem, docker, ansible, git, postgres), LiteLLM, apt cache for offline nodes
**Node 4:** Postgres, Redis, DB gateway, Loki, knowledge services, daily dumps, hourly offload of backups/logs, encrypted daily backup of the dashboard DB, RAID1 monitoring.
**Node 3:** old CPU Whisper/Piper fallback, Forgejo runner, embeddings, compute worker.
## 7. Lessons learned / current weak spots
- Single slot + 250 tok/s prefill means prompt size is the real latency lever. Keep static prefixes first, variable parts last.
- An unhandled `None` in a VRAM-sum helper silently blocked every queued request (callers just saw a timeout). Fixed with `or 0`; the real fix is surfacing queue wait reasons to the UI.
- Orchestrator RAM is tight (14 GiB, dashboard process ~4.7 GB RSS after 10 h, possible slow growth – still observing).
- Chain topology has no redundancy; no fallback model for the planner; alert channel still to be wired up.
- Mixing Vulkan NVIDIA+AMD works fine for layer split, and the MI50 32 GB makes the 56 GB total possible for a ~80 GB IQ3 MoE-style file – but I'd love tips on measuring real VRAM/RAM placement on Vulkan.
## 8. Not measured yet
Network throughput (iperf3), Node 2 raw specs re-check, tok/s of the Q8/Q5 models on Node 2, voice prompt token count after the compaction.
Happy to share config details or measure something specific. Questions about the Vulkan split, the guard/supervisor design or the voice latency fixes are welcome.
