百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

ReTool

> 编程语言
开源

新闻!!! - [2025/07] ReTool 算法已完全开源。 [新!] - [2025/04] 我们发布了模型检查点和推理代码。在本次会议中,我们将展示如何使用这些代码进行推理。

388 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

新闻!!! - [2025/07] ReTool 算法已完全开源。 [新!] - [2025/04] 我们发布了模型检查点和推理代码。在本次会议中,我们将展示如何使用这些代码进行推理。

** News!!!**

  • [2025/07] The ReTool Recipe is fully open sourced. [New!]
  • [2025/04] We release the model checkpoints and inference code.

In this work, we embrace the RL paradigm and introduce ReTool, a Tool-augmented Reinforcement learning framework explicitly designed to guide LLMs towards optimal strategies for leveraging external computational tools during reasoning. Our comprehensive experiments on AIME2024 and AIME2025 demonstrate that ReTool not only achieves superior accuracy compared to conventional text-based RL approaches, but also converges with significantly fewer training steps.

ReTool achieves accuracy of 67.0% on AIME 2024 and 49.3% on AIME 2025 based on the Qwen2.5-32B-Instruct model, outperforming the text-based RL baseline with less than 50% training steps.

Model Use

We provide the model weights of ReTool-Qwen-32B and ReTool-DeepSeek-R1-Distill-Qwen-32B, which are trained based on Qwen2.5-32B-Instruct and DeepSeek-R1-Distill-Qwen-32B. Note: ReTool-Qwen-32B achieves 67% on AIME 24, and ReTool-DeepSeek-R1-Distill-Qwen-32B achieves 72% on AIME 24.

Environment Setup

bash
pip install vllm==0.7.3
pip install packaging
pip install ninja
pip install flash-attn --no-build-isolation
pip install deepspeed
pip install accelerate
pip install datasets
pip install "git+https://github.com/tongyx361/symeval.git"
pip install timeout_decorator

Inference

To speed up open-source progress, we are currently using STILL3's inference framework to evaluate our trained checkpoints.

Quick start for model inference:

python
cd evaluation
bash scripts/eval.sh

Datasets

We provide training and validation datasets for ReTool.

  • Cold-Start: ReTool-SFT.
  • RL Training: DAPO-Math-17k by DAPO, thanks for their great work!
  • RL Validation: AIME 2024, AIME 2025 (can be found in evaluation/dataset)

Acknowledgement

We thank the verl for providing the awesome open-source RL infrastructure.

Citation

If you find our project helpful, please cite:

@misc{feng2025retoolreinforcementlearningstrategic, title={ReTool: Reinforcement Learning for Strategic Tool Use in LLMs}, author={Jiazhan Feng and Shijue Huang and Xingwei Qu and Ge Zhang and Yujia Qin and Baoquan Zhong and Chengquan Jiang and Jinxin Chi and Wanjun Zhong}, year={2025}, eprint={2504.11536}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2504.11536}, }

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言