Meta's torchforge separates RL infrastructure from algorithms so you can experiment with GRPO, DAPO, or custom losses without rebuilding distributed plumbing. It wires together TorchTitan for training, vLLM for inference, and Monarch for actor coordination, letting you define reward functions and loss logic while it handles the weight syncing and GPU orchestration. You need at least 3 GPUs to run GRPO training, and the library is explicitly experimental with changing APIs. If you're prototyping agentic RL in PyTorch and want clean abstractions over the usual Ray-based stacks, this is worth trying. For production stability, Meta suggests looking at miles or verl instead.

skills.sh installs
1K
GitHub stars
14.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill torchforge-rl-training --agent claude-code

Installs into .claude/skills of the current project.

Files

torchforge: PyTorch-Native Agentic RL Library

torchforge is Meta's PyTorch-native RL library that separates infrastructure concerns from algorithm concerns. It enables rapid RL research by letting you focus on algorithms while handling distributed training, inference, and weight sync automatically.

When to Use torchforge

Choose torchforge when you need:

  • Clean separation between RL algorithms and infrastructure
  • PyTorch-native abstractions (no Ray dependency)
  • Easy algorithm experimentation (GRPO, DAPO, SAPO in ~100 lines)
  • Scalable training with Monarch actor system
  • Integration with TorchTitan for model parallelism

Consider alternatives when:

  • You need production-ready stability → use miles or verl
  • You want Megatron-native training → use slime
  • torchforge is experimental and APIs may change

Key Features

  • Algorithm isolation: Implement RL algorithms without touching infrastructure
  • Scalability: From single GPU to thousands via Monarch
  • Modern stack: TorchTitan (training), vLLM (inference), TorchStore (sync)
  • Loss functions: GRPO, DAPO, CISPO, GSPO, SAPO built-in

Architecture Overview

Sponsors

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
DevOps & CI/CD, AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from orchestra-research/ai-research-skills

All 95
1orchestra-research avatarnemo-evaluator-sdkorchestra-research/ai-research-skillsEvaluates LLMs across 100+ benchmarks from 18+ harnesses (MMLU, HumanEval, GSM8K, safety, VLM) with multi-backend execution. Use when needing scalable evaluatio1Kskills.sh installs
2databricks avatardatabricks-jobsdatabricks/databricks-agent-skillsDevelop and deploy Lakeflow Jobs on Databricks via DABs, Python SDK, or the CLI. Use when creating data engineering jobs with notebooks, Python wheels, SQL, dbt1Kskills.sh installs
3cursor avatarcreate-learning-pathcursor/pluginsBuild a personalized learning roadmap with milestones and practice checkpoints1Kskills.sh installs
4secondsky avatarsap-btp-connectivitysecondsky/sap-skillsSAP BTP Connectivity skill covering Destination Service, Connectivity Service, Cloud Connector, Connectivity Proxy, and Transparent Proxy for Kubernetes. Use wh1Kskills.sh installs
5datadrivenconstruction avatarwarranty-trackerdatadrivenconstruction/ddc_skills_for_ai_agents_in_constructionTrack and manage construction warranties. Monitor expiration dates, claims, and manufacturer documentation.1Kskills.sh installs
6forcedotcom avatarapplying-sldsforcedotcom/sf-skillsApply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Ligh1Kskills.sh installs