# TrnRT - Open-source LLM inference engine for AWS Trainium

Original title: Show HN: TrnRT – An open-source LLM inference engine for AWS Trainium

> Hacker News story 50533270 · language: en · submitted 2026-11-17
> Web version: https://zeli.app/story/50533270
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 54 · by [sanchitmonga22](<https://news.ycombinator.com/user?id=sanchitmonga22>) · 💬 7
[original](<https://github.com/RunanywhereAI/trnrt>) · [HN discussion](<https://news.ycombinator.com/item?id=50533270>)

## Summary

TrnRT is an open-source inference engine that brings large language models to AWS Trainium. It serves an OpenAI-compatible API from a single trn2.48xlarge instance, using NKI megakernels for efficient decode and a prefix cache for fast context reuse. With support for 1M-token context and GLM-5.3-Flash as the first model, TrnRT delivers impressive throughput: 3.57M tokens per minute at $0.040 per million tokens on spot pricing. Developers can deploy it via Docker, compile models offline, and integrate with any OpenAI client. It's a cost-effective, high-performance alternative for running LLMs on Trainium hardware.

## Key quote

> Decode is not limited by memory bandwidth here; small instructions, kernel boundaries and exposed collectives dominate it. So each decode megakernel follows three rules: keep the working set in SBUF, use both physical cores symmetrically, and move the collectives into the kernel.

## HN discussion (7 comments)

### [coredog64](<https://news.ycombinator.com/item?id=50537229>)

> Good on these folks for doing something useful with Trainium.  I'm always surprised that the Tranium ecosystem is as poor as it is.  Amazon's market cap is nearly $3T and they can't throw a couple L6s and a modest token budget at this?  Making Trainium work as seamlessly as possible as an Nvidia substitute is a clear flywheel play.

### [bookernath](<https://news.ycombinator.com/item?id=50535016>)

> Tokens per minute is a strange metric, I usually see tok/s. A per-second figure would be more accessible in comparing this to alternatives.

### [kevo1ution](<https://news.ycombinator.com/item?id=50536538>)

> curious how the token/$ on trainuim compare to nvidia chips and amd. is the future "chipless" inference?

---

## Cite

- Page: https://zeli.app/story/50533270
- Date: 2026-11-17
- Source: github.com (https://github.com/RunanywhereAI/trnrt)
- Hacker News: https://news.ycombinator.com/item?id=50533270

## Other languages

- zh: https://zeli.app/zh/story/50533270 · markdown: https://zeli.app/zh/story/50533270.md
- ja: https://zeli.app/ja/story/50533270 · markdown: https://zeli.app/ja/story/50533270.md
- ko: https://zeli.app/ko/story/50533270 · markdown: https://zeli.app/ko/story/50533270.md
- de: https://zeli.app/de/story/50533270 · markdown: https://zeli.app/de/story/50533270.md
- es: https://zeli.app/es/story/50533270 · markdown: https://zeli.app/es/story/50533270.md
- ru: https://zeli.app/ru/story/50533270 · markdown: https://zeli.app/ru/story/50533270.md
