.. meta::
   :description: SGLang-Neuron documentation home. Serve LLMs on AWS Trainium3 and diffusion models on Trainium2 with SGLang and the SGLang-Neuron plug-in container image.
   :keywords: SGLang, SGLang-Neuron, SGLang Diffusion, AWS Neuron, Trainium, Trn3, Trn2, LLM serving, disaggregated serving, container image
   :date-modified: 2026-11-16

.. _sglang-neuron-home:

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 <https://github.com/sgl-project/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
-------------------------

.. grid:: 1 2 2 2
   :gutter: 3

   .. grid-item-card:: What is SGLang-Neuron?
      :link: sglang-neuron-overview
      :link-type: ref
      :class-card: sd-border-2

      :bdg-info:`overview`
      ^^^
      What the plug-in does, how it fits in the Neuron stack, and when to use it.

   .. grid-item-card:: Supported models
      :link: sglang-neuron-supported-models-ref
      :link-type: ref
      :class-card: sd-border-2

      :bdg-info:`reference`
      ^^^
      The LLMs and diffusion models that SGLang-Neuron serves, with their instance types and layouts.

Get started
-----------

.. grid:: 1 2 2 2
   :gutter: 3

   .. grid-item-card:: Quickstart: Serve Qwen3-8B
      :link: sglang-neuron-quickstart
      :link-type: ref
      :class-card: sd-border-2

      :bdg-success:`quickstart`
      ^^^
      Start the container image on one trn3.48xlarge instance, serve Qwen3-8B, and send a chat request.

Tutorials
---------

.. grid:: 1 2 2 2
   :gutter: 3

   .. grid-item-card:: Disaggregated serving with GPT-OSS-120B
      :link: sglang-neuron-gpt-oss-disaggregated-tutorial
      :link-type: ref
      :class-card: sd-border-2

      :bdg-primary:`tutorial`
      ^^^
      Serve GPT-OSS-120B with a prefill server and a decode server on two Trn3 nodes.

   .. grid-item-card:: Multi-turn chat with Kimi-K3
      :link: sglang-neuron-kimi-k3-multi-turn-tutorial
      :link-type: ref
      :class-card: sd-border-2

      :bdg-primary:`tutorial`
      ^^^
      Serve Kimi-K3 on a Trn3 UltraServer with DSPARK speculative decoding, and send a multi-turn conversation.

   .. grid-item-card:: Text to video with Wan2.2
      :link: sglang-neuron-wan22-text-to-video-tutorial
      :link-type: ref
      :class-card: sd-border-2

      :bdg-primary:`tutorial`
      ^^^
      Generate a 480p video from a text prompt with SGLang Diffusion on one trn2.48xlarge instance.

Reference
---------

.. grid:: 1 2 2 2
   :gutter: 3

   .. grid-item-card:: Feature compatibility
      :link: sglang-neuron-feature-compatibility-ref
      :link-type: ref
      :class-card: sd-border-2

      :bdg-info:`reference`
      ^^^
      The SGLang features that each model serves, and the features that the plug-in refuses.

   .. grid-item-card:: Configuration
      :link: sglang-neuron-configuration-ref
      :link-type: ref
      :class-card: sd-border-2

      :bdg-info:`reference`
      ^^^
      The container options, example script variables, and environment variables that SGLang-Neuron reads.

   .. grid-item-card:: Troubleshooting
      :link: sglang-neuron-tshoot
      :link-type: ref
      :class-card: sd-border-2

      :bdg-warning:`troubleshooting`
      ^^^
      Symptoms, causes, and fixes for common container, compile cache, and disaggregated serving problems.

Related information
-------------------

- :ref:`SGLang-Neuron release notes <sglang_rn>`
- :ref:`Inference on AWS Neuron <inference-home>`
- :ref:`vLLM Neuron <vllm-neuron-home>`
- `sglang-neuron repository on GitHub <https://github.com/sgl-project/sglang-neuron>`__
- `SGLang-Neuron container image in the Amazon ECR Public Gallery <https://gallery.ecr.aws/neuron/pytorch-inference-sglang-neuron>`__

.. toctree::
   :hidden:
   :maxdepth: 1

   Overview </sglang-neuron/about/index>
   Quickstart: Serve Qwen3-8B </sglang-neuron/get-started/quickstart-serve-qwen3>
   Tutorials </sglang-neuron/tutorials/index>
   Reference </sglang-neuron/reference/index>
