Explore the research collection
1 entry · Follow this search
- Paper
nanoswe: Speedrunning SWE-bench — a 2.8B agent trained from scratch for ~$1,000 reaches 25.5% on SWE-bench Verified
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.