Training Overview

Training starts from the same trajectory artifacts used for debugging and evaluation. Treat data generation, filtering, conversion, training, serving, and evaluation as separate reproducible stages.

Choose a training guide

Goal Guide
Convert trajectories and launch MS-Swift Supervised fine-tuning
Run GRPO or IGPO through AReaL RL with AReaL
Run synchronous or asynchronous RL through slime RL with slime

Supervised fine-tuning

The SFT scripts under scripts/sft/ cover two distinct stages:

Stage Entry point
Convert trajectory format scripts/sft/sft_convert.sh
Launch MS-Swift training scripts/sft/sft_train.sh and sft_training.yaml

Before a full training job, inspect converted samples and resolve the generated training command with a dry run. The detailed sequence is covered in the SFT guide.

python -m searcherkit.training.sft \
  --config scripts/sft/sft_training.yaml \
  --dry-run

Keep environment-specific model paths, datasets, output directories, and reporting credentials in environment variables. Keep semantic training choices such as template, loss scale, context length, optimizer settings, and distributed strategy in versioned YAML.

Reinforcement learning

The scripts/areal/ and scripts/slime/ directories are framework adapters, reward and training-agent logic.

See the AReaL and slime guides for their distinct ownership boundaries and launch paths.

Evaluate a checkpoint

Serve the checkpoint behind an OpenAI-compatible endpoint, then point the existing agent configuration at the served model:

agent:
  llm_client:
    type: openai
    model: /path/to/checkpoint
    api_key: EMPTY
    base_url: http://127.0.0.1:8000/v1

SearcherKit agents are reusable across base models and trained checkpoints: the agent, parser, tools, sources, dataset, and runtime behavior remain defined through config, while the model and endpoint can be changed independently. Use the same config to inspect the composed setup, run the checkpoint over a dataset, and evaluate the saved trajectories. See Run and evaluate SearchAgent for the complete commands and evaluation options.