whereismyai
TrnRT
TrnRT is an open inference engine for large language models on AWS Trainium that serves an OpenAI-compatible API.
TrnRT is an open inference engine designed for large language models on AWS Trainium. It serves an OpenAI-compatible API from a single trn2.48xlarge instance and executes decode operations as NKI megakernels. The engine maintains a prefix cache across device and host memory using a radix tree over FP8 KV pages. GLM-5.3-Flash is the first supported model, utilizing sparse attention and linear attention for a 1M-token context. It is built for developers and organizations running large language model inference workloads on AWS hardware.
TrnRT at a glance
- Best for: Software engineer
- Runs on: API, self-hosted, open source
- Pricing: Free
- Released: November 2026
- Category: AI coding tool
- Website: github.com/runanywhereai/trnrt
Key features
- NKI megakernels for decode
- 1M-token context with sparse and linear attention
- Prefix cache across device and host memory
- Two engines per box with tensor parallelism
- OpenAI-compatible API for chat, completions, and tool calls
- Offline graph compilation on a CPU host
Use it for
- Serving large language models on AWS Trainium
- Running coding-agent sessions with long context
- Handling high-throughput model inference and token generation
Alternatives to TrnRT
- ncnn — No runtime dependencies and supports CPU and Vulkan GPU backends.
- GLiNER — Enables zero-shot entity extraction without labeled training data on consumer CPUs.
- CTranslate2 — Provides fast and efficient inference execution for Transformer models.
- TensorRT — Speeds up inference by 36X compared to CPU-only platforms.
- OmniRoute — Routes requests across 352 providers with automatic fallback and cost-based selection.
- Xinference — Supports a wide range of model types and hardware, including multi-node setups.
- MNN — It delivers high-performance inference and training with a lightweight footprint.
- Text Embeddings Inference — High-performance serving for open-source embedding models.
- NeuroBrix — Runs language, vision, speech, and video models from one container format.
- ort — Provides an ergonomic Rust API for running high-performance ONNX models.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- vLLM — Maximizes throughput with PagedAttention and continuous batching.
All TrnRT alternatives