Agent-R1 icon indicating copy to clipboard operation
Agent-R1 copied to clipboard

Model Saving

Open whyseu opened this issue 4 months ago • 2 comments

Where is the model saved after I set trainer.save_freq?

whyseu avatar Jul 17 '26 01:07 whyseu

Agent-R1 follows verl’s checkpoint layout. When trainer.save_freq=N with N > 0, checkpoints are saved every N global training steps and at the final step. By default, checkpoints are stored in: checkpoints/<project_name>/<experiment_name>/global_step_/ The actor checkpoint is under the actor directory. If the critic is enabled, its checkpoint is also saved in the same global_step directory. The dataloader state is saved as data.pt. If training is launched from the Agent-R1 repository root, the checkpoints directory is normally created there. You can specify an absolute path with trainer.default_local_dir=/path/to/my/checkpoints. The training log also prints “local_global_step_folder: ...” whenever a checkpoint is saved. Note that the actor directory contains a distributed training checkpoint, not necessarily a single Hugging Face model file.

fishsure avatar Jul 22 '26 01:07 fishsure

Env: verl==0.8.0&sglang==0.5.10.post1 run_grpo_tool.sh: trainer.logger="['console','tensorboard']"
trainer.default_local_dir="/data/Proj1/Agent_experiment_checkpoint"
trainer.save_freq=10
trainer.max_actor_ckpt_to_keep=3
trainer.max_critic_ckpt_to_keep=3 \

jzl20 avatar Jul 31 '26 15:07 jzl20