torchforge-rl-training

Automate distributed RL training orchestration for PyTorch-native workflows.

1.0k|117|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/OpenLAIR/dr-claw --skill torchforge-rl-training-openlair
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: torchforge-rl-training
Source: https://github.com/OpenLAIR/dr-claw/tree/main/skills/post-training/torchforge
Command: npx skills add https://github.com/OpenLAIR/dr-claw --skill torchforge-rl-training-openlair

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

TorchForge addresses the complexity of building scalable RL experiments by cleanly separating infrastructure from algorithms, automating distributed training, inference, and weight synchronization so researchers can focus on algorithmic improvements.

Core Features & Use Cases

  • Algorithm isolation: implement RL algorithms without touching distributed infra.
  • Scalable training: Monarch-based distributed execution across GPUs/nodes with PyTorch-native stack.
  • Production-ready workflows: seamless integration with TorchTitan for training and vLLM for inference, plus built-in loss functions (GRPO, DAPO, SAPO) and sampling utilities.
  • Use Case: Researchers prototyping new RL methods on large models and datasets with minimal boilerplate.

Quick Start

Run a GRPO training workflow using the config/grpo_math.yaml.

Frequently Asked Questions about torchforge-rl-training

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate distributed reinforcement learning training with PyTorch?

Automate distributed reinforcement learning training by using TorchForge to orchestrate execution across GPUs and nodes. It isolates algorithms from infrastructure, handling weight synchronization and distributed training automatically so you can focus on experimentation.

Can I use vLLM for inference and TorchTitan for training in the same RL workflow?

Yes, vLLM for inference and TorchTitan for training integrate seamlessly within the same RL workflow. TorchForge provides production-ready orchestration, connecting the PyTorch-native training stack with vLLM inference without manual pipeline wiring.

How does algorithm isolation work for scalable RL experiments?

Algorithm isolation works by cleanly separating your RL algorithm implementation from the distributed infrastructure. TorchForge manages Monarch-based execution, weight synchronization, and node communication, letting you prototype algorithms without touching distributed systems code.

What built-in loss functions are available for reinforcement learning?

The built-in loss functions available for reinforcement learning include GRPO, DAPO, and SAPO. These are integrated natively into TorchForge alongside sampling utilities, allowing rapid prototyping of RL methods on large models.

Is Monarch required for distributed RL training across multiple nodes?

Monarch is required for scalable, distributed execution across multiple GPUs and nodes. TorchForge relies on Monarch to manage the distributed infrastructure, ensuring your PyTorch-native RL training scales efficiently across your hardware environment.

What's the best way to start a GRPO training workflow?

The best way to start a GRPO training workflow is to run the provided configuration file, config/grpo_math.yaml. This quick start approach leverages TorchForge to automatically handle the orchestration, allowing immediate experimentation with minimal boilerplate.