AgileRL LLM Fine-Tuning
Use this sub-skill when the task involves AgileRL LLM post-training or fine-tuning: GRPO, CISPO, GSPO, LLM PPO, LLM REINFORCE, SFT, DPO, reasoning/preference/multiturn/SFT trainers, AgileRL LLM envs, vLLM rollout backends, DeepSpeed, PEFT, quantization, checkpointing, or agilerl[llm].
Read First
references/workflows.mdfor reasoning, preference, multiturn, and SFT/DPO routes.references/api-reference.mdfor algorithms, trainers, envs, and utilities.references/configuration.mdfor optional dependencies, Accelerate, vLLM, quantization, and checkpoint settings.references/troubleshooting.mdfor backend, model, tokenizer, reward, and dependency failures.scripts/inspect_llm_dependencies.py --helpfor safe optional dependency checks.
Boundaries
- Use
../hpo-and-mutation/SKILL.mdfor generic mutation/tournament concepts; this sub-skill explains LLM-specific limitations. - Use
../training-workflows/SKILL.mdfor classical Gymnasium RL. - Use
../offline-bandits-data/SKILL.mdfor tabular/offline RL datasets, not LLM preference/reasoning data.
Workflow Routes
| Task | AgileRL route |
| --- | --- |
| Reasoning RL with verifiable rewards | GRPO/CISPO/GSPO and finetune_llm_reasoning(...) |
| Preference optimization | DPO or preference-oriented GRPO and finetune_llm_preference(...) |
| Multi-turn LLM agents | LLM PPO, LLM REINFORCE, GRPO, and finetune_llm_multiturn(...) |
| Supervised fine-tuning | SFT and finetune_llm_sft(...) |
| Checkpoint/quantization/vLLM rollout planning | Configuration and troubleshooting references here |
Safe Validation
python scripts/inspect_llm_dependencies.py --json
This reports optional packages and CUDA availability. It does not download models, load vLLM, start DeepSpeed, or train.