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.md for reasoning, preference, multiturn, and SFT/DPO routes.
references/api-reference.md for algorithms, trainers, envs, and utilities.
references/configuration.md for optional dependencies, Accelerate, vLLM, quantization, and checkpoint settings.
references/troubleshooting.md for backend, model, tokenizer, reward, and dependency failures.
scripts/inspect_llm_dependencies.py --help for safe optional dependency checks.
Boundaries
- Use
../hpo-and-mutation/SKILL.md for generic mutation/tournament concepts; this sub-skill explains LLM-specific limitations.
- Use
../training-workflows/SKILL.md for classical Gymnasium RL.
- Use
../offline-bandits-data/SKILL.md for 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.
1---2name: llm-fine-tuning3description: "Use AgileRL LLM fine-tuning and post-training workflows for GRPO,4 CISPO, GSPO, DPO, SFT, LLM PPO/REINFORCE, vLLM, DeepSpeed, and optional LLM5 dependencies."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/llm-fine-tuning9 disco-role: operating10license: Apache 2.011---1213# AgileRL LLM Fine-Tuning1415Use 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]`.1617## Read First1819- `references/workflows.md` for reasoning, preference, multiturn, and SFT/DPO routes.20- `references/api-reference.md` for algorithms, trainers, envs, and utilities.21- `references/configuration.md` for optional dependencies, Accelerate, vLLM, quantization, and checkpoint settings.22- `references/troubleshooting.md` for backend, model, tokenizer, reward, and dependency failures.23- `scripts/inspect_llm_dependencies.py --help` for safe optional dependency checks.2425## Boundaries2627- Use `../hpo-and-mutation/SKILL.md` for generic mutation/tournament concepts; this sub-skill explains LLM-specific limitations.28- Use `../training-workflows/SKILL.md` for classical Gymnasium RL.29- Use `../offline-bandits-data/SKILL.md` for tabular/offline RL datasets, not LLM preference/reasoning data.3031## Workflow Routes3233| Task | AgileRL route |34| --- | --- |35| Reasoning RL with verifiable rewards | GRPO/CISPO/GSPO and `finetune_llm_reasoning(...)` |36| Preference optimization | DPO or preference-oriented GRPO and `finetune_llm_preference(...)` |37| Multi-turn LLM agents | LLM PPO, LLM REINFORCE, GRPO, and `finetune_llm_multiturn(...)` |38| Supervised fine-tuning | `SFT` and `finetune_llm_sft(...)` |39| Checkpoint/quantization/vLLM rollout planning | Configuration and troubleshooting references here |4041## Safe Validation4243```bash44python scripts/inspect_llm_dependencies.py --json45```4647This reports optional packages and CUDA availability. It does not download models, load vLLM, start DeepSpeed, or train.