A Sovereign AI Research Lab, On One Desk
A Sovereign AI Research Lab, On One Desk
There is a desk. On it is a workstation with an RTX 5090, 32,607 MiB of VRAM, and
next to it a DGX Spark at 192.168.1.112. That is the hardware. It is not a cluster,
it is not a cloud account, and there is no invoice from anyone for the tokens.
Right now, on that desk, 77 containers are running. Among them: a vLLM server, a llama.cpp server holding a model we trained ourselves, an embeddings backend, a quantization bridge, a vector store, an identity service, a message relay, a code graph, a scheduler that every LLM call in the building routes through, and a mesh daemon that makes the whole thing reachable from a phone.
That is a lab. Not a chatbot with plugins. A lab, in the sense that it runs experiments, produces numbers, and throws away the ideas that lose.
Most people who hear "self-hosted AI" picture running somebody else's model in somebody else's runtime and calling it independence. This is the other thing. The models are ours or quantized by us. The inference stack is ours. The evaluation harness is ours. The agents that built all of it are ours, and they run on it.
Here is what is actually on the desk.
What the lab has measured
A lab is only a lab if it produces results. Here are four off this hardware, with the numbers that were actually recorded.
A 23-megabyte world model out-explored a frontier LLM
The task: two hundred actions to explore a real directory tree it had never seen. Three trees, 821 to 2,788 directories. Find the interesting places.
One contestant was a language-model pipeline: a 12-billion-parameter vision-language model backed by a frontier reasoning model, reading every directory it touched and deciding on the merits where to go next. The other was a world model that fits in 23 megabytes, has never read a file in its life, and runs its encoder in milliseconds on a CPU.
| policy | distinct places found in 200 actions |
|---|---|
| world model, curiosity-driven | 38 |
| world model, predictive | 27.3 |
| random walk | 25 |
| breadth-first | 21 |
| LLM reading every directory | 13.3 |
The world model found roughly three times what the LLM-guided policy found. And the LLM-guided policy scored below the random walk: reading the contents of every directory and reasoning about them was worse than picking at random.
It is a small JEPA-style architecture. An encoder maps an observation to a spatial latent, and an action-conditioned predictor rolls that latent forward — given where I am and what I do, what will I see next? Training happens entirely in latent space, with no pixel reconstruction and no generative decoder in the loop.
It was not built for filesystems. It was built for abstract grid-puzzle games, and when we went to generalize it the architecture had already made the decision for us: the predictor, the novelty signal and the planner all operate only on the latent. Exactly one component knows what a grid is, and it is the front door. So porting to a new domain is an observation adapter, not a rewrite. A directory becomes a treemap: every child a box, sized by its real byte-footprint, colored by content type, and descending into a subdirectory is clicking on its box.
On top of the encoder sits a landmark memory, a growing set of latent centroids. Land near an existing one and you have seen this kind of place before; land far from everything and it is new territory. Novelty, coverage and compactness all fall out of that for free, and thousands of directories collapse into a few dozen kinds of place. The memory never sees a path or a filename. The same code would map a website, a codebase, or a camera feed.
The obvious objection is that landmark count is measured in the agent's own representation, so a noisy encoder could shatter the space and grade itself generously. That is why coverage alone promotes nothing. The gate also demands needle-reach: targets planted in the rarest regions of the tree, ground truth the representation cannot game, and the agent has to beat random on it. Coverage says the map is rich. Needles say the map is about the actual world.
A 230,000-parameter model that taught itself to win
Fourteen times, an agent here has been dropped into a video game it had never seen, with no instructions, no manual and no idea which button does what, and finished a level.
The fastest took fourteen actions.
The model doing the predicting has 0.23 million parameters. Not billion. About a megabyte of weights, small enough to email. Nobody labelled a single frame for it. It learned the dynamics of each game by playing badly, 421,000 times.
| when | game | solved at action |
|---|---|---|
| 2026-07-14 | sp80 | 19 |
| 2026-07-31 | lp85 | 18 |
| 2026-08-01 | lp85 | 14 |
| 2026-08-09 | lp85 | 30 |
Four completions in July. Ten in the first nine days of August. The three fastest solves are not early flukes. They are what happens once the agent stops rediscovering the controls every time.
Quantizing a 2.78-trillion-parameter model
Kimi K3 is 2.78T parameters, mixture-of-experts, top-16 of 896. Running it locally means answering a question most people get wrong by analogy.
An MoE has two budgets, and they are not the same number. Capacity is resident bytes: does it fit. Bandwidth is bytes moved per token: how fast it decodes. For a dense model those are identical, which is exactly why the distinction gets missed by anyone reasoning from dense-model papers. For K3 they differ by 12x: 1,600 GB resident against 135 GB per token. Size the machine by the first number and you buy the wrong machine.
Then the trunk has to be quantized, and the received wisdom is 4-bit. We measured it on real K3 weights, in 4096-row slices, reporting both weight error and GEMV output error. The second is what the model actually experiences, and it is the one people skip:
| format | weight error | GEMV output error |
|---|---|---|
| MXFP4 (E2M1) | 11.7% | 12.0% |
| int4 affine, group 32 | 7.9% | 8.1% |
| int4 affine, group 16 | 6.5% | 6.7% |
| int8 affine, group 32 | 0.47% | 0.48% |
int8 is not a compromise here. It is an order of magnitude better than every 4-bit format we tried, and MXFP4, the newest and most fashionable of them, came last.
A second result from the same box: on the GB10, fp64 costs about 1.8x, not 64x. The trunk GEMV is bandwidth-bound, so precision you assumed was unaffordable is nearly free. That is the kind of thing you only learn by owning the hardware and being allowed to run a silly experiment on it.
Fine-tuning, and reporting both numbers
A full train, merge, serve and benchmark loop on gemma4, scored on public benchmarks with
lm-eval:
| benchmark | base | fine-tune | delta |
|---|---|---|---|
| gsm8k (strict) | 0.460 | 0.750 | +0.290 |
| mmlu | 0.4857 | 0.4588 | −0.027 |
The GSM8K gain is about eight sigma. The MMLU drop is about five sigma and real: the model got better at what we trained it on and slightly worse at general knowledge. Both rows get reported, because the second one is what tells you the corpus was too narrow.
How we know the numbers are real
The reason to trust any of the above is that the same gates throw results away.
Cross-model KV transfer converts one model's cache into another's so the second can skip prefill entirely. We got keys reconstructing at R² 0.565, a genuinely good fit, and the receiving model still landed 1.27 nats worse than doing its own prefill. The pack was refused. Reconstruction quality is necessary and not sufficient, and the only reason we know that is that the acceptance test has four arms rather than one, including a control arm that runs the mapper on a different document. Without it, a mapper that has memorized the target's average statistics and ignores its input entirely scores respectably.
Promotion works the same way everywhere. A world-model checkpoint that scored higher on coverage than the one we shipped was not promoted, because it did worse on the external needle test. The prettier number lost to the harder one.
Models that run where you are
The lab's inference work is not academic. Three things it produced that you can use.
Bonsai runs in a browser tab. Not a call to a server. The weights come down and the model runs on your GPU through WebGPU. Deployed and measured on a plain visitor path: 102 milliseconds to first token, 50 tokens per second, coherent output. Before the fixes it was 62 seconds to first token and produced word salad, and two independent defects were each hiding the other. It works now, on the public site, on consumer hardware.
KV cache quantization. The cache, not the weights, is what runs a GPU out of room during real serving. It grows with every token of every concurrent request. Our work on this compresses it 3.8–7.1x. It has been on PyPI since 14 August:
pip install aither-kvcache
DeepSeek-V4-Flash on the Spark. 43 blocks, 256 experts, 6 used per token, multi-query attention, IQ2_M at 2.7 bits per weight, 85 GB on disk, 18.2 tokens per second, and compute-bound rather than bandwidth-bound, which is the opposite of what we assumed and changed how we set the layer split.
None of these numbers came from a paper. They came from the box under the desk.
The lab runs itself
Here is the part people do not believe.
On 8 June 2025 at 16:29 this repository received its first commit. At 16:30 it received
its second. At 16:45 it received six more, all in the same minute, from separate
branches. At 18:41 pull request #8 merged. At 19:26 someone created AGENTS.md.
In the first 72 hours the log holds 811 merged pull requests and 932 commits whose subject names an agent branch. No human types that. There was never a phase where a person wrote this codebase and later added agents; the agents are the first thing that existed, and everything else is downstream of them.
Fourteen months later: 17,167 commits, 6,686 of them in the last thirty days, running around three hundred a day. As this paragraph was written, six concurrent agent sessions held 44 active file leases in one shared working tree.
That last sentence is the interesting one, because six agents in one repository is supposed to be a disaster. It is a disaster if they coordinate by talking to each other. They do not. They coordinate through four small things, none of which requires a framework or agreement between vendors:
A lease. Before an agent edits a file it registers intent. Acquire is all-or-nothing: if any requested path is held, the whole batch is refused and names the holder. A lease is a heartbeat-renewed TTL, not a lock. It expires, so it self-heals when its holder disappears. And it records the file's git blob at the moment it was granted, which makes "which of these edits are mine" a computation rather than a guess.
A claim. Leases arbitrate writes to a path. They cannot answer is a peer already doing the job I am about to start — holding 1,719 file leases tells nobody that a trunk merge is in flight. So an expensive operation claims itself, from a hook, comparing intents on stemmed word overlap because two sessions describe the same job differently. It warns and never blocks. Blocking would strand a session whose peer merely forgot to release, which is worse than the duplicated work it prevents.
A channel with a reader. One agent's transcript is invisible to every other agent, so a conclusion reached once gets re-derived by the next session that hits the same symptom. Findings go to a channel a human can also read.
A memory with a scope. An agent that forgets everything between sessions re-derives
the same facts forever. One that remembers everything globally leaks context between
projects. Memory is scoped to tenant:user:project.
Five verbs, four files. No orchestrator. No handoff schema. A session running a different vendor's model participates fully, because the protocol is a lease file and a claim file, not a prompt format.
What keeps a self-writing lab honest
Three hundred commits a day into a codebase would be terrifying if the only thing checking the work were another language model. Two models that hallucinate at ten percent, arranged so one reviews the other, do not give you one percent. They give you a confident consensus, reached faster. The reviewer shares the failure mode of the thing it reviews.
So nothing important here is settled by a model. It is settled by a program that exits non-zero. There are 374 of them.
They are not lint rules. Each one catches a class of defect where every ordinary signal is green: the container is healthy, the endpoint returns 200, the test passes, and the thing is broken anyway. Two examples, both real incidents before they were checkers:
A service registered a second handler on a route the framework already owned. The
framework keeps the first one, so the second never executes. The handler that never
executed existed to report whether a feature was enabled — a field whose job was to say
"this service is inert" was itself inert. Nothing could see it. The module imported, the
route table built, and /health returned 200 throughout.
An unanchored .gitignore pattern written for build artifacts applied at every directory
depth and silently kept 31 source files out of every clone, including a YAML file a
shipped deployer reads at runtime, so the published package raised FileNotFoundError on
first use. Nothing local could detect it: the files were on disk, the build passed, and
git status was clean.
Every checker ships with a --self-test that deliberately breaks the invariant and proves
the checker goes red, because a program that exits 0 is not evidence that the invariant
holds unless you have watched it fail. Every checker distinguishes three outcomes rather
than two: the invariant holds, the invariant is broken, or I could not look. Silence
is never a pass.
The doctrine behind all of it is published, free and MIT, as awknowledge — eighteen laws, each one a real failure first, each number counted rather than estimated.
The pieces, and how to take one
The lab is not a monolith you have to adopt. It has been broken into 28 independently
installable bricks — the aw family, read as Aither World: awgraph is Aither World
Graph, awnet is Aither World Net.
One rule decides whether something qualifies: a brick's adoption sentence may not name another brick. It has to be useful alone, to a stranger, with nothing else installed.
awgit — take a lease on a file before you edit it in a shared checkout. awgraph — index one repo and ask it who calls one function. awseal — sign one release file and hand someone the verify command. awrecover — snapshot a directory, break it, restore it, diff it. awrelay — have one agent post a finding to a channel a human can also read. awm — give one agent a memory scoped to one project and watch it stop re-asking. awnest — gate one action behind a human check and watch a script fail it. awnboard — put a gate in front of one URL and let exactly one person through it.
If that sentence needs a sibling, it is not a brick. It is a subsystem of something else, and shipping it separately teaches people to adopt a dependency they did not want.
There is a second rule that matters more than it sounds: ship the client, never lift the
service. awrelay did not lift our 19,000-line relay service with its Redis and its
federation. It shipped a small standalone client that speaks to any relay-shaped server.
Renaming an internal service under a public name produces a package that fails to import
on a stranger's machine — a broken package that reads as authoritative, which is worse
than an absent one.
Available now:
pip install awdk # the agent runtime — any backend, local or cloud
pip install awgit # leases + semantic version control for a shared worktree
pip install awgraph # AST + call graph, instead of grep
pip install awrelay # findings and alerts on a transport you already run
pip install awm # scoped agent memory
pip install awshare # content-addressed publish and verified fetch
pip install awnode # a local gateway, so apps stop hardcoding a vendor
pip install aither-kvcache # sub-byte KV cache quantization
awnix: the desk, as an image
The last piece is the one that makes the rest portable.
Give an agent real access to a machine and you inherit four problems immediately. It will change things you cannot see — not maliciously, thoroughly. It will run alongside other agents, and two processes editing one file is not a merge conflict, it is lost work. It will be wrong sometimes, and the only question is whether you find out cheaply. It will need credentials, and it should not get yours.
Run agents on someone else's platform and all four are handled by trusting the platform. awnix is the other bet: you can verify everything, so you have to trust nothing.
It is a bootable, immutable Linux base. The entire install is:
podman build -t awnix:latest -f Containerfile .
The operating system is a container image. You build it, you sign it, you roll it back.
Immutable /usr, atomic updates, real rollback via bootc. Rootless podman, no daemon.
A web console for a machine with no desktop. A firewall with zero ports open. And no
password at all — the account is locked and access is by key, so there is nothing to leak
because nothing was ever set.
No services. No agent. No account.
That last line is deliberate, and it is where the design gets interesting. A base image
that arrives with an agent already running has decided what you are doing with your
machine. So the agent is not in the base. The capabilities are — eleven aw tools,
preinstalled and importable. Adding an agent is three lines:
FROM awnix:latest
RUN pip3 install --no-cache-dir awdk
# ...your skills, packs and credentials
The runtime finds the tools by import. They are already there. So the agent gets leases, a call graph, messaging, scoped memory, snapshots and verified artifacts with no wiring at all.
This is the load-bearing choice of the whole architecture. Capabilities in the base, agent on top, means you can swap the agent and keep the guarantees. Put them in the agent instead and every guarantee walks out with it.
And the image asserts its own documentation at build time:
RUN for m in awgit awgraph awrelay awshare awseal awm awrecover \
awbrowse awfind awnest awnboard; do \
python3 -c "import $m" || { echo "FATAL: $m did not install"; exit 1; }; \
done && echo "aw family: all 11 import"
That line exists because the README once advertised all eleven while the image contained
none, and awgit answered command-not-found on a machine whose entire pitch is that
tooling.
What sovereignty actually buys
It is worth being precise, because the word gets used loosely.
The weights are yours. Quantized by you, on your hardware, with the error measured rather than assumed. Nobody deprecates them. Nobody changes them under you between Tuesday and Wednesday.
The measurements are yours. When the fine-tune gains 0.290 on GSM8K and loses 0.027 on MMLU, you know both, because you ran both. When a checkpoint scores better on the metric you like and worse on the one you cannot game, you are the one who decides which matters, and you have the evidence to decide with.
The failures are yours. The 42.5 hours that produced 48 bytes belongs to us, and so does the 200-millisecond checker it turned into. On a managed platform that incident is a support ticket. Here it is an asset.
Nothing leaves that you did not send. The browsing and search tools are clients, so the engine and the providers stay on a service you run. An agent can look things up without your queries going to a vendor you did not choose.
And it is reproducible. The whole thing is an image you build and sign. A bad state is a rollback, not an evening.
What it costs is honesty about what is not done. Of the 28 bricks, thirteen are public and thirteen are built but not yet published. Fourteen ecosystem surfaces are incomplete, and the registry prints all fourteen by name on every run rather than rounding up. The largest hole is awnet — the public form of the mesh, so anyone's agents can host and join a network rather than only ours. The substrate runs; the extracted, joinable, documented version does not exist yet. It sits in the registry marked absent, because a named gap can be chased and a silent one is just a thing nobody remembers.
Start with one thing
You do not need any of this to be true for you all at once. The lab was not built by adopting a platform; it was built by one person putting one more thing on a desk, over fourteen months, and measuring each one.
Pick the smallest brick that solves a problem you actually have. Index a repository and ask it who calls a function. Give an agent a memory scoped to one project. Take a lease before two of them edit the same file. Boot the base image and try to make a change you cannot reproduce.
The hardware is a desk. The rest is a decision about who holds the keys.
git clone https://github.com/Aitherium/awnix
podman build -t awnix:latest -f Containerfile .
Every number in this post was measured on the machine described in the first paragraph, on the date stated, and re-derived by a checker where one exists. Where something has not been measured, it is not claimed.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.