Skip to content
Back to skills

Core Training

ASecurity

"Choose, instantiate, and troubleshoot TRL stable post-training

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolsrustapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill core-training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Core Training?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Core Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-core-training/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-core-training)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: core-training
description: "Choose, instantiate, and troubleshoot TRL stable post-training
  trainers: SFT, DPO, GRPO, Reward, and RLOO."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Core TRL Training

Use this sub-skill when the task is to select or wire up stable TRL post-training trainers, build trainer objects, set the main config/model arguments, attach reward functions, or debug trainer-specific setup errors.

## Route by Training Objective

- **SFTTrainer**: supervised fine-tuning on text, prompt-completion, or conversational examples; start here for instruction tuning and formatting/loss masking questions.
- **DPOTrainer**: preference optimization from paired `chosen`/`rejected` answers; use after an SFT-style model exists and no online generation rewards are needed.
- **RewardTrainer**: train a sequence-classification reward model from `chosen`/`rejected` comparisons; use before RLHF-style training when rewards should come from a model.
- **GRPOTrainer**: online RL from generated completions scored by one or more reward functions or reward models; use for grouped generations and reward shaping.
- **RLOOTrainer**: online RL with leave-one-out baselines; use when each prompt should produce multiple completions and rewards are compared within that prompt group.

## Quick References

- Trainer signatures and default highlights: [references/trainer-api-reference.md](references/trainer-api-reference.md)
- End-to-end trainer skeletons: [references/workflows.md](references/workflows.md)
- Setup and runtime failures: [references/troubleshooting.md](references/troubleshooting.md)
- Local signature helper: [scripts/inspect_trainer_config.py](scripts/inspect_trainer_config.py)

## Boundaries

- Route detailed dataset conversion, chat-template normalization, and reward-function data plumbing to `../data-and-rewards/`.
- Route CLI command construction, YAML recipes, and launcher flags to `../cli-and-configs/`.
- Route vLLM, DeepSpeed, FSDP, PEFT scaling, quantization, and memory-distributed execution to `../scaling-and-backends/`.
- Route experimental trainers, tools/environments, and non-stable APIs to `../experimental-and-environments/`.

## First Checks Before Instantiating

1. Pick the trainer from the objective and dataset shape, then verify the required columns in [references/trainer-api-reference.md](references/trainer-api-reference.md).
2. Create the matching config class rather than passing raw `TrainingArguments`, except for simple SFT cases where `SFTTrainer` can upgrade `TrainingArguments`.
3. Pass a model id string for automatic loading, or pass an already loaded model and keep `model_init_kwargs` out of the config.
4. Keep `trust_remote_code=False` unless the target model explicitly needs custom code.
5. Add `peft_config` only when PEFT is installed and the task actually needs adapter training; route scaling details to `../scaling-and-backends/`.

Files in this skill

  • SKILL.md2.9 KB
  • references/trainer-api-reference.md9.2 KB
  • references/troubleshooting.md4.5 KB
  • references/workflows.md8 KB
  • scripts/inspect_trainer_config.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.