DR Tulu 2 (Ai• — Agent for Deep Research on 4B

Cover image for article 1164

On December 1, 2026, Ai2 (Allen Institute for AI) released DR Tulu 2 — an agent for deep research based on Qwen3.5-4B with context up to 150 thousand tokens. The model positions itself as a specialized instrument for scientific tasks: literature review, hypothesis synthesis, data analysis, code generation for experiments. Unlike universal chat models, DR Tulu 2 is trained on chains of thought (CoT) with emphasis on multi-step logical derivations and long-context work. Selectel published a technical breakdown with comparison against Xiaomi-Lens-0 and application scenarios.

Related: Qwen 3.8 family guide

Related: open model decision tree

Architecture and Training

Base model — Qwen3.5-4B (Dense, not MoE), 4 billion parameters, rotary positional embeddings (RoPE) with 1M base, Grouped Query Attention (8 groups for 32 heads), SwiGLU FFN, RMSNorm. Context window extended from 32k to 150k via YaRN (Yet another RoPE extensioN) interpolation with factor 4.6875 and attention sink enhancement. Tokenizer — Qwen3 BPE, 151643 tokens, supports 100+ languages, optimized for code and formulas.

Training in three stages: • Continued pre-training on 2T tokens of scientific corpora (arXiv, PubMed, patents, GitHub, Wikipedia, technical documentation) — domain adaptation. • Supervised Fine-Tuning (SFT) on 500k CoT reasoning examples: multi-hop QA, theorem proofs, table analysis, experiment protocol generation. • Direct Preference Optimization (DPO) with pairwise expert-researcher preferences — rewarding reasoning quality, not just answer fluency. Reward model trained on 15 PhD-level annotators by criteria: logical consistency, source completeness, absence of hallucinations, code reproducibility.

Comparison with Xiaomi-Lens-0

Xiaomi-Lens-0 — 7B MoE (1.3B active), also science-oriented, 128k context. DR Tulu 2 (4B Dense) wins in knowledge density per parameter: on SciBench (physics, chemistry, biology, CS) — 78.3% vs 74.1% pass@1; on MathVista (math + visual reasoning) — 62.7% vs 58.9%; on GPQA Diamond (expert questions) — 54.2% vs 51.8%. Meanwhile DR Tulu 2 inference is 1.8x faster on single GPU (RTX 4090, Q8_0 GGUF): 42 tok/s vs 23 tok/s — Dense architecture doesn’t require expert routing.

On long context: Needle-in-Haystack at 120k — DR Tulu 2 finds needle in 99.2% cases, Xiaomi-Lens-0 — 96.8%. On RAG benchmark (100 documents x 1k tokens, question requires synthesis of 5+ sources) — F1 0.81 vs 0.76. However Xiaomi-Lens-0 wins on tasks with many parallel function calling instruments (20+ tools) — MoE architecture scales better by skill routing. For pure research tasks DR Tulu 2 is preferable.

Scientific Application Scenarios

Literature Review Agent. Load 50-100 PDFs (via pdf2text → chunking → embeddings), prompt “write state-of-the-art review on topic X with citations of key works”. DR Tulu 2 fits into 150k context (~120k source tokens + prompt + answer), generates structured review with inline citations `[arXiv:2401.12345]`. Generation time ~3 minutes on RTX 4090. Quality per expert evaluation — matches 1-2 year postdoc level.

Hypothesis Generation. Given problem description, available datasets, budget/hardware constraints. Model proposes 5-10 testable hypotheses with justification, experiment design, sample size estimation and risks. Example from article: “Propose approach to improve sample efficiency in offline RL for robotics” — DR Tulu 2 produced 7 hypotheses, 3 novel (world model for trajectory synthesis, curriculum learning by reward variance, contrastive pretraining on simulator).

Code Generation for Experiments. On HumanEval+ and MBPP+ — 84.1% and 79.3% pass@1 (Q8_0), 4-5% above base Qwen3.5-4B. Especially strong in scientific libraries: JAX, PyTorch Lightning, HuggingFace Transformers, Polars, Scanpy. Generates reproducible scripts with configs, Weights & Biases logging, sidestep handling. For code migration between frameworks see our code migration agents breakdown.

Data Analysis and Visualization. Accepts CSV/Parquet up to 50 MB (as text or via Python REPL tool call), builds EDA reports, statistical tests, charts. Tool calling integration: model calls `python_repl` with analysis code, receives stdout/stderr/charts, interprets results, writes conclusion. Full “data → insight → report” cycle in 1-2 minutes.

Local Deployment and Quantization

DR Tulu 2 releases in GGUF: Q2_K (2.1 GB), Q3_K_M (2.7 GB), Q4_K_M (3.2 GB), Q5_K_M (3.8 GB), Q6_K (4.4 GB), Q8_0 (5.1 GB). For research tasks authors recommend Q4_K_M — quality/speed balance. On MacBook Pro M3 Max (128 GB unified) — 65 tok/s (Q4_K_M, llama.cpp, Metal). On RTX 3060 12 GB — 38 tok/s (Q4_K_M, offload 35 layers). On CPU (Ryzen 7950X, 128 GB DDR• — 18 tok/s (Q4_K_M, 16 threads). 150k context needs ~3.5 GB RAM for KV-cache (bf16), total at Q4_K_M: model 3.2 GB + KV 3.5 GB + context ~1.5 GB = ~8.2 GB minimum.

For max context work use `llama.cpp` with flags `-c 150000 -fa` (flash attention) and `–rope-scaling yarn –rope-scale 4.6875`. In Ollama: `ollama run dr-tulu-2:q4_k_m –num-ctx 150000`. In vLLM: `max_model_len=150000`, `rope_scaling={“type”:”yarn”,”factor”:4.6875}`. Note: at context >100k generation speed drops 15 to 20% due to quadratic attention complexity — see 200k vs 1M context breakdown.

Limitations and Gotchas

  • Model prone to overthinking: on simple questions may generate 2-3k tokens of reasoning before short answer. Mitigated by prompt “answer concisely, output briefly” or temperature 0.1.
  • Knowledge cutoff June 2026 (pre-training cutoff). For current papers need RAG — plug vector base with latest arXiv dumps.
  • Function calling works only via OpenAI tool calling format, no native plugins. Python REPL integration via custom `python_repl` tool.
  • Russian language quality noticeably lower than English (~3-5% by benchmarks) — expect English prompt degradation in scientific corpus.
  • Ai2 ImpACT license (similar to Apache 2.0 with commercial use restriction for large corps >$1M revenue). For startups and academia — free.

Model choice for research pipeline: if task is deep reading and synthesis of long texts — DR Tulu 2 (4B, 150k). If need many parallel instruments and agents — Xiaomi-Lens-0 (7B MoE, 128k). For general coding — Qwen3.5-Coder-7B/32B. For extreme context (1M+) — specialized Jina-Embeddings-v3 + generator models. Our open model decision tree and model choice guide by task help decide.

Useful resources: Ai2 models on Hugging Face, Hugging Face documentation.

Spoiler: DR Tulu 2 Application for RAG and Embeddings in Research Tasks

Practical recipe for local research agent on DR Tulu 2: • Hardware: RTX 3060 12GB / 4060 16GB / Mac M3 36GB+ — fits in Q4_K_M with 150k context. • Software: llama.cpp (b4800+) or Ollama 0.5.10+, vector DB — Qdrant (local, Docker), embeddings — bge-m3 or jina-embeddings-v3 (support 8192 context, multilingual). • Indexing: download arXiv bulk for 2024-2026 (~2.5M abstracts), chunk by 512 tokens with overlap 50, embed with bge-m3 (batches 32, GPU), load into Qdrant collection `arxiv_2024_2026` with payload `{title, authors, categories, year, url}`. • Query pipeline: user asks → embed query → hybrid top-20 search in Qdrant (dense + sparse BM• → cross-encoder rerank (bge-reranker-v2-m• → top-5 into DR Tulu 2 context → prompt: “You are a research assistant. Use ONLY provided fragments. Cite [arXiv:ID]. Answer structured: intro, key findings, open problems, verification hypotheses”. • Generation: `temperature=0.2, top_p=0.9, max_tokens=4096, num_ctx=150000`. • Post-processing: citation parsing, hallucination check via second prompt “verify this statement exists in source X”. Quality: on 50 ML/LLM questions test — 89% fully correct answers with valid citations, 7% partial, 4% refusals. For production add query embedding cache (Redis, TTL 7 days) and full step logging to ClickHouse for audit.

DR Tulu 2 Application for RAG and Embedding in Research Tasks (model)

Local research agent recipe: • GPU: RTX 3060 12GB / 4060 16GB / Mac M3 36GB+. • llama.cpp/Ollama, Qdrant, bge-m3 embeddings. • Index arXiv 2024-2026 (2.5M abstracts), chunk 512 tokens. • Query: embed -> hybrid search (dense+BM• -> cross-encoder rerank -> top-5 to DR Tulu 2. • Generate with temp=0.2, num_ctx=150000. • Post-process: verify citations. Cost: $0 inference, ~2h indexing on RTX 4090.
Like this post? Please share to your friends:
11AI - Your Free LLM
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: