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

Evaluating the checkpoints

Open sravan500 opened this issue 1 year ago • 5 comments

How long will the training take to run on 8 GPUS? Can you provide evaluation scripts? Or how do we see the accuracy gain?

sravan500 avatar May 08 '25 10:05 sravan500

@0russwest0,Great work! I could run the training. I got the following files in this folder: checkpoints/hotpotqa/grpo-qwen2.5-1.5b-instruct/global_step_200/actor/huggingface I didn't get safetensors. Please let me know if anyone else faced the same issue.

Files:

added_tokens.json
config.json
merges.txt special_tokens_map.json tokenizer.json tokenizer_config.json vocab.json

sravan500 avatar May 10 '25 15:05 sravan500

See docs/inference/inference.md, you need to convert your checkpoints first.

0russwest0 avatar May 13 '25 09:05 0russwest0

Will the inference support multimodal and batch inference? Thanks a lot

zjuruizhechen avatar May 14 '25 07:05 zjuruizhechen

See docs/inference/inference.md, you need to convert your checkpoints first.

To convert the checkpoints I didnt get adapter_config.json or safetensors. Only got the below files. What are the next steps.

Files:

added_tokens.json config.json merges.txt special_tokens_map.json tokenizer.json tokenizer_config.json vocab.json

sravan500 avatar May 14 '25 10:05 sravan500

Hello,

Looking at your issue, it appears you're working in the wrong directory. You're currently in the huggingface subdirectory, but the actual model weight files (*_world_size_*_rank_*.pt) are stored in the parent actor directory.

Please follow the tutorial in docs/inference/inference.md and use the model_merge.sh script, pointing it to the actor folder:

./checkpoints/<your-project-name>/<your-experiment-name>/global_step_*/actor

After proper conversion, the safetensors weight files and adapter_config.json you're looking for will be generated. Feel free to reach out if you have any further questions.

0russwest0 avatar May 20 '25 08:05 0russwest0