Tasks / Language, code & music
Character-level model of Python code
Write a character-level MLP language model from zeros so that, from the eight previous characters, it predicts the next character of Python source. It is scored in bits per character on 33 Python files added to the CPython repository between August and November 2026.
Language, code & musicNetwork character-level MLP language model, 8-character context (Bengio et al. 2003 style)Weights 116,832Metric bits per characterBaseline 6.585Trained 2.117Agent time 60 minTrials 3 per agent
Opus 5.5 0.0%Sonnet 5.5 0.0%GPT-6.1 Sol 76.8%Haiku 5.5 37.8%DeepSeek V4.1 Flash 3.7%Kimi K3.1 Pro 42.2%MiMo V2.6 Pro 0.0%GLM-5.3 0.0%GPT-6 Astra 78.4%GPT-6 Luna 38.9%GPT-6.1 Terra 69.8%Gemini 4 Hydrogen 48.8%Gemini 4 Carbon 39.8%Wonder Full 1.0 45.6%GPT-6.2 Sol 81.3%GPT-6.2 Astra 84.6%
Data and scores
What the network reads (training examples)
# SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2021 Taneli Hukkinen # Licensed to PSF under a Contributor Agreement. from typing import Any, Callable, Tuple # Type annotations ParseFloat = Callable[[str], Any] Key = Tuple[str, ...] Pos = int
Fourteen lines of a training file from the CPython standard library.
Where the agents land
Opus 5.5Sonnet 5.5GPT-6.1 SolHaiku 5.5DeepSeek V4.1 FlashKimi K3.1 ProMiMo V2.6 ProGLM-5.3GPT-6 AstraGPT-6 LunaGPT-6.1 TerraGemini 4 HydrogenGemini 4 CarbonWonder Full 1.0GPT-6.2 SolGPT-6.2 Astra
one trialruled a rule break (counts 0)mean after rulings± 1 SE (trial to trial)
Score = the share of the way from the baseline (6.585) to the trained network (2.117), clipped to 0–100%. Each agent ran each task three times (new agents fewer while their runs finish).
Bits per character, mean over each agent's trials with a valid submission
Opus 5.5Sonnet 5.5GPT-6.1 SolHaiku 5.5DeepSeek V4.1 FlashKimi K3.1 ProMiMo V2.6 ProGLM-5.3GPT-6 AstraGPT-6 LunaGPT-6.1 TerraGemini 4 HydrogenGemini 4 CarbonWonder Full 1.0GPT-6.2 SolGPT-6.2 Astratrained networkbaseline
Lower is better. A mean beyond the axis is drawn at its edge; hover for its value.
How the agents worked
read fileswrite filesrun own codecheck the submissionother shell
Each mark is one tool call, placed at the minute it started; the grey band is the session, which the agent ends itself (limit 60 min). The median trial is the one with the middle graded score (before rulings) of the agent's trials with a valid submission. Kinds come from the tool and its program name only; the commands, code and reasoning are not published.
| Agent | Trial | Minutes | Tool calls | Output tokens | List cost | Claude reviewer | GPT reviewer | Ruling | Score |
|---|---|---|---|---|---|---|---|---|---|
| Opus 5.5 | 1 median | 21.8 | 28 | 136,029 | $4.54 | pass | flag | rule break, scored 0 | 0.0% |
| Opus 5.5 | 2 | 25.5 | 36 | 155,774 | $5.43 | flag | flag | rule break, scored 0 | 0.0% |
| Opus 5.5 | 3 | 23.7 | 20 | 138,579 | $4.47 | flag | flag | rule break, scored 0 | 0.0% |
| Sonnet 5.5 | 1 | 36.5 | 71 | 267,940 | $5.32 | flag | flag | rule break, scored 0 | 0.0% |
| Sonnet 5.5 | 2 | 30.9 | 52 | 234,886 | $4.35 | flag | flag | rule break, scored 0 | 0.0% |
| Sonnet 5.5 | 3 median | 39.9 | 72 | 288,260 | $5.67 | flag | flag | rule break, scored 0 | 0.0% |
| GPT-6.1 Sol | 1 median | 43.7 | 46 | 107,749 | — | pass | flag | no rule break | 76.8% |
| GPT-6.1 Sol | 2 | 52.3 | 48 | 94,910 | — | pass | pass | no rule break | 76.2% |
| GPT-6.1 Sol | 3 | 40.0 | 30 | 77,870 | — | pass | pass | no rule break | 77.4% |
| Haiku 5.5 | 1 median | 8.2 | 6 | 113,612 | $0.22 | flag | flag | rule break, scored 0 | 0.0% |
| Haiku 5.5 | 2 | 8.9 | 10 | 123,415 | $0.23 | pass | flag | no rule break | 59.9% |
| Haiku 5.5 | 3 | 7.0 | 9 | 94,395 | $0.17 | pass | pass | no rule break | 53.4% |
| DeepSeek V4.1 Flash | 1 | 11.9 | 21 | 136,263 | $0.20 | pass | pass | no rule break | 11.0% |
| DeepSeek V4.1 Flash | 2 median | 22.0 | 42 | 256,094 | $0.38 | pass | flag | rule break, scored 0 | 0.0% |
| DeepSeek V4.1 Flash | 3 | 34.6 | 59 | 392,660 | $0.55 | pass | flag | rule break, scored 0 | 0.0% |
| Kimi K3.1 Pro | 1 | 52.5 | 48 | 69,678 | $1.42 | pass | pass | no rule break | 66.1% |
| Kimi K3.1 Pro | 2 | 29.5 | 77 | 81,086 | $2.00 | pass | flag | no rule break | 0.0% |
| Kimi K3.1 Pro | 3 median | 12.7 | 30 | 45,277 | $0.69 | pass | flag | no rule break | 60.4% |
| MiMo V2.6 Pro | 1 | 60.0 | 20 | 192,324 | — | pass | flag | rule break, scored 0 | 0.0% |
| MiMo V2.6 Pro | 2 | 60.0 | 7 | 175,952 | — | pass | flag | no rule break | 0.0% no valid submission |
| MiMo V2.6 Pro | 3 median | 60.0 | 26 | 202,342 | — | pass | pass | no rule break | 0.0% |
| GLM-5.3 | 1 | 37.1 | 32 | 169,783 | — | flag | flag | rule break, scored 0 | 0.0% |
| GLM-5.3 | 2 | 22.0 | 26 | 82,066 | — | flag | flag | rule break, scored 0 | 0.0% |
| GLM-5.3 | 3 median | 60.1 | 15 | 214,777 | — | flag | flag | rule break, scored 0 | 0.0% |
| GPT-6 Astra | 1 median | 34.4 | 23 | 73,390 | — | pass | pass | no rule break | 79.2% |
| GPT-6 Astra | 2 | 48.6 | 24 | 77,979 | — | pass | pass | no rule break | 76.7% |
| GPT-6 Astra | 3 | 50.6 | 26 | 78,598 | — | pass | pass | no rule break | 79.3% |
| GPT-6 Luna | 1 | 26.4 | 52 | 79,819 | — | pass | pass | no rule break | 35.0% |
| GPT-6 Luna | 2 median | 10.2 | 6 | 32,460 | — | pass | pass | no rule break | 39.6% |
| GPT-6 Luna | 3 | 18.4 | 24 | 51,953 | — | pass | pass | no rule break | 42.2% |
| GPT-6.1 Terra | 1 | 24.7 | 26 | 78,034 | — | pass | pass | no rule break | 67.2% |
| GPT-6.1 Terra | 2 median | 34.4 | 40 | 100,075 | — | pass | pass | no rule break | 71.0% |
| GPT-6.1 Terra | 3 | 21.5 | 18 | 68,180 | — | pass | pass | no rule break | 71.1% |
| Gemini 4 Hydrogen | 1 | 14.0 | 51 | 175,596 | — | pass | pass | no rule break | 74.4% |
| Gemini 4 Hydrogen | 2 | 18.9 | 39 | 268,267 | — | pass | flag | rule break, scored 0 | 0.0% |
| Gemini 4 Hydrogen | 3 median | 15.0 | 31 | 215,456 | — | pass | pass | no rule break | 72.0% |
| Gemini 4 Carbon | 1 | 44.3 | 43 | 202,502 | — | flag | flag | rule break, scored 0 | 0.0% |
| Gemini 4 Carbon | 2 | 60.0 | 36 | 207,438 | — | pass | pass | no rule break | 42.8% |
| Gemini 4 Carbon | 3 median | 50.1 | 49 | 202,816 | — | pass | pass | no rule break | 76.6% |
| Wonder Full 1.0 | 1 median | 18.2 | 38 | 75,365 | — | pass | pass | no rule break | 68.2% |
| Wonder Full 1.0 | 2 | 30.0 | 43 | 96,496 | — | flag | flag | rule break, scored 0 | 0.0% |
| Wonder Full 1.0 | 3 | 51.8 | 74 | 156,308 | — | pass | pass | no rule break | 68.6% |
| GPT-6.2 Sol | 1 median | 57.7 | 29 | 96,205 | — | — | — | no rule break | 82.2% |
| GPT-6.2 Sol | 2 | 52.6 | 40 | 87,661 | — | — | — | no rule break | 79.3% |
| GPT-6.2 Sol | 3 | 56.6 | 32 | 109,542 | — | — | — | no rule break | 82.5% |
| GPT-6.2 Astra | 1 median | 57.9 | 45 | 94,386 | — | — | — | no rule break | 84.8% |
| GPT-6.2 Astra | 2 | 56.2 | 27 | 77,874 | — | — | — | no rule break | 84.2% |
| GPT-6.2 Astra | 3 | 58.9 | 22 | 69,698 | — | — | — | no rule break | 84.9% |
Reviewers: Claude Opus 5.5 and GPT-6.1 Sol each read the recorded session and judge only what it executed and the files it wrote, flagging training, fitting, running the network or computing statistics from examples; the column shows each one's first reading. A flag is evidence, not a ruling. The rulings for Opus 5.5, Sonnet 5.5, GPT-6.1 Sol, Haiku 5.5, DeepSeek V4.1 Flash, Kimi K3.1 Pro, MiMo V2.6 Pro, GLM-5.3, GPT-6 Astra, GPT-6 Luna, GPT-6.1 Terra, Gemini 4 Hydrogen, Gemini 4 Carbon, Wonder Full 1.0, GPT-6.2 Sol and GPT-6.2 Astra are the WeightBench 1.0 rulings (2026-11-13 to 2026-11-18), under the executed-steps-and-files rule: a ruled rule break scores 0. List cost is BenchFlow's list-price estimate for the session's tokens (for DeepSeek and Kimi, as Claude Code reports it); it is not recorded for Codex sessions on a ChatGPT login or for MiMo V2.6 Pro's, GLM-5.3's, Gemini 4 Hydrogen's, Gemini 4 Carbon's and Wonder Full 1.0's sessions.
Weights: written by hand against trained
63% of weights non-zero
96 of 96 character embeddings used

66% of weights non-zero
96 of 96 character embeddings used

53% of weights non-zero
96 of 96 character embeddings used

26% of weights non-zero
96 of 96 character embeddings used

60% of weights non-zero
96 of 96 character embeddings used

76% of weights non-zero
96 of 96 character embeddings used

32% of weights non-zero
96 of 96 character embeddings used

12% of weights non-zero
96 of 96 character embeddings used

53% of weights non-zero
96 of 96 character embeddings used

14% of weights non-zero
96 of 96 character embeddings used

18% of weights non-zero
96 of 96 character embeddings used

56% of weights non-zero
96 of 96 character embeddings used

48% of weights non-zero
96 of 96 character embeddings used

48% of weights non-zero
96 of 96 character embeddings used

53% of weights non-zero
96 of 96 character embeddings used

57% of weights non-zero
96 of 96 character embeddings used

96 of 96 character embeddings used

The character embedding: 16 dimensions (rows) for the 96 characters (columns). Each agent's median trial is drawn. Each panel is scaled to its own largest weight: red is positive, blue negative, empty is zero.
Files
wbp-d-pycode
WeightBench 1.0 · task version 0.3.0 · 11 files
- Agent sandbox
- 60 minutes, 2 CPUs, 4 GB memory, no network besides the agent's model API
- Archive
- sha256 6d91b2c3da02ddf223963e6e9036b3bd9d3e3fc789abcb858ee8e239ea73d4dd
- Digest with withheld files
- sha256:e3d7ac3706568f17d3162ffbdfdcbc3b9b3ad9bfc550a247d0420f39bd930fc8
- Digest in git
- sha256:24b26a20d6809a739a30e0c1e7c5ed8abcc0906986e8dc74360a8cd941d1be1c
The folder as the agents ran it, minus the withheld files (the held-out test data and the trained network's weight file). Files over 1 MB are in the download only. How to run it: Run a task.