NVIDIA-NeMo/labs-molt
A scalable, agentic-first, and HuggingFace-native RL framework for research (9k lines).
What it solves
Molt provides a streamlined, scalable way to perform agentic reinforcement learning (RL) research. It eliminates the complexity of bridging different model formats by using a native Hugging Face and PyTorch stack, allowing researchers to move directly from supervised fine-tuning to large-scale RL training without converting weights or writing custom integration code.
How it works
The framework uses a "token-first" architecture where Ray manages asynchronous processes, vLLM handles model rollouts, and NeMo AutoModel with FSDP2 trains the actor. Because the model remains a standard PyTorch module throughout the entire process, the same checkpoint directory can be used for both training and inference. You define your agent's behavior—such as tool use, multi-turn conversations, or custom grading logic—using standard Python, and the framework handles the orchestration of training and data alignment.
Who it’s for
Molt is designed for AI researchers who need to scale agentic experiments from small models up to 1T-class Mixture-of-Experts (MoE) architectures. It is built for those who prioritize hackability, requiring a minimal codebase (~9.2K lines of RL code) that is easy to read and modify.
Highlights
- Agentic-first: Uses a Gymnasium-aligned API, allowing you to define rewards and agent logic in plain Python.
- Fully Asynchronous: Overlaps rollout, training, and weight synchronization to keep large models efficiently fed.
- Hugging Face Native: Models load as-is, with no conversion bridges required between the trainer and the inference engine.
- Frontier-Scale: Supports advanced parallelism (TP/EP/CP) and Adam CPU offloading, enabling training of massive models (e.g., 753B parameters) using the same entry point as smaller models.
- Minimal Surface: The entire RL graph is simple and explicit, making it easy to debug or extend.
Related
- Project
- Project
- Project
- Project
- Project