A private AI box
Run useful language-model work over personal and sensitive documents without any of it reaching a third-party API.
- ai
- security
- storage
- GPU
- RTX 3060 12 GB
- Egress
- LAN only
- Storage
- Encrypted ZFS
- Telemetry
- Off
Most of the useful things you can do with a language model involve giving it something you would rather not hand to somebody else’s server. Financial records, health documents, private correspondence, anything under an NDA. The usual advice is to read the provider’s retention policy and make a judgement. I would rather not have to make the judgement.
So there is a machine whose entire design goal is that the question cannot arise: it has no route to the internet.
The shape of it
A single host with a consumer GPU, deliberately kept out of the cluster. It runs a local language model, a local embedding model, a vector store and a document ingest path, with the corpus and the vectors both living on an encrypted pool that has to be unlocked before anything works.
Keeping it out of the cluster was a deliberate choice rather than laziness. A clustered node has to trust the other nodes, share a network, and accept workloads scheduled onto it. A machine whose value proposition is isolation should not be doing any of that.
Making the GPU work inside a container
Passing an NVIDIA GPU into an unprivileged container is the part that consumed the time. The requirements interlock in a way that is not obvious until you have violated all of them at least once:
- The distribution kernel had to be pinned back a version, because the newest one shipped before the driver supported it.
- Secure Boot had to be off, or the out-of-tree driver module will not load.
- The container runtime needed cgroup handling explicitly disabled, or device access fails in a way that produces no useful error.
The genuinely dangerous failure mode is not the one that crashes. It is that with the GPU misconfigured, the whole stack falls back to CPU and reports itself healthy. Everything answers. Nothing errors. It is simply twenty times slower, and if you are not watching the token rate you will not notice for days. The monitoring now checks for GPU utilisation during inference specifically, because “it responded” turned out to be a useless health signal.
Keeping it honest
Isolation is only real if it is enforced somewhere other than in my intentions:
- Firewall rules restrict the host to the local network. It cannot reach the internet even if a piece of software decides it would like to.
- Telemetry and update-check endpoints are disabled in every component.
- The corpus and vector store sit on an encrypted dataset, snapshotted nightly.
- No third-party model APIs are configured, so there is nothing to leak to.
The monitoring treats this box as amber-by-default from the outside, because “unreachable” is the correct state for it and I would rather the dashboard tell me the truth than tell me something comforting.
Was it worth it
Yes, though not for the reason I expected. The performance is fine and the answers are good enough for document work. But the real return is that I stopped having to think about it. There is no mental overhead of deciding whether a particular document is sensitive enough to matter, because the machine that reads it has nowhere to send it.