# nanoswe: Speedrunning SWE-bench — a 2.8B agent trained from scratch for ~$1,000 reaches 25.5% on SWE-bench Verified

- **ID:** 1354
- **Kind:** paper
- **URL:** https://www.nanoswe.com/blog.html
- **Authors:** Ricardo Olmedo, Moritz Hardt, Bernhard Schölkopf (Max Planck Institute for Intelligent Systems, Tübingen), Sanmi Koyejo (Stanford University)
- **Venue:** project blog / GitHub (nanosweb/nanoswe); leaderboard nanoswe.com
- **Source:** x
- **Language:** en
- **Access:** free
- **Added:** 2026-10-12
- **Verified:** 2026-10-12
- **Page:** https://papers.projxon.ai/entries/1354

## Summary

nanoswe is a community speedrun of SWE-bench Verified, forked from Karpathy's nanochat: how good a coding agent can ~$1,000 of train compute buy when the model is trained from random initialization on agentic SWE trajectories, with SWE-bench's 12 source repositories strictly held out (the 1.59M-trajectory corpus was audited and 4,516 violating rows purged)? Budgets are denominated in B200-hours at $5/h ($60 track = 12 h; $1000 track = 192 h). The August 2026 scaling sweep found solve rate roughly log-linear in train compute: a ~$10 run already scores 0.53% pass@1, the $60 run (1.38B) reaches 5.0% — the level of Claude 2 at SWE-bench's release — and the $1000 run (5.67B) reaches 11.0%. Two findings complicate the distillation story. First, a stronger teacher can be a worse teacher: replacing Qwen-Coder-30B-A3B trajectories (teacher at 29% pass@1) with Qwen 3.6 35B A3B trajectories (58%) dropped the $60 student from 5.0% to 2.1%, because the stronger teacher's test-first workflow leaves the weak student stuck writing reproduction tests (no patch in 74% of attempts vs 8%). Second, trajectory-only training buys code and little else: the speedruns generalize to synthetic bugs that exist nowhere online and to bugs from real 2026 pull requests, but MMLU and GSM8K do not improve with speedrun compute even after elicitation fine-tuning, while a differential-item-functioning analysis against SmolLM3-3B fine-tunes finds no detectable problem-coverage blind spots from skipping web pretraining — at matched ability the cohorts solve essentially the same problems. The current $1000-track record (Oct 2026) shrinks the model to 2.82B and adds a short web warmup: 6.7B FineWeb-Edu tokens, then 37.8B tokens of SWE-smith trajectories from a Nemotron teacher, reaching 25.47% pass@1 (pass@5 41.4%) on the project's 483-instance cluster-runnable subset of Verified — above the originally reported scores of Claude 3 Opus (15.8%) and GPT-4o (23.2%), under a different scaffold.

## Research notes

- Discovery: @rdolmedo_ X post 2026-10-12 ~10:43 AM ET (~5.1K views) announcing the 25.5% record. Discrepancies flagged: the tweet says "1.7B" but the record model's HF card (nanoswe/nanoswe-192h-261006) states 2,818,575,450 parameters; and the headline comparison is cross-scaffold — 25.47% is pass@1 (K=5, temp 0.7) on a 483-of-500-instance subset under the project's own tool-call agent (bash + file_editor, 100 steps, 8,192 tokens/turn, vLLM), vs Opus/GPT-4o figures from their original evaluations. The blog itself cautions that speedrun-vs-Claude comparisons are unfair along test-task training and scale (~1000× less compute). Relevance: (1) Architecture — the nanochat-derived model uses an SSSL pattern, three 8,192-token sliding-window layers per full-attention layer, i.e. the user's own 3:1 SWA:full-attention ratio, plus value embeddings on alternating layers (cf. queued MGVR item) and a smear gate. (2) Post-training/data — the stronger-teacher paradox is a student-aware data-curation result that travels to any distillation pipeline: teacher trajectory *style* (patch-first vs test-first) can dominate teacher accuracy for weak students. (3) Specialization vs generality — from-scratch task-targeted training reaching named-model scores at ~$1,000 is the extreme data point for his pretraining economics; Olmedo is also an author of "Training on the Test Task Confounds Evaluation and Emergence" (ICLR 2025), and the blog's own fairness caveats reflect that lens. (4) The speedrun is explicitly pitched as an autoresearch testbed (fixed budget, experimentation uncapped). Cluster: SWE-agent training (1625 GRPO on DeepSWE, 1633 predicting post-training coding-agent performance from base models, 1547 CAID async SWE agents), nanochat speedrun line (799), from-scratch/specialization thread. Repo: github.com/nanosweb/nanoswe (MIT); datasets nanoswe/nanoswe-trajs-* on HF; eval trajectories public on Harbor Hub. All numbers are the project's own reported results (open artifacts, independently re-runnable, but not independently reproduced at catalog time).
- License: MIT (repo and model cards). Code + weights + trajectory datasets all public (HF org nanoswe; github.com/nanosweb/nanoswe). Paper in submission, no arXiv at catalog time.

## Similar entries

- [ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results](https://papers.projxon.ai/entries/830) (benchmark, #830)
- [Scaling Verifiable Environments for Long-horizon Work Agents](https://papers.projxon.ai/entries/1289) (paper, #1289)
- [Marathoner: Ultra-Long-Horizon Autonomous Intelligence](https://papers.projxon.ai/entries/837) (paper, #837)
- [Cross-Benchmark Transfer from RL on Agentic Coding Tasks](https://papers.projxon.ai/entries/1245) (paper, #1245)
- [Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models](https://papers.projxon.ai/entries/1326) (paper, #1326)
- [daVinci-Env: Open SWE Environment Synthesis at Scale](https://papers.projxon.ai/entries/1126) (paper, #1126)
