跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Torchforge

技能 活跃

Provides guidance for PyTorch-native agentic RL using torchforge, Meta's library separating infra from algorithms. Use when you want clean RL abstractions, easy algorithm experimentation, or scalable training with Monarch and TorchTitan.

目的

To enable researchers and engineers to conduct PyTorch-native agentic RL experiments with clean abstractions, easy algorithm implementation, and scalable distributed training capabilities.

功能

  • PyTorch-native RL abstractions
  • Separation of RL algorithms from infrastructure
  • Scalable training with Monarch and TorchTitan
  • Easy algorithm experimentation (GRPO, SFT examples)
  • High-throughput inference with vLLM

使用场景

  • When needing clean RL abstractions independent of infrastructure
  • When experimenting with new RL algorithms in PyTorch
  • For scalable training of RL models using distributed systems like Monarch
  • When integrating with Meta's TorchTitan for model parallelism

非目标

  • Production-ready stability (considered experimental)
  • Megatron-native training (use alternative skills)
  • Replacing fully mature RL frameworks for production deployment

工作流

  1. Define Configuration (YAML)
  2. Define Reward Function (Python)
  3. Launch Training (Python script)
  4. Monitor Progress (W&B, metrics)

实践

  • RL Algorithm Implementation
  • Distributed Training
  • Model Experimentation
  • Scalable ML Systems

先决条件

  • Python 3.12+
  • 3+ GPUs recommended for GRPO training
  • PyTorch >= 2.9.0 (nightly)
  • Monarch, TorchTitan, vLLM

Practical Utility

  • warning:Production readinessThe SKILL.md explicitly states that torchforge is experimental and APIs may change, suggesting it's not fully production-ready for all use cases, although it covers the stated research purpose.

安装

请先添加 Marketplace

/plugin marketplace add Orchestra-Research/AI-Research-SKILLs
/plugin install AI-Research-SKILLs@ai-research-skills

质量评分

96 /100
1 day ago 分析

信任信号

最近提交17 days ago
星标8.3k
许可证MIT
状态
查看源代码

类似扩展

Pytorch Lightning

99

High-level PyTorch framework with Trainer class, automatic distributed training (DDP/FSDP/DeepSpeed), callbacks system, and minimal boilerplate. Scales from laptop to supercomputer with same code. Use when you want clean training loops with built-in best practices.

技能
Orchestra-Research

Huggingface Accelerate

99

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

技能
davila7

Ray Train

99

Distributed training orchestration across clusters. Scales PyTorch/TensorFlow/HuggingFace from laptop to 1000s of nodes. Built-in hyperparameter tuning with Ray Tune, fault tolerance, elastic scaling. Use when training massive models across multiple machines or running distributed hyperparameter sweeps.

技能
Orchestra-Research

Verl Rl Training

99

Provides guidance for training LLMs with reinforcement learning using verl (Volcano Engine RL). Use when implementing RLHF, GRPO, PPO, or other RL algorithms for LLM post-training at scale with flexible infrastructure backends.

技能
Orchestra-Research

Openrlhf Training

99

High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.

技能
Orchestra-Research

TorchTitan Distributed LLM Pretraining

99

Provides PyTorch-native distributed LLM pretraining using torchtitan with 4D parallelism (FSDP2, TP, PP, CP). Use when pretraining Llama 3.1, DeepSeek V3, or custom models at scale from 8 to 512+ GPUs with Float8, torch.compile, and distributed checkpointing.

技能
Orchestra-Research