字节跳动开源异步RL后训练框架Laminar,SWE-bench得分52.2%
ByteDance Researchers Open-Sources Laminar, an Async Reinforcement Learning RL Post-Training Framework
做Agent RL的同学必看,这套异步架构把GPU耗时砍了六成多,直接拿你的链路压测一遍。
Researchers from The University of Hong Kong and ByteDance Seed have open-sourced Laminar. Laminar is an reinforcement learning RL post-training framework for LLMs and long-horizon agents. The core idea is simple: stop forcing every trajectory and every GPU to wait for the slowest one. For teams training coding agents with long, skewed rollouts, that is where most GPU time goes.
香港大学与字节跳动 Seed 的研究人员开源了 Laminar。Laminar 是一个用于大语言模型(LLM)和长视界智能体的强化学习(RL)后训练框架。其核心理念很简单:不再强制每条轨迹和每个 GPU 都等待最慢的那个。对于使用长且偏斜的 rollout 来训练代码智能体的团队而言,大部分 GPU 时间都消耗在此处。
TL;DR
TL;DR(太长不看版)
- What: A framework. Tested on Qwen3-Coder-30B-A3B-Instruct (30.5B total, 3.3B active) and Qwen2.5 at 7B, 32B and 72B.
- Runs on: Multi-node NVIDIA GPU clusters with Ray and CUDA. Tested on 64x H800 and up to 1024 H800 GPUs. vLLM for inference, Megatron-LM or FSDP2 for training.
- Performance: Strong end-to-end gains on SWE agent RL and up to 5.48x throughput in the paper.
- Best: 52.2% on SWE-bench Verified, up from 46.6% for the base model.
- Worst: Early repo (1 commit at launch), vLLM is the only listed inference backend, and per-step async checkpointing is still in progress.
- Bottom line: Best: fewer samples and GPU-hours to a higher SWE-bench score. Worst: the headline comparison mixes H800 and H100 hardware.
- 是什么:一个框架。已在 Qwen3-Coder-30B-A3B-Instruct(总计 305 亿参数,活跃 33 亿参数)以及 7B、32B 和 72B 规模的 Qwen2.5 上进行了测试。
- 运行环境:基于 Ray 和 CUDA 的多节点 NVIDIA GPU 集群。在 64 块 H800 及多达 1024 块 H800 GPU 上进行了测试。推理使用 vLLM,训练使用 Megatron-LM 或 FSDP2。
- 性能:在 SWE 智能体 RL 方面实现了显著的端到端提升,论文中吞吐量最高达 5.48 倍。
- 最佳表现:在 SWE-bench Verified 上达到 52.2%,较基础模型的 46.6% 有所提升。
- 最差表现:早期仓库(发布时仅 1 次提交),vLLM 是唯一列出的推理后端,且每步异步检查点仍在进行中。
- 总结:最佳情况是用更少的样本和 GPU 小时数获得更高的 SWE-bench 分数。最差情况是标题中的比较混合使用了 H800 和 H100 硬件。
What is Laminar?
什么是 Laminar?
Laminar is an asynchronous RL post-training framework that decouples rollout, buffering, training and weight transfer into independent loops. It is built on verl and Uni-Agent and released under Apache-2.0.
Laminar 是一个异步 RL 后训练框架,它将 rollout、缓冲、训练和权重传输解耦为独立的循环。它基于 verl 和 Uni-Agent 构建,并以 Apache-2.0 许可证发布。
The launch blog splits the stack into 3 layers. verl provides training and inference compute backends. Uni-Agent handles agent execution, tool calls and sandboxes. Laminar handles cluster-scale orchestration.
发布博客将技术栈分为三层。verl 提供训练和推理计算后端。Uni-Agent 处理智能体执行、工具调用和沙箱。Laminar 负责集群规模的编排。
How does Laminar’s architecture work?
Laminar 的架构是如何工作的?
The design rests on 3 principles: full decoupling, fine-grained asynchrony and fault tolerance.
该设计基于三个原则:完全解耦、细粒度异步性和容错性。
- Rollout loop: Drives agent interactions and serves generation across inference replicas.
- Experience buffer (data plane): Separates trajectory production from training and serves ready batches on demand.
- Training loop: Samples batches, computes advantages and off-policy corrections, and publishes weights.
- Weight Relay (weight plane): The trainer stages weights into per-node shared CPU memory and keeps going. Replicas pull updates on their own schedule.
- Rollout 循环:驱动智能体交互并在推理副本间提供服务生成。
- 经验缓冲区(数据平面):将轨迹生产与训练分离,并按需提供就绪批次。
- 训练循环:采样批次,计算优势函数和非策略校正,并发布权重。
- 权重中继(权重平面):训练器将权重暂存到各节点的共享 CPU 内存中并继续运行。副本按照自己的计划拉取更新。
In the research paper, relays are CPU processes, 1 per rollout machine. They broadcast weights along a pipelined RDMA chain. A 72B model reaches 127 other relays in under 1.6 seconds.
在研究论文中,中继是 CPU 进程,每个 rollout 机器一个。它们沿流水线 RDMA 链广播权重。72B 模型可在不到 1.6 秒内将权重分发给其他 127 个中继。
What is version-consistent rollout?
什么是版本一致的 rollout?
Most async systems use version-mixed partial rollout. They interrupt in-flight trajectories at each weight update and resume under the new policy. That forces repeated re-prefill.
大多数异步系统使用版本混合的渐进式部署。它们在每次权重更新时中断正在进行的轨迹,并在新策略下恢复。这会导致重复的前缀填充(re-prefill)。
Laminar also supports a version-consistent mode. Each trajectory finishes under 1 policy version. Replicas update independently, without a global weight-switch barrier. The blog states that this keeps the prefix KV cache intact. It argues re-prefill cost scales cubically with sequence length under frequent updates.
Laminar 还支持版本一致模式。每条轨迹都在同一个策略版本下完成。副本独立更新,无需全局权重切换屏障。博客指出,这能保持前缀 KV 缓存完整。它认为,在频繁更新的情况下,重前缀填充的成本随序列长度呈立方级增长。
Repack handles the tail. Once new weights exist, leftover old-version trajectories are consolidated onto fewer replicas. Drained replicas then load the new version immediately.
Repack 处理尾部情况。一旦存在新权重,剩余的旧版本轨迹会被整合到更少的副本上。随后,被排空的副本立即加载新版本。
How does Laminar perform on SWE-bench Verified?
Laminar 在 SWE-bench Verified 上的表现如何?
The research team trained Qwen3-Coder-30B-A3B-Instruct on SWE-rebench. They evaluated on all 500 SWE-bench Verified tasks with greedy decoding.
研究团队在 SWE-rebench 上训练了 Qwen3-Coder-30B-A3B-Instruct。他们使用贪婪解码对所有 500 个 SWE-bench Verified 任务进行了评估。
- Base model: 46.6% (233/500).
- Baseline peak (step 150, 64x H100): 51.4% with 76.4k samples and 5,085 GPU-hours.
- Laminar match (step 320, 64x H800): 51.4% with 41.0k samples (46% fewer) and 1,450 GPU-hours (71% fewer).
- Laminar peak (step 400, 64x H800): 52.2% with 51.2k samples (33% fewer) and 1,843 GPU-hours (64% fewer).
- 基础模型:46.6%(233/500)。
- 基线峰值(第 150 步,64x H100):51.4%,使用 76.4k 样本和 5,085 GPU 小时。
- Laminar 匹配结果(第 320 步,64x H800):51.4%,使用 41.0k 样本(减少 46%)和 1,450 GPU 小时(减少 71%)。
- Laminar 峰值(第 400 步,64x H800):52.2%,使用 51.2k 样本(减少 33%)和 1,843 GPU 小时(减少 64%)。
How does Laminar handle failures?
Laminar 如何处理故障?
Faults stay local. If a rollout replica fails, the router fences only that replica. It restarts, reloads weights from the local relay and resumes from its generated token prefix. A replica that fails during weight loading recovers without blocking the trainer. Trainer checkpoints align model state, prompt cursors and published weight versions.
故障保持局部性。如果某个 rollout 副本发生故障,路由器仅对该副本进行围栏隔离。该副本重启后,从本地中继重新加载权重,并从其生成的 token 前缀处继续执行。在权重加载期间发生故障的副本可以恢复,而不会阻塞训练器。训练器的检查点会对齐模型状态、提示光标和已发布的权重版本。
laminar.eval also evaluates several checkpoints at once across resident replicas, in batch or streaming mode during training.
laminar.eval 还可以在训练期间以批量或流式模式,同时在驻留副本上评估多个检查点。
Laminar vs verl vs AReaL vs slime
Laminar 与 verl、AReaL 和 slime 的对比
| Feature | Laminar | verl | AReaL | slime |
|---|---|---|---|---|
| Developer | HKU + ByteDance Seed | ByteDance Seed, verl community | Tsinghua IIIS + Ant Group | THUDM |
| License | Apache-2.0 | Apache-2.0 | Apache-2.0 | Apache-2.0 |
| Async mode | Trajectory-level, no global barrier | Sync default; fully async and 1-step off-policy (experimental) | Fully asynchronous | Async rollout, fully async example |
| Version-consistent rollout | Yes, plus version-mixed partial | Not disclosed | Not disclosed | Not disclosed |
| Inference backend | vLLM | vLLM, SGLang, HF | vLLM, SGLang | SGLang |
| Training backend | Megatron-LM, FSDP2 | FSDP, FSDP2, Megatron-LM | Megatron, FSDP, Archon | Megatron |
| Agentic RL | Via Uni-Agent | Multi-turn tool calling | Yes (coding, search, Tau2) | Yes (coding, search, multi-agent) |
| Fault tolerance | Replica, weight sync and trainer level | Not disclosed | Not disclosed | Documented |
| Key result | 52.2% SWE-bench Verified | Not disclosed | Not disclosed | Not disclosed |
| 特性 | Laminar | verl | AReaL | slime |
|---|---|---|---|---|
| 开发者 | HKU + ByteDance Seed | ByteDance Seed, verl 社区 | Tsinghua IIIS + Ant Group | THUDM |
| 许可证 | Apache-2.0 | Apache-2.0 | Apache-2.0 | Apache-2.0 |
| 异步模式 | 轨迹级,无全局屏障 | 同步默认;完全异步且单步离线策略(实验性) | 完全异步 | 异步 rollout,完全异步示例 |
| 版本一致的 rollout | 是,加上版本混合的部分 | 未披露 | 未披露 | 未披露 |
| 推理后端 | vLLM | vLLM, SGLang, HF | vLLM, SGLang | SGLang |
| 训练后端 | Megatron-LM, FSDP2 | FSDP, FSDP2, Megatron-LM | Megatron, FSDP, Archon | Megatron |
| Agentic RL | 通过 Uni-Agent | 多轮工具调用 | 是(编码、搜索、Tau2) | 是(编码、搜索、多智能体) |
| 容错性 | 副本、权重同步和训练器级别 | 未披露 | 未披露 | 已记录 |
| 关键结果 | SWE-bench Verified 达到 52.2% | 未披露 | 未披露 | 未披露 |
Key Takeaways
关键要点
- Laminar decouples rollout, training and weight sync into independent loops.
- Version-consistent rollout avoids re-prefill by finishing each trajectory on 1 policy.
- Qwen3-Coder-30B-A3B rose from 46.6% to 52.2% on SWE-bench Verified.
- It used 33% fewer samples and 64% fewer GPU-hours, on different GPUs than the baseline.
- The code is Apache-2.0 but early, with vLLM-only inference.
- Laminar 将 rollout、训练和权重同步解耦为独立的循环。
- 版本一致的 rollout 通过在单个策略上完成每条轨迹来避免重新预填充。
- Qwen3-Coder-30B-A3B 在 SWE-bench Verified 上的得分从 46.6% 提升至 52.2%。
- 与基线相比,它使用了少 33% 的样本和少 64% 的 GPU 小时数,且使用的 GPU 类型不同。
- 代码采用 Apache-2.0 许可证,但项目尚处于早期阶段,仅支持 vLLM 推理。
Check out the Paper, arXiv preprint, GitHub Repo and Technical Blog. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
查看论文、arXiv 预印本、GitHub 仓库和技术博客。您可以通过我们的 GPULeaderboard.com Chrome 扩展程序在此处查看部署选项和规格。
Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
此外,欢迎在 Twitter 上关注我们,别忘了加入拥有 15 万+成员的 ML SubReddit 并订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以加入我们的 Telegram 群组。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力