DR Tulu 2 # DR Tulu 2: Scaling Simulated Environments for Deep Research Agents Paper   Model: allenai/DR-Tulu2-4B   Hugging Face collection
This is the official repository for **DR Tulu 2**, a 4B-parameter deep research agent trained entirely in simulated search environments. For each training task, we construct both a research question and a searchable collection of documents. The agent can then issue queries, open documents, and refine its search over many steps. Serving the collection locally lets us scale these reinforcement learning rollouts without paying for each query or waiting on external API rate limits.
DR Tulu 2 accuracy versus inference cost, live-web accuracy after simulated training, search cost and latency, and training throughput
## Overview - **Evaluation client.** A Verifiers environment connects the model served by vLLM to search and terminal tools. The client generates answers, records tool calls, and grades BrowseComp-Plus runs. [Client guide](drtulu2-client/README.md) - **RL training.** We use [Prime-RL](https://github.com/PrimeIntellect-ai/prime-rl) to train DR Tulu 2 and [`literegistry`](https://github.com/goncalorafaria/literegistry) to orchestrate all tool servers during training. The training directory contains the Prime-RL image build and multi-node launchers for Slurm and Beaker. [Training guide](drtulu2-training/README.md) - **Search datastores.** Build local BM25 indexes from the [General Web](https://huggingface.co/datasets/allenai/dr-tulu2-web), [Finance](https://huggingface.co/datasets/allenai/dr-tulu2-finance), and [Science](https://huggingface.co/datasets/allenai/dr-tulu2-science) corpora on Hugging Face. [Index builder](drtulu2-client/build_hf_indexes.sh) ## Quick start From the repository root, start the search service with Docker and the bundled demo corpus: ```bash ./drtulu2-client/quickstart_docker.sh ``` Once the service is ready, send a query from another shell. The matching document includes a title, URL, and passage about astronomy. ```bash curl -fsS http://127.0.0.1:1214/search \ -H 'Content-Type: application/json' \ -d '{"mode":"query","query":"astronomy","num_results":1}' ``` With the demo service running, use the [client Python environment](drtulu2-client/README.md#local-python-install) from the repository root to call the harness directly: ```python from drtulu2 import load_environment base_url = "http://127.0.0.1:1214" # Use your service address for a remote deployment. env = load_environment( "drtulu2-client/tests/demo-questions.jsonl", search_server_url=f"{base_url}/search", terminal_server_url=f"{base_url}/terminal", ) result = await env.webterminal("browse https://example.org/stars | rg -i galaxies") print(result) ``` The harness fetches the demo page and returns the line containing “galaxies”. ## Running evaluations For BrowseComp-Plus, serve the checkpoint with vLLM, start the tools with the benchmark corpus and its BM25 index, then run `eval.sh generate` and `eval.sh grade`. The evaluation guide includes a 32-question example for Docker and Apptainer. GPT-4.1 grading uses `OPENAI_API_KEY`. For live web runs, the search worker also needs `SERPER_API_KEY` for queries and `JINA_API_KEY` for page fetches. [Evaluation guide](drtulu2-client/README.md) · [Benchmark configs](drtulu2-client/drtulu2/configs/README.md) ## Training Training proceeds from General Web to Science to Finance. | Stage | Training config | Starting policy | Selected checkpoint | Training dataset | | --- | --- | --- | --- | --- | | General Web | [general-web.toml](drtulu2-training/configs/general-web.toml) | Qwen3.5-4B | Step 400 | [General Web](https://huggingface.co/datasets/allenai/dr-tulu2-web) | | Science | [science.toml](drtulu2-training/configs/science.toml) | General Web step 400 | Step 200 | [Science](https://huggingface.co/datasets/allenai/dr-tulu2-science) | | Finance | [finance.toml](drtulu2-training/configs/finance.toml) | Science step 200 | Step 100 | [Finance](https://huggingface.co/datasets/allenai/dr-tulu2-finance) | For image builds, tool service setup, and cluster submission commands, see the [training guide](drtulu2-training/README.md). ## Citation ```bibtex @misc{drtulu2, title={DR Tulu 2: Scaling Simulated Environments for Deep Research Agents}, author={Zijian Chen and Gonçalo Faria and Jingming Zhuo and Rulin Shao and Shashank Gupta and Dongfu Jiang and Luke Zettlemoyer and Pang Wei Koh and Noah A. Smith and Faeze Brahman and Pradeep Dasigi and Akari Asai}, year={2026}, eprint={2612.02821}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2612.02821}, } ```