过去一年,我们继续扩展了 SGLang 支持的硬件范围,同时在发布当天支持新的开源模型,并在 Miles 中推出了强化学习(RL) rollout。现在,我们正在与 AWS 合作,将 SGLang 引入 AWS Trainium 。
随着前沿人工智能向异构硬件发展,AWS Trainium 代表了一个独特的机会。Trainium 由 AWS 专为 AI 打造,并以大规模云部署形式提供,旨在为高容量工作负载带来强劲的价格性能比。开源模型服务和 RL rollout 生成是典型示例:这两者均持续运行,而每个 token 的成本直接决定了团队能够部署的容量规模。我们的目标是让 SGLang 成为在 Trainium 上运行这些工作负载的首选选项之一。
在与 AWS 紧密合作以及结合 TorchNeuron 发布之际,我们宣布推出基于新发布的 TorchNeuron 构建的 SGLang Trainium 插件的测试版(beta)。该测试版支持在 Trainium 上进行推理服务和 RL rollout。
从头基于 TorchNeuron 构建
TorchNeuron 是 AWS 为 Trainium 打造的本地 PyTorch 后端。我们在 TorchNeuron 私有预览期间便开始开发 SGLang 的 Neuron 后端,这一决定塑造了整个工作进程。
由于 TorchNeuron 是原生 PyTorch,SGLang 的模型组件和核心抽象几乎原封不动地迁移到了 Trainium 上。Trainium 上的模型通过开发者在 GPU 上已使用的相同接口提供服务,使团队能够以最小的改动在工作负载于 GPU 和 Trainium 之间迁移。
为了获得额外性能,NKI(Neuron Kernel Interface)使我们能够在 PyTorch 工作流中编写自定义的 Trainium 内核。对于一个跨越众多硬件平台的项目,这为贡献者提供了熟悉的编程模型,并在需要性能时提供底层硬件控制。
测试版包含什么
该测试版支持在 AWS Trainium2 和 Trainium3 上的两种工作负载:LLM 推理服务和用于后训练的 RL rollout 生成。初始覆盖范围包括:
模型:Qwen3(密集型)、Qwen3-MoE-30B-A3B、DeepSeek-V2-Lite、GLM-4,以及 GLM-5.2/5.3,更多大型前沿模型的支持正在进行中。
功能:数据并行 / 张量并行 / 专家并行、Radix Cache、BF16 / FP8、异步调度器。
RL rollout:SGLang on Trainium 作为异构 RL 管道的 rollout 引擎,下文将详细描述。
我们将在测试版期间扩展模型和功能覆盖范围,并计划在今年晚些时候提供更广泛的可用性。
早期预览:异构 RL
除了推理服务外,Trainium 还启用了 RL 后训练的新配置。每个 RL 步骤由两个不同的阶段组成:rollout 生成(一种以解码为主的推理工作负载)和策略更新(一种训练工作负载)。大多数团队在同一个 GPU 集群上运行这两个阶段,但它们对硬件提出的要求各不相同。
SGLang Trainium 插件允许这些阶段在不同的硬件上运行。在我们的首次端到端运行中,SGLang 在 Trainium3 上为 Qwen3-MoE-30B-A3B 生成了 rollout,而我们的 RL 后训练框架 Miles 使用 Megatron 在单个 H200 节点上训练 GRPO 策略。Miles 将 SGLang on Trainium 作为外部 rollout 引擎进行连接,该配置完成了稳定的训练运行。
这种方法使团队在规划 RL 容量时拥有更大的灵活性。可以根据价格性能为每个阶段选择硬件,并且 Trainium 上的 rollout 容量可以独立于 GPU 训练规模进行扩展。
这是一个早期里程碑。Trainium 上的性能优化工作仍在进行中,我们将在十一月的 SGLang Summit 上分享更新。
加入测试版
初始测试版仅限于一小部分团队,以便我们能够与每位参与者紧密合作。它非常适合以下团队:
在 Trainium2 或 Trainium3 上运行或计划运行 LLM 推理
对异构 RL 感兴趣,即在 Trainium 上进行 rollout,在 GPU 上进行训练
如需申请访问权限,请联系我们 。
Over the past year, we have continued to expand the hardware SGLang supports, alongside launch-day support for new open models and RL rollouts in Miles . Now, we are collaborating with AWS to bring SGLang to AWS Trainium .
As frontier AI moves toward heterogeneous hardware, AWS Trainium represents a unique opportunity. Purpose-built by AWS for AI and available at scale in the cloud, Trainium is designed to deliver strong price-performance for high-volume workloads. Open-model serving and RL rollout generation are prime examples: both run continuously, and cost per token directly determines how much capacity teams can deploy. Our goal is to make SGLang a first-class option for running these workloads on Trainium.
In close collaboration with AWS, and in conjunction with the TorchNeuron launch, we are announcing the beta of the SGLang Trainium plugin , built on the newly released TorchNeuron. The beta enables both inference serving and RL rollouts on Trainium.
Built on TorchNeuron from the start
TorchNeuron is AWS's native PyTorch backend for Trainium. We began building SGLang's Neuron backend on TorchNeuron during its private preview, and that decision shaped the entire effort.
Because TorchNeuron is native PyTorch, SGLang's model components and core abstractions carried over to Trainium largely intact. Models on Trainium are served through the same interface developers already use on GPUs, allowing teams to move workloads between GPUs and Trainium with minimal changes.
For additional performance, NKI (the Neuron Kernel Interface) enables us to write custom Trainium kernels within the PyTorch workflow. For an open-source project spanning many hardware platforms, this gives contributors a familiar programming model, along with low-level hardware control where performance requires it.
What's in the beta
The beta supports two workloads on AWS Trainium2 and Trainium3: LLM inference serving and RL rollout generation for post-training. Initial coverage includes:
Models: Qwen3 (dense), Qwen3-MoE-30B-A3B, DeepSeek-V2-Lite, GLM-4, and GLM-5.2/5.3, with support for more large frontier models in progress.
Features: Data Parallel / Tensor Parallel / Expert Parallel, Radix Cache, BF16 / FP8, Async scheduler.
RL rollouts: SGLang on Trainium as the rollout engine for heterogeneous RL pipelines, described below.
We will expand model and feature coverage over the course of the beta, with broader availability planned for later this year.
Early preview: heterogeneous RL
In addition to inference serving, Trainium enables a new configuration for RL post-training. Each RL step consists of two distinct phases: rollout generation, an inference workload dominated by decoding, and policy updates, a training workload. Most teams run both phases on the same GPU cluster, but they place different demands on hardware.
The SGLang Trainium plugin allows these phases to run on different hardware. In our first end-to-end run, SGLang generated rollouts for Qwen3-MoE-30B-A3B on Trainium3, while Miles, our RL post-training framework, trained the GRPO policy with Megatron on a single H200 node. Miles connects to SGLang on Trainium as an external rollout engine, and the setup completed a stable training run.
This approach gives teams greater flexibility in planning RL capacity. Hardware can be selected for each phase based on its price-performance, and rollout capacity on Trainium can scale independently of the GPU training footprint.
This is an early milestone. Performance work on Trainium is ongoing, and we will share updates at SGLang Summit in November.
Join the beta
The initial beta is limited to a small group of teams so that we can work closely with each participant. It is well suited to teams that:
Run, or plan to run, LLM inference on Trainium2 or Trainium3
Are interested in heterogeneous RL, with rollouts on Trainium and training on GPUs
To request access, please contact us .
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-10-24 | 7.22 | 75 | 入选 |
| 2026-10-23 | 7.95 | 72 | 未入选 |