TrnRT serves a 320B model with a 1M-token context from one AWS Trainium box
An open-source inference engine for Amazon's own chips, built on hand-written megakernels. Its docs also list where the attention shortcut is not exact.
Most open inference engines assume a GPU. TrnRT, from RunAnywhere, targets AWS Trainium instead. It serves GLM-5.3-Flash, which the README describes as a 320B-parameter mixture-of-experts model with 18B active, at a 1M-token context behind an OpenAI-compatible API, all from one trn2.48xlarge instance. The README says the project is independent and not affiliated with AWS.
How it works
One instance has 16 chips with 96 GiB of memory each. TrnRT runs two copies of the model, each spread across 8 chips, with a router in front that keeps a conversation on the engine that already has its cache.
The core of it is the decode path, written as “megakernels” in NKI, the low-level kernel interface for these chips. Roughly one kernel covers half a layer. The README’s argument is that decode on this hardware is held back less by memory bandwidth than by small instructions, kernel boundaries, and communication between cores, so each kernel keeps its working data on-chip and does the cross-core exchange inside itself. RESULTS.md gives a profile of one 24.22 ms step: 6.07 ms is the floor set by reading memory, and the rest is work and waiting on top of that.
The model graphs are compiled ahead of time on an ordinary x86 machine, which the README says takes hours. The serving box loads the results and compiles nothing.
The numbers, and the fine print
These are the project’s own measurements, using SemiAnalysis’s AgentX harness, which replays recorded coding-agent sessions. With 32 agents for an hour at the default batch of 12, the docs report 28.9 requests per minute, 22.3 tokens per second per user at the median, and a median 6.53 second wait for the first token on cached prompts. On spot pricing of $8.60 an hour that works out to $0.040 per million tokens, counting input, cached input, and output alike.
A unique prompt of about 1.04M tokens took 190.8 seconds to reach its first token. A second question over the same cached context took 1.84 seconds.
The caveats are written down, which we appreciate. The numbers come from an earlier build; the docs say the public repo matched it byte for byte on 384 of 384 requests. The speculative decoding results are marked unverified. And KNOWN_ISSUES.md says the sparse-attention step sometimes keeps an approximate shortlist of context blocks: never on 13 million selections from real coding workloads, but on about 1.2 percent with the AgentX prompts, enough to change the top next token at 3 of 448 positions tested. The benchmarks ran with that shortcut on.
Try it yourself
The repo is Apache 2.0, with 315 commits on its development branch; the newest we saw were dated November 8, when the changelog named 0.1.0 as the first public release. You need a trn2.48xlarge, Docker, the model weights from Hugging Face, and the compiled cache. The CPU test suite runs without any Trainium hardware.
We have not run it and do not have a Trainium box to try. This is based on the README, the results and known-issues documents, and the commit history.