跳到正文
arXiv (AI + Vision + Imaging)· Jian Hu, Huiying Li, Hao Zhang, Binfeng Xu, Yifan Zhang, Shaokun Zhang, Hemil Desai, Michael Demoret, Pavlo Molchanov, Jan Kautz, Yi Dong·· 6 天前精选AI 评分55

MOLT:面向智能体强化学习的 Hugging Face 原生轻量可扩展框架

MOLT: A Hugging Face-Native, Minimal, and Scalable Framework for Agentic Reinforcement Learning

AI 导读

研究团队发布开源框架 MOLT,整个强化学习路径约 9.2K 行 Python,只含一个训练后端和一个 rollout 引擎,可直接读取并修改实际运行的代码。Hugging Face checkpoint 直接载入 PyTorch FSDP2 训练器,支持张量、专家与上下文并行,同一套代码覆盖 4B 到 753B 模型,新模型家族无需桥接代码。

推荐理由

MOLT 用约 9.2K 行 Python 打通从 4B 到 753B 模型的异步强化学习训练,为智能体 RL 研究提供了可读可改的轻量框架。

正文 · 原文

arXiv:2607.21653v4 Announce Type: replace Abstract: Agentic reinforcement learning (RL) research iterates quickly on agents, rewards, and learning algorithms, while policies have grown to hundreds of billions of parameters and beyond. Existing open frameworks force a choice: those that are easy to modify do not scale to the largest models, and those that scale rely on Megatron, which needs dedicated bridge code for every model family and several times more framework code. We present MOLT, an open-source framework built for research that is Hugging Face-native, minimal, and scalable. Its code is easy to modify: the entire RL path is approximately 9.2K lines of Python with one training backend and one rollout engine, so a researcher or an AI coding agent can read it in full and edit the code that actually runs. A Hugging Face checkpoint is loaded directly into a PyTorch FSDP2 trainer with tensor, expert, and context parallelism, so a new model family needs no bridge, and the same code scales from a 4B model to a 753B one. Existing OpenAI- and Anthropic-SDK agents are trained by redirecting their client, with automatic handling of agents that rewrite their own context; training is fully asynchronous; and trajectory data stay in a distributed object store. With MOLT, a 30B mixture-of-experts tool agent trains stably for 1,464 asynchronous updates, a visual computer-use agent improves on OSWorld, asynchronous training is 2.40 times faster than synchronous training, and pipeline throughput reaches 92% of a Megatron-based stack. Its trainer, NeMo AutoModel, trains models of one to 2.8 trillion parameters.

来源:arXiv (AI + Vision + Imaging) · arxiv.org