This document is relevant for: Trn2, Trn3

SGLang-Neuron: SGLang serving on Neuron#

Note

SGLang-Neuron is in public preview. Features, APIs, and supported models can change in later releases.

The SGLang-Neuron plug-in lets you serve models with SGLang on AWS Trainium. SGLang finds the plug-in through its entry points, and SGLANG_PLATFORM=neuron selects it. You use the standard SGLang launcher, flags, and OpenAI-compatible API. SGLang-Neuron serves large language models (LLMs) on Trn3 instances and multimodal diffusion models on Trn2 instances through SGLang Diffusion.

In this public preview, you run SGLang-Neuron from the container image that Neuron publishes in the Amazon ECR Public Gallery. The image contains SGLang, the plug-in, the Neuron SDK, and a patched NIXL for disaggregated serving. This page links to the overview, the quickstart, the tutorials, and the reference pages for SGLang-Neuron.

Applies to#

This section applies to:

  • Online LLM serving with an OpenAI-compatible API on trn3.48xlarge instances and Trn3 UltraServers.

  • Prefill-decode (PD) disaggregated serving over two or more Trn3 nodes.

  • Image and video generation with SGLang Diffusion on trn2.48xlarge instances.

Learn about SGLang-Neuron#

overview

What is SGLang-Neuron?

What the plug-in does, how it fits in the Neuron stack, and when to use it.

reference

Supported models

The LLMs and diffusion models that SGLang-Neuron serves, with their instance types and layouts.

Get started#

quickstart

Quickstart: Serve Qwen3-8B

Start the container image on one trn3.48xlarge instance, serve Qwen3-8B, and send a chat request.

Tutorials#

tutorial

Disaggregated serving with GPT-OSS-120B

Serve GPT-OSS-120B with a prefill server and a decode server on two Trn3 nodes.

tutorial

Multi-turn chat with Kimi-K3

Serve Kimi-K3 on a Trn3 UltraServer with DSPARK speculative decoding, and send a multi-turn conversation.

tutorial

Text to video with Wan2.2

Generate a 480p video from a text prompt with SGLang Diffusion on one trn2.48xlarge instance.

Reference#

reference

Feature compatibility

The SGLang features that each model serves, and the features that the plug-in refuses.

reference

Configuration

The container options, example script variables, and environment variables that SGLang-Neuron reads.

troubleshooting

Troubleshooting

Symptoms, causes, and fixes for common container, compile cache, and disaggregated serving problems.