Local AI and RAG cluster on white background

AI & RAG

Local AI Cluster Benchmark

A first benchmark of Llama 3.1 8B across a Mac M1, a Windows i7 worker and an optional Android worker. The two-device setup showed 9% higher reported generation throughput than the Mac alone.

  • AI
  • RAG
  • llama.cpp
  • distributed inference
  • benchmark
Leave feedback

Could a Windows i7 machine help a Mac M1 run an 8B language model faster? In my first benchmark session, adding the Windows worker increased reported generation throughput from 20.53 to 22.37 tokens/s, about 9%. Adding an Android phone gave me the fastest first token, but its RPC endpoint went offline after the run.

Results

Configuration Tensor split First token Total time Reported throughput
Mac M1 only Baseline 0.83 s 5.46 s 20.53 tokens/s
Mac M1 + Windows i7 1:1 0.88 s 5.13 s 22.37 tokens/s
Mac M1 + Windows i7 + Realme 2:2:1 0.80 s 5.12 s 21.96 tokens/s

Mac + Windows completed the request 0.33 seconds sooner than the Mac alone. The three-device run finished just 0.01 seconds sooner than the two-device run, with slightly lower reported throughput. I’ll use the two-device setup for my next demo.

Why I built it

I’m building a local retrieval-augmented generation (RAG) system with Qdrant and Ollama. I used Cursor to develop this test setup and see what hardware I already owned could contribute to local inference. This experiment measured the llama.cpp RPC inference path. I’ll benchmark retrieval, Ollama generation and answer quality separately.

Hardware and topology

Device Role Connection
Mac M1 Coordinator, dashboard and inference API Runs alone for the baseline and coordinates workers in the distributed modes
Intel Core i7 Windows machine Primary llama.cpp RPC worker Direct Ethernet to the Mac, approximately 93 Mbps measured
Realme Android phone Optional llama.cpp RPC worker via Termux Enabled for the three-device test

The Mac coordinator and Windows worker ran in Docker. The Android worker ran in Termux.

Benchmark method

I ran Llama 3.1 8B Instruct (GGUF Q4_K_M) with a 512-token context, four runtime threads and one request at a time. After each configuration reached Ready, I sent the same streamed prompt asking for an 80-word explanation of synchronous versus asynchronous storage replication. Temperature was 0 and the output cap was 48 tokens.

First-token time measures the delay to the first streamed content. Total time measures wall time through stream completion. Throughput is the decode rate reported by the benchmark. Raw token counts and decode timestamps were unavailable for independent verification.

What I’ll validate next

The benchmark records one result per configuration in a single session. I’ll repeat cold and warm runs, capture the raw decode timings and check worker stability. I’ll then time Qdrant retrieval and Ollama generation separately and evaluate how well answers are grounded in the retrieved documents.

If you’ve worked on distributed inference, what would you test first to decide whether the extra worker is worth keeping?

Thomas Joseph · Benchmark run on 25 November 2026