Table of Contents

One model across two computers? Run llama-server on the machine with the model file and a llama.cpp RPC worker on the other. The worker holds part of the model and computes with its own hardware. With stock Ollama, a second server gives you somewhere else to send a whole request. Choose between them by asking which resource you lack: room for one model, time to read a long prompt, or capacity for a second user.

Start with the fastest computer you already own. Run one real prompt on a local model, then decide which problem a second device would solve. A spare laptop earns its power budget by finishing transcripts while the desktop handles chat. Splitting a model across both machines makes sense if neither has enough usable memory and the split still answers fast enough for your task. An old phone often earns its place as the client.

Check what fits on one device

Three 8 GB phones and a 16 GB laptop add up to 40 GB of installed RAM. An application on the laptop sees only the laptop’s memory. The operating system and other programs need a share. The model runtime needs room for its weights, temporary buffers and a key-value cache, which stores information about earlier tokens. Longer conversations and more simultaneous users increase those demands. A model file smaller than installed RAM still needs a load test at your intended context length. Model size, context and memory

Hardware already on handFirst job to try
Old office PC or laptopLoad a small quantized model locally. Time a summary of a document you use regularly.
Gaming desktopCheck whether the installed runtime recognizes the GPU. Watch GPU memory and system RAM while loading the model.
Spare phoneUse the browser as a chat client or run a small offline task. Check battery condition before leaving the device plugged in.
Second capable computerGive the machine its own job, such as transcription, embeddings for search, or a second copy of the chat model.

Quantization stores weights at lower precision to reduce their memory footprint. A mixture-of-experts model uses a subset of its expert weights for each token, but the runtime still needs access to the other experts. CPU offload or storage-backed loading trades scarce GPU memory for transfer time. Test the exact model file, runtime build and context size before buying an adapter, switch or GPU. llama.cpp inference and hardware backends

How much extra memory would a second machine buy?

Take Qwen2.5-14B-Instruct as a sizing exercise. Its Q4_K_M GGUF weighs 8.99 GB on disk, about 8.37 GiB. An 8 GiB GPU falls short of the file size alone. Start by measuring free VRAM and free system RAM separately on each machine. On a unified-memory device, the CPU and GPU share the same pool. Counting both would double the apparent capacity. Quantized file sizes

Context changes the budget. This model has 48 layers, eight key/value heads and 128 values per head (5,120 hidden dimensions divided by 40 attention heads). With 16-bit keys and values, one token of cache takes roughly 192 KiB: two arrays × 48 layers × eight heads × 128 values × two bytes. For one sequence, 2,048 tokens need about 0.375 GiB of cache. At 8,192 tokens the cache needs 1.5 GiB. Add the file size and you get working estimates of 8.75 GiB and 9.87 GiB, before compute buffers, allocations and the operating system. Other models and cache formats change the calculation. Qwen model configuration

A desktop with 6 GiB free on its GPU and a worker with 4 GiB free has only about 0.13 GiB left in the longer-context example. Try a shorter context or place some layers in host RAM, then measure. A ThinkPad W530 with 32 GB of DDR3, a 2 GB Quadro K2000M and an SSD poses a different question. Start with CPU inference and record prompt and output speeds. Check whether your runtime lists the Quadro before budgeting any VRAM. If the CPU reads long documents too slowly for chat, try an overnight summary before adding the laptop as an RPC worker. Reader’s ThinkPad configuration

Qwen2.5-14B weights and F16 cache need about 8.75 GiB at 2,048 tokens and 9.87 GiB at 8,192 tokens, before compute buffers.

Start a local chat on the strongest host

Use the official llama.cpp build for your operating system and hardware. Choose a small instruction-tuned GGUF file licensed for your use. GGUF packages the model for compatible runtimes. With llama-server on your path, launch the local file from a terminal. llama.cpp server documentation

llama-server -m /path/to/model.gguf

With default settings, the server listens on loopback. Open the local address printed at startup in a browser on the same computer, then send a short prompt. Stop the foreground server with Ctrl+C before benchmarking the same GPU. If the model runs out of memory, restart with a smaller model or limit the context to 2,048 tokens with llama-server -m /path/to/model.gguf -c 2048. Leave room within that limit for both the prompt and the answer.

Put a second computer behind llama-server

Use two trusted machines with matching llama.cpp revisions. The commands below follow the upstream revision checked on November 28, 2026. They are documentation examples. Build both with -DGGML_RPC=ON and the backend for their hardware, such as -DGGML_CUDA=ON for a supported NVIDIA GPU. The worker binary in this revision is ggml-rpc-server. It exposes supported accelerators by default, or a CPU device when none are available. Use the CPU worker to test spare system RAM. Keep the GGUF on the main host. Pinned RPC build and usage guide

On the worker, run the following from the build directory. Check the startup log for a loopback listener and the device name and free memory you expected. The worker’s -c caches large tensors on its disk for later loads. Use a trusted machine with space for the cache.

./bin/ggml-rpc-server -c

On the main host, forward a local port through SSH. Replace [email protected] with your SSH login for the worker. Keep this terminal open. The SSH connection carries this experiment over TCP. The RPC listener stays on the worker’s loopback interface. The RPC project describes the backend as experimental and unsuitable for open networks or sensitive environments. SSH local forwarding

ssh -NT -o ExitOnForwardFailure=yes \
  -L 127.0.0.1:50053:127.0.0.1:50052 [email protected]

In a second terminal on the main host, start the RPC-enabled server with the same GGUF you benchmarked locally. Here -c 2048 sets context length. Layer mode places successive parts of the model on the selected devices. The main host serves the chat interface.

llama-server -m /path/to/model.gguf -c 2048 -ngl 99 \
  --split-mode layer --rpc 127.0.0.1:50053

Look for remote buffer allocations in the startup logs and a rise in worker memory use when the model loads. Send the same prompt as the single-host run. If the remote device is absent, check the tunnel, both builds and the worker startup log. If a slow worker receives too many layers, inspect device order and test a different --tensor-split ratio. By default, available memory determines how much each device receives. Compare prompt and generation speeds after each change. A warm worker cache saves weight transfers at load time. Each generated token still depends on the remote layers. Server device and split options

What changes if you prefer Ollama?

Your hardware or workloadSetup to compare
Two GPUs in one computerStock Ollama prefers a single GPU when the model fits and spreads larger models across available GPUs on the host. Run ollama ps while the model is loaded to inspect CPU/GPU placement.
Two computers, two independent requestsRun a complete model on each Ollama server. Route chat to the desktop and send summaries to the laptop, or use matching models for concurrent users. Pointing a client at the other server changes which host answers.
Two computers, one oversized modelStock Ollama’s documented multi-GPU placement covers one server. Use llama.cpp RPC for a GGUF split, or evaluate a third-party Ollama cluster fork against your local baseline. Upstream tracks multi-host inference separately.

The distinction shows up in an Ollama cluster fork’s paired 128 GB GX10 tests over a 200 Gb/s link. GPT-OSS 120B fit on one machine. With 512 prompt tokens, 128 generated tokens and a 32,768-token context setting, the maintainers measured 42.7 output tokens/s on one host, 33.8 with a layer split, and 58.1 with tensor parallelism. Cold loads took 18, 78 and 86 seconds respectively. A 156 GB DeepSeek model exceeded one host’s memory and reached 14.5 output tokens/s with layers split across the pair. These warm rates are means of three runs, with another workload on the first machine. Home Ethernet and mismatched GPUs need their own test. Ollama’s placement FAQ · Upstream multi-host request · Cluster fork and benchmark conditions

Measure interactive speed and batch throughput separately

If you already have a llama.cpp build and a local model in GGUF format, the project’s benchmark tool tests prompt processing and output generation separately. Replace the placeholder path below. This documented example uses 512 prompt tokens, 128 output tokens and five repetitions. llama-bench options

llama-bench -m /path/to/model.gguf -p 512 -n 128 -r 5

Record the prompt-processing rate (pp) and generation rate (tg). Then time your actual request from submission to the first visible token, and from submission to completion. A model generating four tokens per second needs about 64 seconds to write a 256-token answer after generation starts. A long prompt or cold model load adds time before the first word. For a nightly queue, compare completed, usable jobs per hour. A fast answer with broken code still needs a retry.

Measure the wait your users experience

Keep the model file, quantization, context, prompt and requested output length fixed. Run the same workload on one host, then across the wire. Repeat with a fresh prompt of comparable length so prompt caching does not hide the cost of reading new text. Save one cold run separately, then take the median of five warm runs. For multiple users, record both total throughput and each user’s wait. Reader observation on prompt processing

MeasurementHow to interpret it
Time to first tokenTime from request submission to the first streamed text. A cold load, queue and long prompt all add to the wait.
Prompt and output tokens/sFor a fully uncached prompt in Ollama, divide prompt_eval_count by prompt_eval_duration. For output, divide eval_count by eval_duration. Multiply either ratio by one billion because durations use nanoseconds.
Peak memory and swapRecord peak RAM and VRAM per device, plus swap activity during generation. PhoneBorg reported 14.5 GB needed against 15.1 GB free across two phones. When one phone swapped 1–2.5 GB, generation dropped from 2.4 to 0.26 tokens/s.
Cold load, warm reload and energyRecord load seconds separately. At 1 Gb/s, sending 8 GiB takes about 69 seconds even at line rate, before protocol overhead. For energy per completed job, meter both machines at the wall over the same workload.

Suppose a document contains 4,000 fresh prompt tokens and the reply uses 200 tokens. At 100 prompt tokens/s and 10 output tokens/s, reading takes 40 seconds and writing takes 20. Doubling output speed saves 10 seconds. Doubling prompt speed saves 20. Neither estimate includes queueing or loading. In Ollama, load_duration identifies loading time; collect client-side first-token timing on a streaming request. Ollama timing fields · PhoneBorg memory-pressure measurements

Route independent jobs or split one model?

Request routing sends each whole job to one device. For example, an old laptop transcribes an interview while the desktop summarizes the previous recording. For simultaneous chat users, Open WebUI supports multiple Ollama servers. With matching model identifiers, Open WebUI selects a backend per request. Use the same model version and quantization on both if users expect consistent answers. Routing improves capacity for concurrent work. Each response runs at the speed of the backend selected for its request. Open WebUI’s Ollama connections

Layer splitting spreads one model across machines. For a single response, intermediate values cross the network as successive groups of layers process each token. A slow worker or a high-latency link makes the user wait at each handoff. Tensor parallelism divides operations within layers among workers and requires frequent communication. Matched processors and reliable wired links make a better starting point for this design. llama.cpp RPC backend · Distributed Llama

Two project benchmarks show why device count alone tells you little. Compare rows within each test. The projects used different models, engines and hardware.

Project and modelGenerated tokens per second
PhoneBorg, Qwen3-30B-A3B-Instruct-2507, UD-Q3_K_XL, over USBTwo phones: 2.57. Five phones: 1.66. The extra devices also raised cold load time from 6.6 to 10.7 minutes.
Distributed Llama v0.12.3, Llama 3.2 3B Instruct Q40 on 8 GB Raspberry Pi 5 boardsOne board: 5.95. Two: 10.33. Four: 13.68. Each run processed 19 prompt tokens and generated 77.

The five-phone configuration gave the model more aggregate memory and lowered generation speed by about 35% relative to the faster pair. Four matched Pi boards reached about 2.3 times one board’s output rate. If a model fits on your fastest host, test an independent second job first. If a model fails to load, compare a wired split with a smaller model or CPU offload on the fastest host. PhoneBorg measurements · Distributed Llama measurements

Three ways spare hardware earns a place

An older GPU in a second PC. An owner ran Qwen2.5-72B-Instruct Q3_K_M across an RTX 3090 and an RTX 3060 over gigabit Ethernet. They reported 20.7 GB on the 3090, 10.5 GB on the 3060, roughly 4.3 GB spilling into CPU memory, and 3.76 generated tokens/s. That is about 53 seconds to write 200 tokens once generation starts. The owner did not specify prompt length or a reproducible server revision in the main post. Treat this as a fit example for mixed hardware. Owner’s 3090 and 3060 setup

A mixture-of-experts model offers another placement experiment. Keep attention and its cache on the faster host and test moving selected expert weights to the slower worker if your build supports tensor placement. Use the same prompts and record both prompt and output rates. The suggestion came with no measured speedup or verified tensor mapping for a specific GGUF. Expert-placement discussion

A phone as a model worker. PrivateLM’s cluster release uses an Android coordinator and pairs supported phones or tablets as workers. The developer reports roughly 4–5 tokens/s for a 26B model across four devices. Phone RAM, app limits and the particular quantization determine what fits. For a phone with only 1 GB of RAM, start by measuring a voice or camera task on its own. One owner reported those jobs already used nearly all available memory. PrivateLM cluster release · Low-memory phone owner’s report

To try this with two Android phones, follow the PrivateLM walkthrough for pairing, loading and checking each phone’s share .

A phone for faster prompt reading. Backburner’s specialized fork paired a 24 GB M4 Pro Mac with an iPhone 17 Pro Max over 10 Gb/s USB-C. At 16k saved context, the project measured 18.8 seconds for the Mac to read a 2,000-token addition and 13.1 seconds with the phone. In a separate generation test at 27k–33k context, the rates were 25.0 and 25.1 tokens/s. For someone revising a long document, the shorter wait before the first word is the benefit. Backburner test conditions and results

Keep access private and count energy at the wall

Check who has access to each service. Ollama binds to the loopback address by default and its local API requires no authentication. On Linux, inspect listening sockets with ss -ltnp. For access away from home, expose an authenticated front end over a private VPN and restrict access to its model backends. Keep experimental llama.cpp RPC workers off open networks and away from sensitive data. Check the selected model, cloud fallback, plug-ins and logs before sending private documents. Ollama network defaults · Ollama API authentication · Local AI privacy checklist

Try the phone as a client. Set up an authenticated HTTPS front end on the host and keep the model server on loopback. Join your private network from the phone, open the front end in its browser, sign in and select the same local model. Send a harmless prompt such as “Name three trees.” Check the host log for the request and the phone for the answer. Set up private access to a local AI server

Measure idle and load power at the outlet. At an illustrative $0.115/kWh, an always-on 20 W computer costs about $20.15 per year for electricity. A system averaging 4 W at the wall and generating 4.5 tokens per second would spend roughly 62 hours and $0.03 generating one million output tokens. The example assumes continuous generation and excludes model loading and idle time. If the rig stays online for a handful of requests each evening, idle energy matters more than a low cost per token.

For a retired phone, test a long job with the screen off. Android reclaims memory by terminating lower-priority processes under pressure. A worker disappearing mid-job changes the value of a fast short benchmark. Android memory management

Battery condition also affects uptime. A swollen battery or separating screen calls for manufacturer service or responsible recycling. Google Research described a 20-phone pilot for grading student assignments and a planned 2,000-phone UC San Diego installation. Researchers used extracted motherboards and removed batteries for the datacenter environment. The grading pilot offers evidence about parts reuse. Its results say little about language-model speed on an intact phone. Google Research’s retired-phone project · Google’s guidance for a swollen battery

Keep the extra device if a model now fits, two jobs finish sooner, or the larger machine sleeps while a smaller device handles light work. Record the same prompt, output length and meter reading before and after. Those three checks tell you whether the next useful upgrade is a cable, more memory, or nothing at all.

References