Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
MarkTechPost · 2026/8/2 06:21:26

NVIDIA AI Releases Molt: A PyTorch-Native Agentic Reinforcement Learning Framework

AI 中文解读
NVIDIA这次发布的Molt框架,最吸引人的地方在于它把强化学习代码压缩到了8.6K行,让研究人员和AI助手都能轻松读透,彻底告别动辄数万行的复杂工程。 简单来说,Molt是给AI“自我进化”用的训练工具。传统方法里,研究员想改个算法细节,得费劲折腾训练、分布、数据流水线等一堆配套代码。而Molt简化了这一切,把整个训练流程打包得干净利落,类似把一间堆满杂物的实验室整理成一张清晰的操作台。它支持多轮对话、代码执行、视觉任务等场景,但需要至少两台配备8张H100的高端服务器,所以主要面向有强大算力的机构和实验室。 对普通人来说,这项技术短期内不会直接出现在手机上,但它能帮企业训练出更聪明的AI助手——比如更会订机票、写代码或做分析的工具。长远看,降低研究门槛意味着更多团队能搞AI创新,未来我们用的智能产品可能会更懂人话、更会干活,而背后的研发成本也会随之下降。
Agentic reinforcement learning research is constant algorithm modification. New estimators, new pipeline stages, new rollout schemes. In mainstream frameworks each change threads through layers of trainer, distributed backend, and rollout glue. That cost lands on the researcher at every iteration. Molt, from NVIDIA’s NeMo team, targets that cost directly. Its a PyTorch-native agentic RL framework with an unusual design target. The codebase should be compact enough for a researcher to hold in their head, and for an AI coding assistant to read and reason about in its entirety. The stated footprint is roughly 8.6K lines of RL code, measured by tracing the import graph from each framework’s RL entry point. The same method counts about 62K lines for verl, 25K for slime, and 7.2K for OpenRLHF. Is it deployable? Yes. Molt ships under Apache 2.0 with launch codes, Slurm scripts, and a prebuilt container. But the research paper positions it as research infrastructure, not a production training service, and hardware is the real gate. The shipped recipes assume 2 nodes of 8 H100 GPUs, split 8 for training and 8 for rollout. That puts Molt in reach of frontier and frontier-adjacent labs, well-funded AI startups doing post-training, enterprise AI research groups in finance, healthcare, and robotics that train agents against proprietary environments, and academic labs with multi-node H100/H200 access. Applications include multi-turn tool-use agents, code-execution agents, vision-language environments (the shipped geo3k recipe), LLM-as-judge reward loops, and on-policy distillation onto a smaller student. Three components, one loop Molt composes Ray for placement and asynchronous queues, vLLM for rollout, and NVIDIA AutoModel with FSDP2 for training. None of the three is forked, so upstream improvements arrive as a container pin rather than a rebase. The runtime is an agent pool, a set of vLLM engines behind a request router, and a single trainable policy actor. A streaming pool keeps prompt groups in flight so engines never drain while the actor trains. Partial rollout pauses the engines, broadcasts actor shards over NCCL directly to each engine, and resumes retained requests instead of discarding them. The agent is an ordinary program An RL run names one Python module that exports an AgentRunner. Everything else is ordinary code, including the reward. Two forms are supported. With Env, the framework owns the LLM loop in a Gymnasium-aligned step(). With ChatAgent, the user owns the loop through a stock OpenAI or Anthropic SDK. Molt launches a loopback server that speaks both wire protocols, and every request decodes server-side into one token-exact accumulation. When a long-horizon agent compacts its context and rewrites the prefix, the server seals the current segment and opens a fresh one automatically. Never train on a token you did not generate Three correctness invariants organize the design. Token identity: sampled token ids define the trajectory, not a retokenized transcript. Policy-version semantics: trainable tokens keep their behavior-policy log-probabilities, and asynchronous use is corrected per token behind a sequence-level gate. Forward consistency: rollout and actor must agree on model semantics. For mixture-of-experts policies, the last invariant matters most. The rollout and training routers select experts independently, and small numerical differences can flip top-k choices. Molt applies rollout routing replay, where vLLM returns its per-token expert ids and the training forward replays them. Interactive explainer (function(){window.addEventListener("message",function(e){ if(!e.data||typeof e.data.mtpMoltHeight!=="number")return; var f=document.getElementById("mtp-molt-frame"); if(f)f.style.height=Math.max(560,e.data.mtpMoltHeight)+"px"; });})(); Key Takeaways Molt is an Apache-2.0 agentic RL framework in about 8.6K lines of RL code, roughly 7×
分享
阅读原文
NVIDIA AI Releases Molt: A PyTorch-Native Agentic Reinforcement Learning Framework | BriefSum AI 情报