How to Run One Language Model on Two Old Android Phones

Table of Contents
Two old Android phones can run one language model together. In PrivateLM, one phone opens the model file and runs the chat. The other holds some of the weights in RAM and computes with its CPU. Start with a small model that fits the first phone. Run the same prompt with and without the second phone, then check both the answer time and the memory split. For a spare laptop, desktop, or a phone you want to use only as a chat screen, see how to choose a role for old hardware in a private AI setup .
Prepare the two phones
Both phones need a 64-bit ARM build of Android 9 or later. Pick the faster phone with more free memory as the coordinator. Keep both awake for the first run. The steps below follow PrivateLM’s Android cluster release and its source. The speed measurements farther down come from a separate project using named devices. PrivateLM cluster release · Android build requirements
- On both phones, download
PrivateLM-1.0.7.apkfrom the release assets above. Open the file and, if Android asks, allow the app you used to open the file to install this package. Turn that install permission off again afterward. - On the coordinator only, download
qwen2.5-0.5b-instruct-q4_k_m.gguffrom Qwen. GGUF is the model file format for this lab. The download is 491 MB. Leave space for the downloaded file and an imported copy. The worker receives its assigned weights when the model loads. Qwen’s exact model file - Put both phones on a private Wi-Fi network where they can reach each other. A spare router with no internet uplink and only your test devices connected works after the downloads. The worker accepts unauthenticated llama.cpp RPC connections. Leave the optional HTTP server off and use a harmless prompt. Android worker implementation
Pair the worker and run the model twice
- On both phones, open
Settingsand selectPhone cluster. On the spare phone chooseWorker. If Android prompts for unrestricted battery use, respond to the prompt and return to PrivateLM. Keep the worker screen open until its QR code appears. On the coordinator chooseMaster, tapScan a worker's QR code, and point the coordinator’s camera at the worker’s screen. Allow camera access if prompted. - Check for
Workers (1)on the coordinator. This confirms pairing. If pairing fails, check that both phones are still on the same network and the router allows Wi-Fi clients to contact each other. For a camera problem, useFind nearbyon the coordinator and tapAddbeside your worker. Pairing controls - On the coordinator open
Models, thenMy models. TapImport, chooseImport file, and select the downloaded GGUF in Android’s file picker. When the file appears in the library, tapLoadon its row. Use a GGUF for this test. PrivateLM’s LiteRT models run on one phone. Model library controls - Time the coordinator alone. When the app offers a choice, select
Load on this phone only. OpenChatand send “Give me five ways to reuse an old phone.” Record the time from send to first visible text and from send to the finished answer. Keep the output so you can compare answer lengths. If the app chooses a split automatically, you have no solo timing from this load. Choose a smaller GGUF for the comparison. - Run the same file on both phones. In the model library, tap
Unloadon the active model. Load the same file again. If the coordinator has room, tapShare with 1 worker. For a model exceeding the coordinator’s budget, the app selects devices automatically when their combined budget suffices. Start a fresh chat and repeat the prompt with the same settings. Model placement in this release
Prove both phones are doing work. Return to the coordinator’s cluster screen. Under Loaded model, look for Running on 2 phones and a positive weight share for each device. The app reads the remote weight buffers and estimates the coordinator’s share from the rest of the file. On the worker, Sharing with master and a positive Holding value provide a second check. A paired worker with no allocation does not count as a split run.
Choose a bigger model or a third phone
Suppose Android reports 2 GiB free on the coordinator and 2 GiB free on the worker. This release budgets 70% of the coordinator’s free RAM and 75% of the worker’s reported free RAM. Together the budget is 1.40 + 1.50 = 2.90 GiB. The planner estimates the model’s requirement as 1.10 times its file size. Qwen2.5-3B-Instruct Q4_K_M is 2.105 GB on disk, or about 1.96 GiB. The estimate is 2.16 GiB. That exceeds either phone’s budget alone and fits the estimated two-phone budget. This is a worked estimate. A long context, temporary buffers, or another app consuming RAM can still cause the load to fail. Qwen’s 3B file · Planner calculation
Try that file only after the small model works. Unload the small model, import the larger file on the coordinator, load it and check both shares again. To test a third phone, install the same APK, join the same private network, select the worker role and scan its QR code from the coordinator. Unload and reload the model. Check held memory on each worker. The coordinator groups workers with the same reported model name into one row. The planner leaves unneeded devices out of some loads.
What does a 1 Gb/s link buy a llama.cpp phone cluster?
For an 18-block split of Qwen2.5-3B, budget about 8.34 seconds to send the worker its weights at 100 MB/s. Once loaded, the same split models at 6.83 output tokens/s. These estimates combine the phones’ compute rates with an assumed link speed. The Redmi’s wired USB connection has a lower ceiling. The cold transfer moves hundreds of megabytes once. During generation, each phone reads its assigned weights from its own RAM, and llama.cpp RPC carries intermediate results between them. PrivateLM’s placement of layers and output weights
Estimate the time to generate one token
DistAi measured 14.6 GB/s on the Galaxy Note 10 and 12.0 GB/s on the Redmi Note 12 Pro in a short Q4_0 matrix-vector test. Those figures describe how fast each phone worked through quantized weights in that test. Applying them to a Q4_K_M model is an approximation. The exact Qwen GGUF has 36 transformer blocks. Counting their stored bytes, the output projection, final normalization and one input embedding row gives about 1.924 GB of weight reads per token. Hot caches, kernel choice, longer attention history and heat change the rate on a real phone. DistAi’s phone measurements · Exact Qwen GGUF
For one token at a time, add each phone’s assigned weight bytes divided by its effective bytes per second. Then add the time to move intermediate data and wait for RPC. In the 18-block example, the Galaxy reads about 1.090 GB and the Redmi reads 0.834 GB. Their work takes 1.090 ÷ 14.6 + 0.834 ÷ 12.0 ≈ 0.144 seconds before communication. Equal block counts leave the Galaxy more bytes to read because it keeps the output projection.
| Illustrative placement, Galaxy first | Worker weights to send on a cold load | Estimated time per output token | Estimated output tokens/s |
|---|---|---|---|
| Galaxy alone, all 36 blocks | 0 MB | 131.78 ms | 7.59 |
| Galaxy 27, Redmi 9 | 432 MB | 140.35 ms | 7.12 |
| Galaxy 18, Redmi 18 | 834 MB | 146.32 ms | 6.83 |
| Galaxy 12, two Redmis with 12 each | 1,106 MB total | 152.52 ms | 6.56 |
The table assumes 100 MB/s of usable payload throughput, with an illustrative 16 KiB of traffic and 2 ms of additional synchronization per worker per output token. For scale, moving a 2,048-value hidden state in 32-bit floats costs 8 KiB in one direction. The 16 KiB allowance represents two such transfers. Actual tensor types, routing, RPC message counts and waiting time depend on the build and placement. The 18-block split gives about 14.6 seconds for 100 output tokens, after loading and prompt processing. The app chooses its own placement. Use the shares shown on your devices when interpreting a run. Qwen model dimensions
Separate the gigabit port speed from the phone-to-phone speed
A 1 Gb/s link carries at most 125 MB/s before framing and protocol overhead. With an empty worker cache, dividing the 18-block payload of 834,207,744 bytes by 125 MB/s gives a theoretical minimum of 6.67 seconds for the transfer alone. At 10 MB/s the same transfer takes 83.42 seconds. Holding the assumed synchronization delay fixed, dropping payload throughput from 100 to 10 MB/s changes warm generation only from 6.83 to 6.77 tokens/s. Conversely, at 100 MB/s, increasing the wait from 2 to 10 ms per token lowers the estimate to 6.48 tokens/s. Storage, allocation and initialization add to startup. A worker with its weights already cached has a different load cost. llama.cpp RPC transport and cache

On the Redmi, the USB port sets a lower limit. The MediaTek Redmi Note 12 Pro 5G has a USB 2.0 port. Its 480 Mb/s raw ceiling is 60 MB/s, even with a gigabit Ethernet adapter. Sending the 18 blocks takes at least 13.90 seconds over that port. If you measure 25 MB/s, use 33.37 seconds. Notebookcheck recorded 44 MB/s in a USB file-copy test on this model. Ethernet throughput needs its own measurement. Redmi USB port and copy test · USB-IF High-Speed USB specification
Measure the path your worker uses. Two phones on the same access point might exchange traffic entirely over Wi-Fi, even with a gigabit Ethernet uplink. PrivateLM’s Android QR code looks for a Wi-Fi interface. For a wired test, use compatible USB Ethernet adapters and matching native RPC builds on a trusted, isolated network. With iperf3 available on both endpoints, run iperf3 -s on the worker, then iperf3 -c WORKER_ADDRESS and iperf3 -c WORKER_ADDRESS -R from the coordinator. Record the receiver’s throughput in each direction, divide Mb/s by eight for MB/s, then stop the test server.
PrivateLM interface selection
·
iperf3 usage
Check the estimate with native llama.cpp RPC
For a command-line comparison, follow the
native RPC worker setup
using the same RPC-enabled llama.cpp revision on both sides. Run these commands on the coordinator with the GGUF path and reachable worker endpoint set in MODEL and RPC_ENDPOINT. The device listing supplies the value for RPC_DEVICE. For this 36-block Qwen model, the pinned revision counts the output slot in the offload total. Request 19 slots for 18 repeating blocks and pin the output and embedding weights to the coordinator CPU. Set the worker’s own thread count at startup and hold it fixed across runs. Check both devices’ buffer sizes in the verbose log. This matches the intended placement across builds, while their kernels and phone thermals can differ.
Pinned llama-bench options
llama-bench -m "$MODEL" -ngl 0 -t 4 -p 512 -n 128 -r 5
llama-bench --rpc "$RPC_ENDPOINT" --list-devices
llama-bench -m "$MODEL" --rpc "$RPC_ENDPOINT" -dev "$RPC_DEVICE" \
-sm layer -ngl 19 -ot '^(output|token_embd)\.weight$=CPU' -t 4 -p 512 -n 128 -r 5 -v
Record prompt processing (pp512) and generation (tg128) separately. Time an uncached load and a cached restart separately, and repeat the warm generation test after the phones reach their normal operating temperature. For a phone-specific estimate, use each phone’s measured solo generation rate on the same GGUF. If the two rates are 8 and 4 tokens/s and each phone handles half the per-token work, the estimate before RPC is 0.5 ÷ 8 + 0.5 ÷ 4 = 0.1875 seconds per token, or 5.33 tokens/s. Compare that with the observed split rate to see how much time the model leaves unexplained.
How long does a reply take on older phones?
DistAi’s developers tested a Samsung Galaxy Note 10 (Exynos 9825) and a Huawei Mate 10 Pro (Kirin 970). The table uses DistAi measurements. A token is a piece of text. The time estimates below cover generation after the phones have read the prompt. Hardware and measured results
| Workload | Reported result | Practical consequence |
|---|---|---|
| Small 0.5B model | Samsung alone generated 28 tokens/s. Huawei alone reached 12–17. With 12 layers per phone over Wi-Fi, the pair produced 5. | At those rates, 100 output tokens would take about 20 seconds on the pair and 3.6 seconds on the Samsung, plus prompt processing. |
| Larger 7B Q6_K model, 6.3 GB | Neither phone held the model alone. Together they generated 0.8 tokens/s. | Budget about 125 seconds to generate 100 tokens, plus loading and prompt processing. |
| Low-memory PC and Samsung phone | With 14 layers on each, a kernel change reduced a 2,048-input, 300-output-token task from 445 to 305 seconds over tethering. | Both timings used the same pair. The improvement came from a software change on that setup. |
For your own comparison, keep the model, context length and prompt fixed. Time the first load separately. Run one warm-up, then three fresh chats per arrangement and compare the middle result. Record output length alongside elapsed time. If two people need a small model that fits on each phone, try one independent chat on each handset and time how long both answers take. If one person needs a model neither handset holds alone, the useful result is a completed answer within that person’s time budget.
When you finish, unload the model on the coordinator. To forget the pairing, tap the remove icon beside the worker. Switch the cluster role to Off on both devices before reconnecting to a shared network.
Worker and coordinator controls



