인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

training-utilities-and-rlhf

training-utilities-and-rlhf

Use torchtune training utilities, checkpointers, precision, memory/distributed helpers, logging/profiling, schedulers, and RLHF/GRPO utilities safely.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: training-utilities-and-rlhf description: "Use torchtune training utilities, checkpointers, precision, memory/distributed helpers, logging/profiling, schedulers, and RLHF/GRPO utilities safely." disable-model-invocation: true metadata: disco-role: operating license: BSD 3-Clause

training-utilities-and-rlhf

Use this sub-skill when a torchtune task is about checkpoint format/resume mechanics, precision or dtype choices, memory and distributed utility behavior, metric logging, profiling, LR schedulers, RLHF sequence/reward utilities, or the experimental GRPO/async RL boundaries.

Route Here For

  • Choosing or debugging FullModelHFCheckpointer, FullModelMetaCheckpointer, FullModelTorchTuneCheckpointer, DistributedCheckpointer, resume state, or async checkpointing.
  • Explaining get_dtype, set_seed, distributed backend selection, activation checkpointing/offloading, optimizer-in-backward, memory stats, profiler config, or cosine warmup scheduling.
  • Selecting metric loggers such as DiskLogger, StdoutLogger, WandBLogger, CometLogger, TensorBoardLogger, or MLFlowLogger and their optional dependency implications.
  • Using public torchtune.rlhf sequence/log-prob/reward helpers for PPO/DPO/GRPO-style pipelines.
  • Treating torchtune.dev.grpo and torchtune.dev.rl as experimental code with extra Ray/vLLM/async RL requirements.

Safe Workflow

  1. Run the bundled runtime preflight before planning distributed or RL jobs: python scripts/check_training_runtime.py.
  2. Match checkpoint component to source format first, then align checkpoint_dir, checkpoint_files, model_type, output_dir, and resume flags.
  3. Check dtype/device support with get_dtype(dtype, device) semantics before assuming bf16 or optional quantization paths work.
  4. For distributed runs, choose recipe/launch shape in post-training-recipes, then use this sub-skill for backend, rank/env, and checkpoint utility behavior.
  5. For RLHF internals, prefer public torchtune.rlhf utilities and config-referenced losses; do not depend on unstable torchtune.dev APIs unless the user explicitly accepts experimental constraints.

Read Next

  • Checkpointing and training utilities for checkpointer constructors, precision, memory, distributed, schedulers, logging, and profiling details.
  • RLHF and GRPO for public RLHF utility signatures, DPO/PPO loss caveats, and experimental GRPO/async RL boundaries.
  • Troubleshooting for checkpoint mismatches, resume/async failures, dtype/device errors, optional logger deps, profiler output, RLHF import issues, and async RL constraints.
  • post-training-recipes for selecting and adapting recipe/config names without importing recipes.
  • data-and-datasets for DPO/preference dataset row schemas.
  • inference-evaluation-quantization when a trained checkpoint becomes an inference, evaluation, or quantization input.

Bundled Helper

  • scripts/check_training_runtime.py reports Python, torch, CUDA/MPS/XPU availability, torchao import health, torchtune training/RLHF import health, the current torchtune.rlhf.loss status, and optional async RL packages. It does not initialize distributed process groups, load checkpoints, start Ray/vLLM, or run training.

Guardrails

  • Do not import recipes; use tune run, tune cp, tune cat, tune validate, registry names, or CLI/runpy behavior through sibling skills.
  • Do not launch distributed training, Ray, vLLM, W&B, Comet, or checkpoint downloads as a diagnostic without explicit user approval.
  • Do not assume torchtune.dev APIs are stable; they are experimental and may change without compatibility guarantees.
  • Do not leak local machine paths, tokens, environment names, or review artifact paths into reusable configs or public skill content.
저장한 Skills