RunAnywhere Open-Sources TrnRT: A High-Performance Inference Engine for AWS Trainium

2026-11-17 16:01

Sanchit, representing the YC-backed startup RunAnywhere, has announced the open-source release of TrnRT (Trainium RunTime), a specialized inference engine designed to optimize model performance on AWS Trainium hardware. The project, developed over a three-week period, aims to address the current lack of robust support for large-scale models on AWS trn2.48xlarge instances, specifically targeting the GLM-5.3 flash (FP8) model.

RunAnywhere initiated this project to explore the cost-efficiency potential of Trainium compared to industry-standard H100 or H200 GPUs. According to the team, the memory-per-terabyte cost on a trn2.48xlarge instance is less than half that of an 8x H200 configuration on AWS. Despite this advantage, the team found that existing stacks, such as vLLM Neuron and AWS’s own NxDI framework, lacked the necessary support or active development to effectively run their target models. By developing TrnRT, they have successfully served two instances of GLM-5.3 flash on a single box, achieving significant throughput metrics.

Technical performance highlights include reaching 3.57 million tokens per minute (TPM) on SemiAnalysis’s AgentX benchmarks. The team achieved these results by implementing custom NKI kernels. By writing a ‘megakernel’ that covers an entire layer in just two kernel dispatches, they improved decode speeds by 25% at batch size 8. Furthermore, the engine utilizes a cache-aware router and specialized sparse-attention kernels that keep working weights in SBUF, effectively managing inter-chip communication.

In testing, the system demonstrated a P50 Time To First Token (TTFT) of approximately 1.24 seconds with a cached prompt at 16 agents, maintaining a decode speed of 35.9 tokens per second. The team acknowledges a minor approximation in the sparse-attention prefill process, which affects roughly 1.2% of block selections, but they believe the trade-off is justified by the substantial performance gains. RunAnywhere is now inviting the developer community to contribute to the repository, test the engine on trn2.48xlarge instances, and provide feedback on which models should be prioritized for future support. The company plans to continue offering high-performance, cost-effective inference solutions for open models like the GLM-5.3 family, Kimi K3, and Deepseek flash.