#5353rd of 53 in Training and fine-tuning

search-r1

RL framework that trains LLMs to interleave reasoning with search engine calls

Stars
5.6k
License
Apache-2.0
Last commit
Nov 2025
Language
Python
Stars, last 29 weeks+1,085
21 Apr 2026: 4,489 stars28 Apr 2026: 4,553 stars5 May 2026: 4,576 stars12 May 2026: 4,631 stars19 May 2026: 4,688 stars26 May 2026: 4,740 stars2 Jun 2026: 4,809 stars9 Jun 2026: 4,855 stars16 Jun 2026: 4,910 stars23 Jun 2026: 4,963 stars30 Jun 2026: 5,004 stars7 Jul 2026: 5,034 stars14 Jul 2026: 5,072 stars21 Jul 2026: 5,103 stars28 Jul 2026: 5,143 stars4 Aug 2026: 5,225 stars11 Aug 2026: 5,256 stars18 Aug 2026: 5,281 stars25 Aug 2026: 5,298 stars1 Sept 2026: 5,326 stars8 Sept 2026: 5,364 stars15 Sept 2026: 5,400 stars22 Sept 2026: 5,423 stars29 Sept 2026: 5,451 stars6 Oct 2026: 5,465 stars13 Oct 2026: 5,491 stars20 Oct 2026: 5,518 stars27 Oct 2026: 5,540 stars3 Nov 2026: 5,561 stars10 Nov 2026: 5,574 stars

4,489 on 21 Apr 20265,574 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Search-R1 is a training pipeline built on veRL that uses rule-based outcome rewards to teach base LLMs, such as Llama-3.2-3B and Qwen2.5-7B, to reason and call a search engine over multiple turns. It supports PPO, GRPO and reinforce, with retrieval from local BM25, dense retrievers with flat or ANN indexes, or online search APIs. The search engine runs as a separate HTTP server that training calls.

Who it is for: Researchers training search-calling reasoning LLMs with RL

Strengths

  • Supports PPO, GRPO and reinforce training methods
  • Pluggable retrievers: BM25, dense flat/ANN, online search APIs, rerankers
  • Multinode training documented for 30B+ models
  • Two papers and public wandb logs for reproducing experiments

Weaknesses

  • Pinned older stack: Python 3.9, torch 2.4.0, vllm 0.6.3
  • Needs two separate conda environments plus a running retrieval server
  • No Docker or compose setup provided
  • Quick start downloads a Wikipedia corpus and index before training

What it needs

  • GPU required
  • Needs veRL, vLLM 0.6.3, PyTorch 2.4.0, flash-attn, faiss-gpu 1.8.0, pyserini, FastAPI, wandb
  • Models: Llama-3.2-3B, Qwen2.5-3B, Qwen2.5-7B
  • port 8000

Quick answers

Is search-r1 open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Does search-r1 need a GPU?

Yes, it needs a GPU.

Also in Training and fine-tuning

See all 53
Also in Training and fine-tuning
RankProjectScore
1unslothDesktop and web app to run and fine-tune local models Live demo ↗ (opens in a new tab)79.3k stars+1,694 (+2.2%) in 30 daysApache-2.088 out of 100
2peftPython library for LoRA and other parameter-efficient fine-tuning of Transformers models Live demo ↗ (opens in a new tab)21.9k stars+133 (+0.6%) in 30 daysApache-2.088 out of 100
3deepspeedPyTorch library for distributed training of very large models with ZeRO43.3k stars+166 (+0.4%) in 30 daysApache-2.086 out of 100
#4verlReinforcement learning training library for LLM post-training with PPO and GRPO24.2k stars+391 (+1.6%) in 30 daysApache-2.086 out of 100
#5trlPost-training library with SFT, DPO, GRPO and KTO trainers19.7k stars+247 (+1.3%) in 30 daysApache-2.086 out of 100