{"slug": "how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu", "title": "How to Run DR Tulu 2 Locally: Open-Source Perplexity Alternative on a 24 GB GPU", "summary": "Ai2 released DR Tulu 2, a 4B open-source deep-research model with search tools that scores 49.3 averaged across ten deep-research benchmarks, within 0.9 points of Qwen3.5-397B-A17B and close to GPT-5's 52.0 under the same harness. The Apache 2.0 checkpoint, training code, datasets and eval runner are public, and the model card recommends 24 GB of VRAM for a full 128K-context BF16 session, with community GGUF builds available for smaller setups. Ai2 did not compare it against Perplexity or ChatGPT Deep Research, and without search the model averages just 7.9, indicating its quality depends heavily on the search backend.", "body_md": "DR Tulu 2, a 4B model with search tools, scores 49.3 averaged across ten deep research benchmarks. Qwen3.5-397B-A17B scores 50.2 on the same set. That gap is 0.9 points between a model that fits on one consumer GPU and one that needs a rack.\n\nThat's the headline number in Ai2's [DR Tulu 2 release](https://huggingface.co/blog/allenai/dr-tulu2) from December 1, 2026. The checkpoint is [allenai/DR-Tulu2-4B](https://huggingface.co/allenai/DR-Tulu2-4B), it's Apache 2.0, and the training code, datasets and an eval runner are all public. If you want an open-source alternative to Perplexity or ChatGPT deep research that runs locally and that you control end to end, this is the most credible option I've seen so far.\n\nIt also has a couple of catches the announcement doesn't put up front. I'll go through what changed from DR Tulu 1, how much VRAM you need, the commands to run it with a local search backend, and where the idea of running it on a laptop falls apart.\n\n[DR Tulu 1](https://allenai.org/blog/dr-tulu) (November 2025) was an 8B model on Qwen3, trained with SFT on GPT-5 trajectories followed by RL with evolving rubrics. It searched through MCP tools (`google_search`, `web_browse`, `paper_search`), capped at 10 search calls per query during evaluation.\n\nDR Tulu 2 throws most of that recipe out:\n\n`search` returns snippets for the top 10 results. `webterminal` fetches a full page and lets the agent poke at it with shell tools like `grep` and `head`.\nThe BM25 decision is the interesting one. Ai2 went with a weak retriever on purpose, arguing that it \"incentivizes stronger information-seeking ability\". Their ablation backs it up, and I didn't expect it to: after 200 updates, the run trained on the cheap simulated web averaged 38.2, against 35.4 for the run trained on the live web.\n\nThe model card lists ten benchmarks:\n\n| Benchmark | DR-Tulu2-4B | \n|---|---|\n| BrowseComp | 44.6 | \n| BrowseComp-Plus (BM25) | 53.1 | \n| FinSearchComp | 57.8 | \n| FrontierScience-Research | 39.0 | \n| SEAL-0 | 46.8 | \n| GAIA | 78.7 | \n| DeepSearchQA | 57.7 | \n| HLE | 31.7 | \n| HSCodeComp | 41.8 | \n| DeepResearch Bench II | 41.3 | \n| **Average** | **49.3** | \n\nAverages for the other models Ai2 ran through the same harness:\n\n| Model | 10-benchmark avg | \n|---|---|\n| GPT-6.1-sol | 67.9 | \n| GPT-5 | 52.0 | \n| Qwen3.5-397B | 50.2 | \n| **DR-Tulu2-4B** | **49.3** | \n| Nemotron 3 Super | 40.8 | \n| Tongyi-DR (with summarizer) | 39.6 | \n| Qwen3.5-4B (base) | 30.8 | \n\nWhat's missing is the comparison most people actually want: Ai2 doesn't compare DR Tulu 2 to Perplexity Deep Research or ChatGPT Deep Research. The only closed systems in the table are GPT-5 and GPT-6.1-sol. Product-to-product numbers come from DR Tulu 1: on ScholarQA-CSv2 the 8B model scored 86.7, ahead of OpenAI Deep Research at 79.6 and Perplexity Deep Research at 67.3. That's one benchmark, from the previous model, in a domain (scholarly QA) Ai2 knows very well.\n\nSo if anyone tells you \"a 4B model beats Perplexity\", ask them which table they're reading. What the numbers do say is that it's 18.6 points behind GPT-6.1-sol and close to GPT-5 when both use the same tools. For a model you can run on a single GPU, that's still a strong result.\n\nTake search away and DR-Tulu2-4B averages 7.9 (on nine benchmarks), against 48.8 with search. The model barely knows anything on its own. What RL taught it is how to look things up, which means your search backend sets the ceiling on quality.\n\nThe model card's recommendation for one research session in BF16 at the full 128K context is:\n\n24 GB is an RTX 3090/4090 or one of the top-end laptop GPUs. Most laptops don't have it. There are two community GGUF builds ([bartowski/allenai_DR-Tulu2-4B-GGUF](https://huggingface.co/bartowski/allenai_DR-Tulu2-4B-GGUF) and a Q4_K_M from amaranus), and bartowski's recommended Q4_K_M is 2.74 GB against 8.42 GB for bf16. `llama-server -hf bartowski/allenai_DR-Tulu2-4B-GGUF:Q4_K_M` will get you serving. But Ai2's harness is built on vLLM, all their numbers are BF16, and a 150-tool-call trajectory leans hard on that context window. A quantized model on a reduced context is a different model from the one in the table, and I haven't seen anyone publish numbers for it yet.\n\nA small oddity: the Hub widget lists it as \"5B params\" and tags it `image-text-to-text`, while the card says \"dense 4B-parameter\". That's probably the Qwen3.5 multimodal wrapper counting toward the total. It doesn't matter much, but don't plan your memory budget to the last gigabyte.\n\nThe repo is [allenai/dr-tulu2](https://github.com/allenai/dr-tulu2). The client guide in `drtulu2-client/` runs everything in three shells. The commands below follow its README; I haven't run them on my machine.\n\nFirst build the images (Docker here; there are Apptainer equivalents too):\n\n```\ncd drtulu2-client\ndocker build -f Dockerfile.inference -t drtulu2-inference .\ndocker build -t drtulu2-services:local .\n```\n\nShell 1 runs the model. `launch_model.sh` wraps vLLM and serves on `127.0.0.1:8000`:\n\n```\n./launch_model.sh docker \"$CHECKPOINT\"\n```\n\nShell 2 runs the tools, and this is where you pick live web or offline. For the live web you need Serper for search and Jina Reader for fetching:\n\n```\nexport SERPER_API_KEY=...\nexport JINA_API_KEY=...\n./launch_web_services.sh docker\n```\n\nFor a fully offline setup, build the BM25 indexes from Ai2's released corpora and serve those:\n\n```\n./build_hf_indexes.sh docker all ../datastores\n./launch_services_docker.sh ../datastores/web/corpus.sqlite ../datastores/web/bm25\n```\n\nPass `web`, `finance` or `science` in place of `all` if you only want one datastore. To search your own documents, the services image can build an index from a JSONL corpus:\n\n```\ndocker run --rm --user \"$(id -u):$(id -g)\" -v \"$PWD/../corpus/browsecomp-plus:/bcp\" \\\n  drtulu2-services:local drtulu2.services.build_index /bcp/corpus.jsonl /bcp/bm25-rebuilt\n```\n\nThat's the setup I'd actually use: the model plus BM25 over internal docs, papers or a wiki dump, with nothing leaving the box. Keep in mind it's only as current as your corpus. For anything newer, you're back to Serper and Jina, and the \"local\" part only covers the model.\n\nShell 3 is where you actually run it. The included eval runner is the quickest way to check the stack end to end:\n\n```\n./run_eval.sh docker generate browsecomp \"$CHECKPOINT\" runs/bc32 --limit 32\npython3 tests/smoke.py docker\n```\n\nGrading is a separate step (`./run_eval.sh docker grade runs/bc32`) and needs `OPENAI_API_KEY`, because the model-judged benchmarks are graded by OpenAI models (the repo names GPT-4.1). If you just want answers and don't care about scores, skip it.\n\nIf you'd rather wire the model into your own agent loop, `pip install vllm && vllm serve \"allenai/DR-Tulu2-4B\"` gets you an OpenAI-compatible endpoint, but then the `search`/` webterminal` tool schema is yours to reproduce. The card notes the chat template was changed \"to preserve the thinking blocks of the previous turns\", so don't swap in the stock Qwen3.5 template.\n\nOne gotcha already reported: an open pull request ([discussion #1](https://huggingface.co/allenai/DR-Tulu2-4B/discussions) on the model page) points out that `generation_config.json` only lists `248044` (`<|endoftext|>`) as `eos_token_id`, so `model.generate()` in transformers doesn't stop at `<|im_end|>`. The fix adds token `248046`. vLLM isn't affected because it also stops on the tokenizer's EOS, but if you're running it through plain transformers and the output keeps going after the answer, this is why.\n\nMy take: for research over a corpus you own, this is a real tool, and it costs nothing per query once the GPU is paid for. As a drop-in replacement for Perplexity on open web questions, not yet. You'd still pay for Serper and Jina, you'd run the whole thing yourself, and Ai2 hasn't shown it beats those products. I find the recipe more interesting than the model itself: Ai2 says as few as 100 questions and a simulated search environment were enough to improve an agent on a new deep research task. Expect a lot of narrow forks.\n\nWould you swap your Perplexity or ChatGPT deep research subscription for a 4B model on your own GPU, or is it a toy until someone shows head-to-head numbers? If you've got it running on a 16 GB card or a Mac with the GGUF, I'd like to hear how it went.", "url": "https://wpnews.pro/news/how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu", "canonical_source": "https://dev.to/alanwest/how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu-565f", "published_at": "2026-12-04 21:00:03+00:00", "updated_at": "2026-12-04 21:14:11.397833+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-agents", "ai-research", "ai-tools"], "entities": ["Ai2", "DR Tulu 2", "DR-Tulu2-4B", "Qwen3.5-397B-A17B", "GPT-5", "GPT-6.1-sol", "Perplexity", "bartowski"], "also_reported_by": [], "takeaway": "DR-Tulu2-4B averages 49.3 across ten deep-research benchmarks with search versus 7.9 without it, so the search backend, not the model, sets the quality ceiling.", "recommendation": {"advice": "Benchmark a small research model with and without its search tools on your own task set; DR-Tulu2-4B drops from 48.8 to 7.9 when search is removed.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu", "markdown": "https://wpnews.pro/news/how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu.md", "text": "https://wpnews.pro/news/how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu.txt", "jsonld": "https://wpnews.pro/news/how-to-run-dr-tulu-2-locally-open-source-perplexity-alternative-on-a-24-gb-gpu.jsonld"}}