AgentTrainer
Backend-agnostic wrapper for training agents with custom workflows or AgentFlows. As of the unified-trainer graduation,rllm.trainer.AgentTrainer resolves to rllm.trainer.unified_trainer.AgentTrainer.
verl / tinker backends), see the unified trainer page. A condensed view:
Constructor
workflow_class (a Workflow subclass) or agent_flow (an AgentFlow built with the AgentSdk).
Workflow class to use for training (e.g.,
SimpleWorkflow, MultiTurnWorkflow).Arguments to pass to the workflow class.
Configuration overrides. Can be:
- Dictionary with dot notation keys:
{"data.train_batch_size": 8} - List of strings:
["data.train_batch_size=8", "trainer.total_epochs=3"]
Training dataset.
Validation dataset.
Training backend:
"verl": Distributed PPO via the verl framework"tinker": LoRA training via tinker
AgentFlow object (from the AgentSdk path). Use this or
workflow_class,
not both.The verl-specific legacy trainer lives at
rllm.trainer.agent_trainer.AgentTrainer. New code should prefer the unified
from rllm.trainer import AgentTrainer.Methods
train
Start the training process.Configuration
The trainer uses Hydra for configuration management. Default config is atrllm/trainer/config/agent_ppo_trainer.yaml.

