Instructions to use allenai/DR-Tulu2-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/DR-Tulu2-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="allenai/DR-Tulu2-4B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("allenai/DR-Tulu2-4B") model = AutoModelForMultimodalLM.from_pretrained("allenai/DR-Tulu2-4B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use allenai/DR-Tulu2-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "allenai/DR-Tulu2-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/DR-Tulu2-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/allenai/DR-Tulu2-4B
- SGLang
How to use allenai/DR-Tulu2-4B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "allenai/DR-Tulu2-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/DR-Tulu2-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "allenai/DR-Tulu2-4B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/DR-Tulu2-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use allenai/DR-Tulu2-4B with Docker Model Runner:
docker model run hf.co/allenai/DR-Tulu2-4B
DR-Tulu2-4B
Table of Contents
Model Details · Model Sources · Uses · Training Details · Evaluation · Model Examination · Environmental Impact · Technical Specifications · Citation · Glossary · More Information · Model Card Authors · Model Card Contact
Model Details
Model description
DR-Tulu2-4B is a fully open, dense 4B-parameter model for Deep Research built on Qwen3.5-4B. It answers questions over multiple turns by searching for sources, reading documents, and reasoning about what it finds. It achieves state-of-the-art results among open Deep Research agents on 9 of 10 benchmarks. It was trained with simulated search environments that use local data stores instead of live web searches to make search reproducible and avoid third-party API rate limits, service disruptions, and per-search fees.
| Field | Details |
|---|---|
| Developed by | Zijian Chen, Gonçalo Faria, Jingming Zhuo, Rulin Shao, Shashank Gupta, Dongfu Jiang, Luke Zettlemoyer, Pang Wei Koh, Noah A. Smith, Faeze Brahman, Pradeep Dasigi, Akari Asai; Allen Institute for AI (Ai2), University of Washington, University of Waterloo, Carnegie Mellon University |
| Model date | December 2026 |
| Shared by | Allen Institute for AI (Ai2) |
| Model type | The model is post-trained with reinforcement learning (RL) applied directly to Qwen3.5-4B, with no SFT and no distillation from a teacher model. The model is intended to be used as a Deep Research agent with appropriate tools. Input is a text question and a search environment or a web search API, and outputs are the model reasoning, search and web terminal tool calls, and a final short answer or long-form report. |
| Model size | 4B parameters, trained with a 128K-token context and up to 150 tool calls per rollout. |
| Language(s) | English |
| License | This model is licensed under Apache 2.0. It is intended for research and educational use in accordance with Ai2's Responsible Use Guidelines. |
| Finetuned from model | Qwen3.5-4B (Qwen Team, 2026) |
Model Sources
| Resource | Link |
|---|---|
| Repository | github.com/allenai/dr-tulu2 |
| Paper | allenai.org/papers/dr-tulu2 |
Uses
Direct use
DR-Tulu2-4B can be used as-is as a Deep Research agent. Given a user question, and access to search and web terminal tools, it iteratively issues search queries, reads documents, and reasons over many turns until it produces an answer or report.
See the code repository for usage examples: github.com/allenai/dr-tulu2
Downstream use
DR-Tulu2-4B was trained in sequence across environments: General Web, then Science, then Finance. This mirrors how the model can be adapted in practice. Users can create new search environments using the accompanying DR-Anything framework and continue training the model on them.
Out-of-scope use
DR-Tulu2-4B is a specialized model meant to be used as a Deep Research agent. It is meant to answer information-seeking questions using search and web terminal tools, and is not meant for other agentic use cases, e.g., open-ended coding, or those that rely on its parametric knowledge alone.
Misuse
DR-Tulu2-4B can search across many sources and synthesize its findings into a report. Potential misuses and recommended deployment safeguards include:
| Misuse | Safeguard |
|---|---|
| Phishing or impersonation: The model could compile scattered details about a person or an organization into a dossier, which could be used to craft convincing fraudulent messages. | Deployers can screen requests and outputs for targeted deception and require human approval before connected tools send messages. |
| Misleading answers or reports: The model could produce persuasive reports at scale that cite real sources for unsupported claims. | Deployers can retain supporting passages, check whether each citation supports its claim, and require editorial review before publication. |
| Research that facilitates harm: The model could combine information from multiple sources into operational guidance for malicious use-cases. | Deployers can assess tool calls in the context of the overall request and screen the final response for actionable harmful guidance. |
Once the weights are public, third parties can modify or fine-tune them, redistribute copies, and connect them to other tools or data sources. Ai2 cannot revoke copies already downloaded.
Training Details
Training data
DR-Tulu2-4B was trained with RL on 3 different datasets, in this order:
| Dataset | Domain |
|---|---|
| DR-Tulu2-Web | General web search |
| DR-Tulu2-Science | Science domain search |
| DR-Tulu2-Finance | Finance domain search |
Preprocessing
Qwen3.5-4B's default tokenizer and tool call parser were used. Qwen3.5-4B's chat template was modified to preserve the thinking blocks of the previous turns in the context.
Speeds, sizes, times
- DR-Tulu2-4B has 4B parameters.
- RL used a 128K-token context and up to 150 tool calls per rollout, with 8 task prompts and 32 rollouts per prompt in each update.
- Training ran for 400 steps on General Web, 200 on Science, and 100 on Finance.
- On General Web with 16 rollout B300 GPUs and 16 training B300 GPUs, local training completed 320 RL updates in 24 hours.
- Because search is served locally, the median time a rollout spends waiting on search and page fetches was 1.34 seconds (General Web), 0.28 seconds (Finance), and 0.36 seconds (Science), compared to 90.2, 37.1, and 50.0 seconds with cached live web search.
Evaluation
Testing data
DR-Tulu2-4B was evaluated on 10 Deep Research benchmarks.
| Category | Benchmark | Details |
|---|---|---|
| Fact-seeking | BrowseComp | 1,266 questions |
| BrowseComp-Plus | 830 questions over a fixed corpus, evaluated with BM25 | |
| GAIA | 127 text-only questions | |
| Domain-specific | FinSearchComp | T2 and T3 subsets (391 finance questions) |
| FrontierScience-Research | 59 deduplicated research subtasks, mean of five runs | |
| HLE | 2,158 text-only questions | |
| HSCodeComp | 632 product-to-10-digit US tariff code tasks | |
| Others | SEAL-0 | 111 questions with conflicting or misleading search results |
| DeepSearchQA | 900 questions, many requiring a set of answers | |
| DeepResearch Bench II | 130 research-report tasks scored against rubrics |
All benchmarks except BrowseComp-Plus were run on the live web using Serper for search and Jina for page fetching. huggingface.co and hf.co were blocked to prevent contamination, and some benchmarks' own repositories were blocked as well. For DeepResearch Bench II, the 625 URLs blocked by the official benchmark were also blocked.
Factors
Results are broken out by benchmark across fact-seeking, domain-specific (finance, science, e-commerce, HLE), and other categories. Factors that can affect performance include:
- The specific tools the model has access to
- The retrieval mechanism, e.g.: BM25 vs. dense retrieval
Metrics
Most benchmarks use accuracy judged by an LLM grader:
- GPT-4.1 grader for BrowseComp, BrowseComp-Plus, FinSearchComp, and GAIA; GPT-4o-mini for SEAL-0; GPT-6.1-sol for HLE.
- GAIA is graded by an LLM judge rather than the official quasi-exact-match scorer because agents answer in full sentences.
- FrontierScience-Research uses rubric pass rate graded by GPT-5.
- DeepSearchQA counts a question correct only if all its answers are correct, graded with GPT-4.1.
- HSCodeComp uses exact match on the 10-digit code.
- DeepResearch Bench II uses a rubric score covering information recall, analysis, and presentation.
The reported average is the mean over the ten benchmarks.
Search calls per question, the share of searches that retrieve a labeled evidence document, and the rate at which the agent gives up without answering are also measured.
Results
DR-Tulu2-4B is the strongest open Deep Research agent tested, coming within 0.9 points of a model roughly 100× its size.
Benchmark-level results
| Benchmark | DR-Tulu2-4B |
|---|---|
| BrowseComp | 44.6 |
| BrowseComp-Plus (BM25) | 53.1 |
| FinSearchComp | 57.8 |
| FrontierScience-Research | 39.0 |
| SEAL-0 | 46.8 |
| GAIA | 78.7 |
| DeepSearchQA | 57.7 |
| HLE | 31.7 |
| HSCodeComp | 41.8 |
| DeepResearch Bench II (rubric score) | 41.3 |
| Average | 49.3 |
| Model | Average across 10 benchmarks |
|---|---|
| DR-Tulu2-4B | 49.3 |
| Tongyi-DR (with summarizer) | 39.6 |
| Qwen3.5-4B (starting model) | 30.8 |
| Qwen3.5-397B | 50.2 |
| Nemotron 3 Super | 40.8 |
| GPT-5 | 52.0 |
| GPT-6.1-sol | 67.9 |
DR-Tulu2-4B improves over Qwen3.5-4B on all 10 benchmarks, by 5.7 to 28.2 points.
Safety evaluation
Safety was evaluated with Ai2's safety evaluation suite: 4,469 prompts across the benchmarks below, with the WildGuard classifier (trained on WildGuardMix) judging each response. Each model answered each prompt once, with no tools and no system prompt, and its final answer was judged. Higher is better in every row: for the six harmful-request benchmarks, the score is the share of responses that were safe or refused; for the two benign ones (XSTest safe, WildJailbreak benign), it is the share answered.
DR-Tulu2-4B stays within 1 point of the starting Qwen3.5-4B model on 6 of the 8 benchmarks; the largest drops are on XSTest unsafe (−6.0) and JailbreakTrigger (−2.7). Because the models ran without search tools, these results measure single-turn refusal behavior rather than misuse of the model as an agent.
| Benchmark | Qwen3.5-4B (starting model) | DR-Tulu2-4B |
|---|---|---|
| HarmBench | 91.9 | 90.9 |
| WildGuardTest | 98.9 | 99.2 |
| WildJailbreak harmful | 81.5 | 80.5 |
| Do-Anything-Now | 99.0 | 99.0 |
| JailbreakTrigger | 88.5 | 85.8 |
| XSTest unsafe | 89.5 | 83.5 |
| XSTest safe | 99.2 | 98.4 |
| WildJailbreak benign | 94.4 | 94.4 |
| Mean, harmful (6 benchmarks) | 91.5 | 89.8 |
| Mean, benign (2 benchmarks) | 96.8 | 96.4 |
Adversarial testing
No additional adversarial testing was conducted beyond the safety benchmarks above.
Model Examination
No explainability / interpretability work was conducted.
Environmental Impact
| Field | Details |
|---|---|
| Hardware type | NVIDIA B300s |
| Hours used | ~100k GPU hours |
| Cloud provider and region | Cirrascale in Austin, TX |
| Carbon emitted | About 36.74 metric tons, estimated as 100,000 GPU hours × 1.1 kW per B300 × 0.334 kg CO₂e per kWh (ERCOT Texas grid), using the Machine Learning Impact calculator method (Lacoste et al., 2019). This counts GPU power only, not CPUs, networking, or cooling. |
Technical Specifications
Model architecture and objective
DR-Tulu2-4B keeps the architecture of its base model, Qwen3.5-4B. It is trained with RL directly from the base model, without SFT, using DPPO, a variant of GRPO. Each update uses 8 task prompts with 32 rollouts per prompt, and per-token losses are aggregated with prompt-level normalization. The reward is the verifier's score of the final response, computed by an LLM judge (Qwen3.8-27B).
- For General Web and Finance, the judge first extracts the final answer and then checks it against a factoid reference answer, scoring 1 or 0; this two-stage design prevents rewarding hedged multi-answer responses.
- For Science, the score is the sum of weights of passed rubric criteria divided by the sum of positive weights.
- In every environment, a rollout that ends without a final answer receives -1, and each tool call that fails because of the agent costs 0.05.
Hardware requirements
For one DR-Tulu2-4B research session at a time using BF16 precision and the paper's 128K-token context window, we recommend one BF16-capable GPU with 24 GB of VRAM, 32 GB of system RAM, and 10 GB of free disk space for the model files. Allow additional disk space for the inference software and, if using local search, the document corpus and retrieval index.
Software
Please refer to the code repository for all the software requirements: github.com/allenai/dr-tulu2
Citation
@article{tulu2_deep_research_agents,
title = {{DR Tulu 2}: Scaling Simulated Environments for Deep Research Agents},
author = {Zijian Chen and Gon{\c{c}}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},
url = {https://allenai.org/papers/dr-tulu2},
}
Glossary
| Term | Definition |
|---|---|
| Deep Research agent | a model paired with appropriate tools that answers a question by repeatedly issuing search queries, reading results, and reasoning over many turns before giving a final answer. |
| Search environment | a corpus of documents plus a retriever that handles two actions, search (return top-ranked documents for a query) and browse (read a document). |
| DR-Anything | the framework used to build training environments automatically from a document collection and a set of seeds, producing task prompts, verifiers, and a locally served search environment. |
| Seed | a target entity, company ticker, or real user query that represents the intended use of a document collection. |
| Verifier | a reference answer for short-form tasks or a set of rubrics for long-form tasks, used to score responses. |
| BM25 | a lexical (keyword-based) retriever. |
More Information
- Paper: allenai.org/papers/dr-tulu2
- Code: github.com/allenai/dr-tulu2
Model Card Authors
Shashank Gupta, Pradeep Dasigi
Model Card Contact
GitHub and Hugging Face issues, or email the corresponding authors:
- Zijian Chen (stevenc@allenai.org)
- Pradeep Dasigi (pradeepd@allenai.org)
- Akari Asai (akaria@allenai.org)
- Downloads last month
- -