How small and cheap can a private AI machine be and still do real work? This project is my answer so far: two ARM boards and two used graphics cards, split one language model between them, connected by a USB cable. It works through differential equations, writes code and summarises documents, and it never needs the internet to do it.
01Why private matters
Some text should never reach someone else's server: a patient's notes, a client's contract, a circuit board that hasn't been announced yet. Sending it to a cloud AI means trusting another company with it, and often a contract or a regulation rules that out. The usual alternative is buying and running your own server.
Here the model, the chat server and the conversation all stay on hardware you own. No AI service is involved, and the cluster answers with the internet unplugged.
Local is not the same as secure, though. The PC with the chat page and your local network become part of the private zone, and they need the same care as any other machine that holds sensitive data.
02The goal
Useful AI that people and small organisations can own, understand and control, without depending on the cloud. In practice: find the smallest AI cluster that is:
- Practical: solves real work, not demos.
- Cheap: hundreds of euros, not tens of thousands.
- Private: everything runs on your own hardware.
- Easy to build: from used, widely available parts.
- Energy efficient: about 190 W at peak today (~100 W idle, so far, always max frequency mode).
03The bigger idea
AI infrastructure should be accessible beyond large technology companies.
AIMindStation explores a different approach: affordable, modular AI systems built from widely available hardware that individuals and small organisations can own, operate and understand.
The current cluster is a proof of concept, demonstrating that an 8-billion-parameter model can run across inexpensive ARM boards and used graphics cards, entirely offline.
The long-term goal is to develop a practical platform with accessible hardware, easy software deployment and flexible configurations for different models and workloads.
The aim is not to compete with large AI data centres, but to make independent AI infrastructure accessible to everyone.
04What runs today
Boards cost about €50 each, used cards about €50 each, the PCIe adapters about €20 each new: about €300 for everything, with power supply, frame, fan and cables. The chat page and its small chat server run on any PC on the local network, which isn't in that price; the page is opened on that same PC. The cluster writes about 11 tokens per second in a short conversation and about 7 near the end of a long one, reads a prompt at 16 to 19 tokens per second, and holds conversations of up to 4096 tokens.
Where the 91 ms of one token go, in a short conversation:
| Step | ms |
|---|---|
| ROCK 3A: token lookup, 20 layers on the RX 5500, sending the result | 27 |
| USB 3, there and back | 1 |
| Cubie A7Z: 16 layers on the RX 550 | 48 |
| Cubie A7Z: output head on the RX 550 | 12 |
| Cubie A7Z: small steps, picking the token | 3 |
| Total | 91 |
Hardware
| Node 1 | Node 2 | |
|---|---|---|
| Board | Radxa ROCK 3A | Radxa Cubie A7Z |
| Processor | Rockchip RK3568: 4× Cortex-A55 at 2.0 GHz | Allwinner A733: 2× Cortex-A76 at 2.0 GHz + 6× Cortex-A55 at 1.8 GHz |
| RAM | 2 GB | 1 GB |
| Storage | 16 GB eMMC module | 64 GB microSD card |
| Graphics card | AMD RX 5500 (RDNA 1), 22 compute units, 4 GB GDDR6, 224 GB/s (this card’s specification) | AMD RX 550 (GCN 4), 8 compute units, 4 GB GDDR5, 96 GB/s (this card’s specification; AMD’s reference RX 550 has 112 GB/s) |
| GPU clocks | 1860 MHz core; memory 14 Gbps per pin (875 MHz) | 1206 MHz core; memory 6 Gbps per pin (1500 MHz) |
| PCIe to the card | Gen2 x2 (a Gen3 slot, run at Gen2 for a stable link) | Gen3 x1 |
| Part of the model | layers 1–20 of 36 | layers 21–36 + output head |
| Network | Ethernet | Wi-Fi, only to start and stop the cluster; not used per token |
| Between the boards | USB 3 cable: about 450 MB/s, about 1 ms per round trip | |
| Chat server | any PC on the local network (not in the €300); the page is opened on that same PC | |
Software
| ROCK 3A | Cubie A7Z | |
|---|---|---|
| Operating system | Armbian 26.2.1 (Debian 13 “trixie”) | Debian 11 “bullseye” (Radxa image) |
| Linux kernel | 6.18.34, with my PCIe and GPU changes | 5.15.147 (vendor kernel), with my PCIe and GPU changes |
| GPU driver | amdgpu (in the kernel) | amdgpu (in the kernel) |
| GPU interface | Vulkan: Mesa 25.0.7 RADV | Vulkan: Mesa 25.0.7 RADV, my build with a DMA-engine mode |
| Model | Qwen3-8B, in Qwen's own published 8-bit (FP8) version: the layer weights are 8-bit, the token lookup table and output head 16-bit, as in the release; the math runs in 32-bit floating point; thinking mode off | |
| Inference program | my own, the same on both boards: C++ with Vulkan compute shaders | |
A differential equation, solved live through the chat page (one of the correct runs):
To be fair: this problem is hard for an 8B model. Out of 50 runs of this exact prompt, 25 gave the right formula, like the one in the video. The other 25 made the same arithmetic slip, and the model's own final check (✓) missed it, so the final formula always needs checking. A reference copy of the model on a PC confirmed that the slip is Qwen3-8B's own: it allowed every token the cluster picked in four checked runs, about 4,200 tokens, with the same odds to within half a percent.
05How data flows through the cluster
All of the model's computation runs on the two graphics cards. The weights of all 36 layers and the output head are loaded into the cards' memory once, when the cluster starts, and stay there. The layer and output-head weights are never read from the boards' storage or RAM while answering: the A7Z has only 1 GB of RAM and still holds 3.4 GiB of the model's weights. The processors only handle small steps: one row of the token lookup table per token (read from the ROCK's eMMC), 16 KB over USB, and the final pick among 20 candidates.
06What it took
When I started, I didn't know whether this could work at all. Desktop graphics cards on small ARM boards are not a supported combination.
Why the driver needed work
The Linux graphics driver, amdgpu, assumes what a PC guarantees: that the processor and the card see the same memory contents, and that every write the processor sends to the card arrives. Neither board guarantees that, and each breaks it in its own way. So each board needed its own changes.
Where the changes are
Between Linux and the graphics card sit several layers. These needed changes:
| Layer | What it does | ROCK 3A | Cubie A7Z |
|---|---|---|---|
| Device tree | describes the board's PCIe slot to Linux | changed: slower, stable link | changed |
| PCIe controller driver | connects the processor to the card | as is | changed: memory window, DMA engine |
| amdgpu: memory | where shared buffers and job queues live | changed | changed |
| amdgpu: power | firmware, clocks, voltage, power profile | changed | changed |
| amdgpu: data path | how commands and data reach the card | as is | changed: all through the DMA engine |
| Mesa (Vulkan driver) | turns the program's GPU work into commands | as is | changed: DMA mode |
The A7Z's data path is the unusual one: its chip has a hardware bug that corrupts writes from the processor to the card after a burst of work. So on the A7Z the processor writes nothing to the card directly; the PCIe controller's own DMA engine carries everything.
What the PCIe links can do, and how much they're used
| PCIe link, 64 MB blocks | ROCK 3A | Cubie A7Z |
|---|---|---|
| Link | Gen2 x2 (Gen3 slot) | Gen3 x1, through the DMA engine |
| Raw capacity, each direction | 1.0 GB/s | 0.985 GB/s |
| Measured: to the card | 0.80 GB/s | 0.83 GB/s |
| Measured: from the card | 0.86 GB/s | 0.75 GB/s |
| Used while answering (calculated) | ~0.36 MB/s | ~0.18 MB/s |
After the changes, both links reach 76–86% of their raw capacity, close to what PCIe can carry after its packet overhead. While answering they are almost idle, under 0.1% of either link: the weights crossed once, at loading, and stay on the cards. Per token a 16 KB vector goes to each card; 16 KB comes back from the RX 5500, and under 200 bytes from the RX 550 (just the token and its 20 candidates). Even loading isn't limited by PCIe: the weights would cross in about 4.5 seconds, but loading takes 33 s on the ROCK and 51 s on the A7Z, almost all of it reading the model files from storage (the ROCK's eMMC at about 110 MB/s, the A7Z's microSD card at about 72 MB/s).
Why Vulkan, not OpenCL
The cluster first ran on OpenCL. With the same model and the same kind of matrix code, moving to Vulkan made the ROCK's half 1.7× faster (66 → 39 ms per token) and the A7Z's half about 2× faster (about 228 → 111 ms), measured at the switch in late October 2026. With OpenCL every job on the card was started separately; with Vulkan a whole token's work is recorded once and sent to the card in one go. Every speed-up after that was made on Vulkan: today the two halves take 27 and 63 ms of a token (table above).
The rest
- Making the model fit. Qwen's published release is 8.8 GiB. The token lookup table stays on the ROCK's eMMC, so the cards hold the 36 layers and the output head: 7.6 GiB, less than the two cards' 2 × 4 GiB. But each card also needs room for the conversation memory (the cache of everything said so far) and some working memory. The second card doesn't fit at all: its 16 layers and the output head come to just over 4 GiB on a 4 GiB card. The ROCK's 20 layers would fit uncompressed, but would leave room for a conversation of only about 900 tokens. A lossless compression format, decoded by the graphics cards on the fly, brings the A7Z's share to 3.4 GiB and gives both cards room for 4096 tokens, bit for bit identical to the release. The 8-bit layer weights shrink by about 8% on average (a typical layer by about 10%; three early layers compress less), the 16-bit output head by about 30%. 8-bit means each layer weight is stored in one byte instead of two; the cluster still computes with them in 32-bit precision.
- Speed. The first run across both boards took 3.1 seconds per token. Measurement after measurement brought that to 91 ms.
- Correctness. Checked against a reference implementation of the model: without random sampling, the same token at every position of a 1500-token answer. With sampling, every token chosen in a 1000-token answer was one the model allows, drawn with the probability the model gives it.
What decoding the weights costs
The weights stay compressed in the cards' memory. Each one is decoded inside the graphics card, at the moment the matrix math needs it, so decoding costs extra instructions rather than extra memory traffic. A typical compressed layer is about 10% smaller than the plain 8-bit one. Measured on one typical layer:
| One layer, GPU time | ROCK 3A (RX 5500) | A7Z (RX 550) |
|---|---|---|
| Compressed, decoded on the fly (what runs) | 1.15 ms | 3.05 ms |
| Plain 8-bit, nothing to decode (timing test only) | 1.15 ms | 2.70 ms |
- ROCK 3A: nothing measurable on a typical layer, about 8% over all 20. The newer card spends its time reading memory; the decoding fits in alongside the reads, so a typical compressed layer takes exactly as long as a plain 8-bit one. Three early layers compress less well and take longer. Decoding does cost power: by the driver's reading, the card draws about 12 W more and uses about 25% more energy per token.
- A7Z: decoding costs about 11% of a layer, around 5.6 of the 48 ms its 16 layers take per token. The older card is limited by how many instructions it can issue, not by memory, and decoding adds about five instructions per weight.
- Why compress anyway: without it the A7Z's share of the model doesn't fit on its card, and the ROCK could hold a conversation of only about 900 tokens instead of 4096. On the ROCK, that room costs about 8% in time and 25% in energy per token.
And it is not yet at the limit, on entry-level cards from 2017 and 2019. The layers are read at about 70% of the memory speed each card reaches in a plain read test, the output head at 91%; reading at full speed would save about 21 ms of the 91 ms per token. On the ROCK the gap is in how the memory reads are issued; on the A7Z it is mostly the extra instructions.
07What's next
Step 1: proof of concept (done)
An 8B model runs across two cheap GPUs on ARM boards, gives the model's own answers, and its speed and power are measured.
Step 2: make it practical
- More hardware. Other used cards and boards, to find the best combination of price, speed and power. Each one needs its own driver work on real hardware.
- Longer conversations and more speed.
- Easy setup. Today it takes custom kernels and drivers. The aim is a ready-made system image.
Step 3: a platform
- Choose the task. Choose what the AI does today, such as code help, document review or summaries, and the cluster sets itself up for it.
- Other and bigger models.
- Build it or get it. Build it from a parts list, or get it assembled and tested.
Support the project
There's no company or sponsor behind this. Support goes to the next cards and boards, and to the driver and software work that makes them run.