计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
trlx【效率与协作】Guides trlX LLM post-training, RLHF, Accelerate, configuration, sweeps, and optional NeMo/Megatron workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task involves trlX (trlx), the CarperAI Transformer Reinforcement Learning X package for fine-tuning language models with RLHF-style workflows.
trlx.train usage, signatures, argument modes, callbacks, and trainer return objects.TRLConfig/YAML/default config editing, trainer/method/pipeline matching, optimizer/scheduler names, and data pipeline contracts.python -m trlx.sweep and trlX dot-path config updates..nemo or rank-sharded checkpoints, and NeMo config wiring.| If the task mentions... | Go to |
|---|---|
trlx.train, reward_fn, prompts, samples, rewards, PPO, ILQL, SFT, RFT, PEFT, checkpoints, Accelerate, DeepSpeed, or sweeps | training sub-skill |
NeMo, Megatron, Apex, .nemo, NeMoPPOTrainer, NeMoILQLTrainer, NeMoSFTTrainer, PPOGPT, ILQLGPT, SFTGPT, mp_rank_XX, or NeMo YAMLs | nemo sub-skill |
| Package purpose, install shape, supported algorithms/backends, root route selection, or verified inspection facts | package overview |
| Import failures, dependency conflicts, CUDA/DeepSpeed setup, missing NeMo, W&B/Ray import behavior, or launcher environment mismatch | root troubleshooting |
| Staleness, source commit, package version, evidence paths, or whether to refresh this skill | repo provenance |
For full training stacks, use a Python 3.9-3.11 environment. Install a CUDA-capable PyTorch matching the host hardware when GPU training is needed, then install trlX from a public source or a current checkout. A typical source-checkout path is:
python -m pip install -r requirements.txt
python -m pip install -e .
When installing directly from the public repository, install the appropriate PyTorch wheel first because trlX's package metadata does not fully replace the repository's pinned runtime requirements.
After installation, run the bundled safe helper from this skill tree:
python scripts/check_trlx_install.py
python scripts/check_trlx_install.py --cuda
python scripts/check_trlx_install.py --json
The helper imports trlX, prints the trlx.train signature, registries, default config summaries, and optionally performs a tiny CUDA allocation. It does not download models or start training.