Show HN: TrnRT – An open-source LLM inference engine for AWS Trainium
TrnRT is a new open-source LLM inference engine optimized for AWS Trainium2, featuring NKI megakernels and serving the GLM-5.3-Flash model.
read it Systems engineers working with custom AI accelerators will find actionable benchmark data, architecture details, and quickstart configurations for AWS Trainium.
summary
RunAnywhere has released TrnRT, an open-source inference engine designed specifically for AWS Trainium2 hardware. The engine utilizes NKI megakernels, a 1M-token context window with sparse attention, and a prefix cache to run models like GLM-5.3-Flash efficiently. Benchmarks show it achieving high throughput and low costs on a single trn2.48xlarge instance. The project aims to fill the gap left by sparse official software support for Trainium hardware.
key points
- TrnRT implements NKI megakernels to combine decode operations and reduce memory bandwidth bottlenecks on AWS Trainium2.
- A single trn2.48xlarge instance running GLM-5.3-Flash achieved a spot cost of $0.040 per million tokens at a batch size of 12.
- The engine includes an OpenAI-compatible API, a 1M-token sparse context window, and an offline compile pipeline.
who should read it
Machine learning infrastructure engineers and developers deploying models on custom cloud hardware.
discussion warm
consensus
Commenters praise the project for tackling the notoriously weak software ecosystem surrounding AWS Trainium, noting that Amazon itself should be providing better tools.
pushback
One commenter questions the choice of tokens per minute as a primary metric instead of standard tokens per second.
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.
It highlights the surprising lack of native software support from Amazon given the massive scale of AWS.
Generated by an LLM from the article and thread. Check the sources before relying on it.