Open source · MIT · early
LLM inference with almost nothing under it
An OpenAI-compatible model server written in assembly. Run it as a container, or boot it as an image with no operating system on AWS, Azure or Google Cloud. CPU only, inside your own network.
Why an enterprise would want it
Three things together: a stack small enough to audit, running on CPU you already pay for, entirely inside your network.
01 · Audit surface
Almost nothing to audit
A normal self-hosted model server sits on a kernel, a C library, a Python runtime, a tensor framework, GPU drivers and a pile of packages. Every layer is code your security team has to accept, patch and track. The Linux kernel alone is over 40 million lines.
The bare-metal image is about 35,000 lines of assembly, comments included, and that's everything between the cloud's firmware and the model. No shell, no SSH, no package manager, no other processes. One person can read all of it.
Typical self-hosted server
firmware
Bare-metal image
firmware
02 · Budget
Paid for out of compute you already have
Token spend is a new line item that grows with every call, and everyone sees it. CPU is already in the budget, and most of it sits idle: Cast AI measured average CPU utilization across Kubernetes clusters on AWS, GCP and Azure at 8% in 2025.
Run it as a container on nodes you've already provisioned, or as an image on an ordinary instance. The workload becomes a share of a compute line you already have.
03 · Residency
Stays inside your network
Prompts and outputs never leave. No outside API, so no third-party outage, rate limit, price change, deprecation or retention terms. It works air-gapped.
The model is a file you pick, checksum and keep. Exact mode gives byte-identical output on ARM64 and x86-64, so the same input gives the same answer until you decide otherwise.
$ curl -s http://10.0.4.17:8080/v1/decide \
-H "Authorization: Bearer $TOKEN" -d '{
"input": "My card was charged twice for the same
order and nobody answers my emails. I want my
money back.",
"questions": [{"id": "refund", "type": "bool",
"prompt": "Is the customer asking for a refund?"}]}'
{"object": "decision", "model": "qwen3-0.6b",
"decisions": [{"id": "refund", "choice": "yes",
"probabilities": {"no": 0.0317, "yes": 0.9683}}],
...}
# no request left the subnet
Why you'd want it if you run models yourself
Small enough to understand end to end, quick on cheap hardware, and reproducible down to the byte.
You can read all of it
From the moment the firmware hands over to the last token on the wire, it's one codebase in one language. If you've wanted to know exactly what happens when a model answers, this is the shortest path there is.
Quick on cheap ARM
Faster than llama.cpp at generating text on AWS Graviton, every model measured. Qwen3-0.6B does about 103 tokens a second on a 4-vCPU box that costs about $0.15 an hour.
Boots in seconds
The bare-metal image answers its first request about 15 seconds after a fresh cloud instance launches. Spin up a private endpoint, use it, throw it away.
Drop-in API
OpenAI-compatible chat completions with streaming, logprobs and logit bias. Your existing clients and SDKs just work.
Decisions without parsing
The decision endpoint scores a fixed set of answers in one pass and returns a probability for each. No coaxing JSON out of a model and hoping it parses.
Reproducible
Exact mode gives byte-identical output on ARM and x86. Rerun an experiment months later on different hardware and get the same bytes.
Your files work
Stock Qwen3 and Qwen3.5 GGUF files from Hugging Face load as they are, on ARM64 today.
Hackable
Every kernel is checked byte for byte against recorded outputs, so you know right away when a change broke something. MIT licensed.
Measured, not projected
Qwen3-0.6B on a 4-vCPU Graviton3 (c7g.xlarge, about $0.15 an hour)
faster than llama.cpp at generating text, 8-bit weights, Graviton2 to 4, every model measured
from a fresh cloud instance to the first answer, bare-metal image (50 s on Linux)
perplexity against llama.cpp on the same GGUF file, across nine Qwen3 and Qwen3.5 files
04 · Two forms
Container or no OS at all
Same engine either way. Point existing OpenAI clients and SDKs at it: chat completions with streaming, logprobs and logit bias, plus a decision endpoint that scores a fixed set of answers in one pass.
Container
A small Go server in front of the assembly engine. x86-64 or ARM64, anywhere Docker or Kubernetes runs. TLS and bearer tokens built in.
docker run --rm -p 8080:8080 \
ghcr.io/jpr5/llm.asm:server-qwen3-0.6b
Bare-metal image
Boots straight from the VM's firmware. Engine, network drivers, TCP/IP and HTTP, all assembly, nothing else on the machine. ARM64 runs on AWS, Azure and Google Cloud today; x86-64 is in progress.
How the image works05 · Models
Small and mid-size models, from stock files
Stock Qwen3 and Qwen3.5 GGUF files from Hugging Face load as they are (on ARM64 today). Built for high-volume, well-defined work: classify, route, extract, triage, decide.
Qwen3 0.6B · 1.7B · 4B
General instruction models, 8-bit and 4-bit. Prebuilt container images.
Qwen3.5 2B
Newer generation, longer context. Runs in the bare-metal image.
Kev-4B
A trained decision model: picks one of a fixed set of options and gives a probability for each.
The usual suspects
Llama 3.x, Qwen2.5, Mistral, Phi-4-mini, Granite, SmolLM; then embeddings and rerankers, Gemma, and small mixture-of-experts models.
06 · vs llama.cpp
llama.cpp is the reference, not the competition
We read its GGUF files and measure our output against it. It runs almost every open model on almost any hardware, and for most people running models themselves it's the right answer.
Use llama.cpp when
- You have GPUs
- You need a big model, or a family we don't run yet
- You're on a laptop, or switching models often
- You want the biggest community and tooling
Use this when
- The whole stack has to pass a security review, and you want that review small
- The work is fixed and repetitive and runs at volume on CPU you already have
- You want an appliance with nothing to log into and nothing to patch but the image
- You need the same bytes out on ARM and x86
07 · Where it stands
Early, and honest about it
- One request at a time per engine. Extra requests queue briefly, then get a 503 with Retry-After. Serving several at once is next.
- Prompts read slower than llama.cpp. The lead is in generating text. Batched prompt processing is the fix.
- No TLS in the image yet. Keep it on a private network or behind a TLS load balancer. The container has TLS now.
- Our own security review, not an outside audit. What is and isn't defended is written down in SECURITY.md.