trnrt
An inference engine that serves LLMs through an OpenAI-compatible API on a single AWS Trainium2 instance.
What does it do?
To use TrnRT, you need Docker, a trn2.48xlarge instance to run the service, and an x86_64 host for compilation. Build the image and compilation cache, transfer the resulting files to the Trainium instance, and start the server. Once the service is running, you can send requests with an OpenAI-compatible client. The provided material identifies GLM-5.3-Flash as the first supported model and describes other models as planned additions.
Key features
- Provide an OpenAI-compatible API on a single trn2.48xlarge instance
- Run decoding with an NKI megakernel
- Maintain a prefix cache across device and host memory
- Build a compilation cache on an x86_64 host
- Support the GLM-5.3-Flash model