AI Cloud Architect

Deploy frontier AI models on AWS Trainium with SGLang-Neuron

AWSHow-to by Alex Nails, Lingyan Hao, Pinak Panigrahi and Yihao WangAWS Artificial Intelligence Blog

SGLang-Neuron is now publicly available through an AWS Deep Learning Container. With SGLang-Neuron, you can serve models and generate reinforcement learning rollouts with SGLang on AWS Trainium using the same SGLang interface you already know, all running on native PyTorch.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

SGLang-Neuron, an out-of-tree plugin, lets you serve models and generate RL rollouts with SGLang on AWS Trainium, using the same SGLang server interface, via an AWS Deep Learning Container.

Who it is for

Teams serving open-weight models on Trainium3 instances who already use SGLang and want to keep its workflow.

Key points

  • Enabled by setting SGLANG_PLATFORM=neuron when launching the SGLang server.
  • Runs on native PyTorch; kernels use the Neuron Kernel Interface (NKI) and torch.compile.
  • Supports PD disaggregation with prefill and decode servers transferring KV cache over NIXL on EFA.
  • Walkthrough uses gpt-oss-120b with tensor and expert parallel size 8 on a Trainium3 EC2 instance.

The same at other vendors

Timeline

Posts about AWS Trainium, oldest first.

  1. How-toAccelerating decode-heavy LLM inference with speculative decoding on AWS Trainium and vLLM · AWS · How-to
  2. Update to an existing featureAWS Neuron SDK 2.29.0 now available with NKI and Neuron Explorer out of Beta, a new CPU Simulator, and an expanded NKI Library · AWS · Release note
  3. New featureAWS Neuron SDK now available with Neuron Agentic Development for NKI kernel development on Trainium · AWS · Announcement
  4. How-toStop hand-tuning kernels: How Neuron Agentic Development accelerates AWS Trainium optimizations · AWS · How-to
  5. How-toHow Deepgram optimized voice AI at scale with AWS Trainium · AWS · How-to
  6. PreviewAWS announces TorchNeuron: Native PyTorch Support for AWS Trainium (Public Beta) · AWS · Announcement
  7. How-toBeyond the KV cache: Training and serving i14’s Laplace 3B linear attention model on AWS Trainium2 with native PyTorch · AWS · How-to
  8. How-toTrain Qwen3 on AWS Trainium with torchtitan · AWS · How-to
  9. This postDeploy frontier AI models on AWS Trainium with SGLang-Neuron
Show all 10 posts
  1. Customer storySplash Music transforms music generation using AWS Trainium and Amazon SageMaker HyperPod · AWS · Customer story
  2. How-toAccelerating decode-heavy LLM inference with speculative decoding on AWS Trainium and vLLM · AWS · How-to
  3. Update to an existing featureAWS Neuron SDK 2.29.0 now available with NKI and Neuron Explorer out of Beta, a new CPU Simulator, and an expanded NKI Library · AWS · Release note
  4. New featureAWS Neuron SDK now available with Neuron Agentic Development for NKI kernel development on Trainium · AWS · Announcement
  5. How-toStop hand-tuning kernels: How Neuron Agentic Development accelerates AWS Trainium optimizations · AWS · How-to
  6. How-toHow Deepgram optimized voice AI at scale with AWS Trainium · AWS · How-to
  7. PreviewAWS announces TorchNeuron: Native PyTorch Support for AWS Trainium (Public Beta) · AWS · Announcement
  8. How-toBeyond the KV cache: Training and serving i14’s Laplace 3B linear attention model on AWS Trainium2 with native PyTorch · AWS · How-to
  9. How-toTrain Qwen3 on AWS Trainium with torchtitan · AWS · How-to
  10. This postDeploy frontier AI models on AWS Trainium with SGLang-Neuron