JAX 分布式强化学习库 boonta 开源:从 CartPole 到 LLM 后训练一套代码
Abstractions for Scaling Reinforcement Learning in JAX
一套 JAX 写的 RL 库,同一份代码既能跑 CartPole 也能用 GRPO 后训练 Qwen3,还开源了。如果你的团队在 LLM 后训练里折腾过环境隔离和 GPU 扩缩问题,可以拿它和 Stoix、PureJaxRL 比一比。
论文介绍了 boonta,一个基于 JAX 的分布式强化学习库,目标是把 RL 训练从经典控制任务统一到 LLM 后训练场景。其核心思路是把扩缩容技术从算法和环境实现中剥离出来,训练循环、网络和数据源内置多 GPU 训练、异步采样、低精度计算和自定义 kernel 支持,因此同一份算法代码可以从 CartPole 一路跑到语言模型后训练。
论文给出三个具体验证:PPO 在 Craftax-Classic 上可扩展到单节点多 GPU;循环行为克隆实现能预训练 GPT-2;循环版 GRPO 用工具调用方式后训练 Qwen3 玩猜数字游戏,全程无需改动算法本身。性能方面,在相同设置下 boonta 在多数基准上与 Stoix 持平,大 batch 场景下凭借扩缩容技术速度更快。
对做 LLM 后训练的工程团队来说,RL 基础设施长期分散在 Draccus、openpi 等各自为政的代码库里,boonta 提供了一套 Apache 2.0 开源的统一抽象,值得和 Stoix、PureJaxRL 对比评估。
Abstractions for Scaling Reinforcement Learning in JAX
Reinforcement learning (RL) is no longer confined to games and simulated control but has become central to the post-training of large language and vision-language-action models. We present boonta, a distributed RL library in JAX that unifies these settings under one set of abstractions, which keep the techniques for scaling out of algorithms and environments. Its training loops, networks and data sources provide multi-GPU training, asynchronous collection, reduced precision and custom kernels, so the same algorithm implementation runs from CartPole to the post-training of a language model. PPO on Craftax-Classic scales across the GPUs of a node, the recurrent behavior cloning implementation pretrains GPT-2, and recurrent GRPO post-trains Qwen3 to play a number-guessing game through tool calls, all without changing the algorithms. With the same settings, boonta matches the throughput of Stoix on most benchmarks, and its scaling techniques make it faster with large batches. The code is released under the Apache 2.0 license at https://github.com/noahfarr/boonta.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:boonta、JAX、GRPO、Qwen3,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Noah Farr),经 AITOP 多维评分管线结构化提炼。