技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
trl【数据与研究】Use and modify TRL, the Hugging Face Transformers Reinforcement Learning library for post-training, CLI workflows, data/reward utilities, scaling backends, experimental environments, and repo development.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for TRL (Transformers Reinforcement Learning), a Hugging Face library for post-training foundation models with SFT, DPO, GRPO, reward modeling, RLOO, experimental RLHF methods, CLI launchers, dataset utilities, reward functions, and scaling integrations.
scripts/check_trl_environment.py --help when you need a safe local diagnostic helper; it checks imports, metadata, CLI help, and optional packages without training or downloads.SFTTrainer, DPOTrainer, GRPOTrainer, RewardTrainer, RLOOTrainer, and their configs.trl commands, YAML configs, dataset mixtures, trl env, trl skills, and command/config parser troubleshooting.trl.experimental, experimental trainers, GRPOTrainer(environment_factory=...), OpenEnv, OpenReward, Harbor, and tool-calling environment training.Install the public package for normal use:
pip install trl
python - <<'PY'
import trl
from trl import SFTTrainer, DPOTrainer, GRPOTrainer, RewardTrainer
print('trl import ok')
PY
For source development, use an editable install from the checkout:
pip install -e .
trl --help
trl env
Install optional extras only when the selected workflow needs them. Examples include trl[peft] for adapter training, trl[vllm] for vLLM generation/server support, trl[deepspeed] for DeepSpeed, trl[vlm] for vision-language examples, trl[openreward] for OpenReward integration, and trl[harbor] for Harbor tasks. Avoid broad dev installs unless doing repository development.
core-training, then use data-and-rewards for dataset shape and cli-and-configs if the user wants a command or YAML file.data-and-rewards; use its validator script before changing trainer code.trl sft or trl grpo command": start in cli-and-configs, then cross-check trainer semantics in core-training.scaling-and-backends; do not start servers or training jobs unless the user asked and prerequisites are available.experimental-and-environments; verify extras, services, credentials, and stability warnings.repo-development; maintain duplicated trainer logic consistency and update docs/source/paper_index.md for paper-backed methods.trl --help, config rendering, dataset validation, and optional backend diagnostics.