AI News
All projects
Tool

TrnRT: open LLM inference engine for AWS Trainium, serving GLM-5.3-Flash

TrnRT is an open-source inference engine that serves large language models on AWS Trainium chips behind an OpenAI-compatible API, currently supporting one model, GLM-5.3-Flash.

trnrt by RunanywhereAI · 1,662 GitHub stars when we found it · added

TrnRT serves an OpenAI-compatible API from a single trn2.48xlarge instance. Decode runs as NKI megakernels, with roughly one kernel per layer half, and the engine keeps a prefix cache spread across device and host memory. GLM-5.3-Flash is the only supported model so far: a 320B MoE model with 18B active parameters, FP8 precision, and a 1M-token context. The README says more open models are coming. The engine also offers the Anthropic Messages API, structured outputs through xgrammar, and five prefix-cache eviction policies.

Setup requires Docker, a trn2.48xlarge to serve on, and any x86_64 host to compile the graphs, a step the README says takes hours. The author reports 3.57M tokens per minute at batch 12 in the SemiAnalysis AgentX replay, and $0.040 per million tokens on spot pricing. The engine is compared with H200 and H100 nodes using InferenceX's public runs. The README also notes that these figures came from an earlier build, that the device run for release 0.2.0 is still pending, and that RunAnywhere did not check the GPU numbers.

The same README acknowledges that trn2 users see slower per-user responses, and that H200 delivers more tokens per dollar at 24 and 32 users. The project is licensed under Apache 2.0.

In the author's words

**TrnRT** is an open inference engine for large language models on AWS Trainium.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

Anyone weighing self-hosted models on non-GPU cloud hardware can use it as a worked example of fusing decode into kernels and moving graph compilation offline. Its benchmark section, which lists where the engine loses as well as where it wins, is a useful template for reporting results.

Works with

OpenAI clientAnthropic Messages API

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made