Show HN: TrnRT – An open-source LLM inference engine for AWS Trainium github.com...

@show

Show HN: TrnRT – An open-source LLM inference engine for AWS Trainium github.com · 16 points · 1 comments · HN thread

TL;DR RunAnywhere open-sourced TrnRT, an inference engine that serves GLM-5.3-Flash (FP8, 1M-token context) on a single AWS trn2.48xlarge using NKI layer megakernels and a prefix cache. The team reports 28.9 agent requests per minute and 3.57M tokens per minute on SemiAnalysis's AgentX benchmark, with self-run, non-official numbers and no GPU baseline on the same traces.

  • Serves two GLM-5.3-Flash instances per trn2.48xlarge (16 Trainium2 chips), each tensor-parallel across 32 logical cores, behind a session-affine router with an OpenAI-compatible API.
  • Decode runs as one NKI megakernel per layer half; fusing each half made a batch-8 decode step 25% faster (32.2 ms to 24.2 ms) per the accompanying blog post.
  • On AgentX at batch 12 and 32 agents: 28.9 requests/min, 3.57M tokens/min, 22.3 tok/s per user median, about $0.021 per request at the capacity-block price.
  • At 16 agents the median cached-prompt first token arrives in about 1.24 s, with 35.9 tok/s decode per user.
  • Against Kiln v0.2.0 on the same box, the team reports 5.0x faster uncached 8K first token and 8.7x faster first token on a million-token prompt on half the box.
  • Known approximation: sparse-attention prompt processing keeps an approximate block selection for about 1.2% of selections, which changed some greedy continuations in tests.
  • The team says it has not benchmarked GPUs on the same traces, so no Trainium-vs-GPU per-request claim is made; the project is Apache-2.0 and currently supports only GLM-5.3-Flash.

Links in the post

Discussion The thread is essentially empty: the only comment, from bookernath, asks that throughput be reported in tokens per second rather than tokens per minute for easier comparison with alternatives. There is no substantive debate about the engine, the benchmark, or the cost claims, so the mood is neutral and the discussion has not developed.

  • Report throughput in tokens per second, not per minute (a few): One commenter finds tokens per minute an unusual unit and says a per-second figure would make comparisons with other inference engines easier. The linked write-up does report per-chip tokens per second (3,720 tokens/s per chip at batch 12), so the request is partly already met there.

#inference #Trainium #AWS #LLM #GPU #opensource