TrnRT

github.com

Open-source LLM inference engine for AWS Trainium with NKI megakernels, 1M-token context and an OpenAI-compatible API.

Pricing
Open source
Published
Nov 18, 2026

Next steps

What it does

TrnRT, from RunAnywhere AI, serves large language models on AWS Trainium. It exposes an OpenAI-compatible API (chat, completions, streaming, tool calls and reasoning output) from a single trn2.48xlarge, runs decode as NKI megakernels with about one fused kernel per layer half, and keeps a radix-tree prefix cache over FP8 KV pages with a host-memory tier. Sparse and linear attention allow up to 1M tokens of context, each box runs two tensor-parallel engines behind a session-affine router, and all graphs are compiled offline on a CPU host. GLM-5.3-Flash is the first supported model. Apache-2.0.

Use cases

  • Serve an open LLM with an OpenAI-compatible API from a single AWS trn2.48xlarge instead of GPUs
  • Run long-context workloads up to 1M tokens with sparse and linear attention
  • Study NKI megakernel and prefix-cache techniques for Trainium inference

Frequently asked questions

What is TrnRT?
An open-source LLM inference engine for AWS Trainium from RunAnywhere AI. It serves an OpenAI-compatible API from one trn2.48xlarge.
Which models are supported?
GLM-5.3-Flash is the first supported model; the README says more open models are coming.
What makes it fast?
Decode runs as NKI megakernels (roughly one fused kernel per layer half), with a prefix cache across device and host memory and two tensor-parallel engines per box.
What do I need?
Docker, a trn2.48xlarge to serve on and any x86_64 host to compile on.
Is it free?
The engine is Apache-2.0; AWS instance costs are yours.
Log in to join the discussion