Skip to content
ericfloPublic

About

Stet: an open competition for programs that edit pretraining data. The model is fixed; only the data moves.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

283 Commits

Folders and files

Repository files navigation

Stet

The model is fixed. The trainer is fixed. The only thing you can touch is the data.

Stet is an open competition to make the best training data. You enter a curator: a program that is handed raw web pages it has never seen and twenty minutes on one GPU. It decides what to keep, what to cut, and in what order. How is up to you: a few rules, a small model you fine-tuned and run over every chunk, an agent harness driving a model of your own. A small language model, the student, is trained on the result and sits an exam made when the round is drawn. The bigger its gain over a student trained on the raw pages, the better.

www.stetrun.com · stet: the proofreader's mark for "let it stand".

Enter

curl -fsSL https://www.stetrun.com/install.sh | sh
stet init my-curator && cd my-curator
stet harvest              # once: recent human writing for practice exams, no account needed
stet run                  # edit, train, grade a practice round: a minute or two on a GPU
stet login --github       # entering needs a GitHub account at least 30 days old
stet submit

stet run has no limit and uploads nothing: try as many ideas as you like, then submit the ones worth volunteers' GPU time. Without stet harvest a practice exam has no human writing, which is three quarters of an official score. Using a coding agent? Tell it: Read https://www.stetrun.com/AGENTS.md and enter Stet. · How to enter

Lend a GPU

Scores are made on volunteers' machines: each curator is run by two people, each script graded by someone else, all of it published.

stet login
stet verify               # grade edit scripts: plain data, nobody else's code
stet verify --edits       # also run entrants' curators, in a sandbox (Linux)
stet service install      # leave it running: starts with the machine, upgrades itself

Verify scores · Run curators

How it stays honest

  • Draw after commit. A public randomness beacon picks each round's corpus from the newest Common Crawl after entries are locked.
  • An exam nobody can know. Each round's exam is made at its draw. Three quarters of the score is human writing from three hours of the day before, picked by the draw, in every language by its share of the crawl. One quarter is skills, generated from the round's seed. A curator runs with no network and can add no text of its own, so the exam cannot reach the student through it.
  • Only what tells curators apart. Every part of the exam was measured before the season. A part on which curators differed by less than luck does, or whose order did not hold for a larger student, is not on it: nothing is sat that does not count.
  • Copies only. Everything the student reads is copied byte for byte from the round's corpus. A script holds no text of its own.
  • Checked by other people. Two volunteers run each curator, on NVIDIA and AMD, and someone else grades each script. A score that only one machine stands behind says so, and no score needs the organisers' machines to run or grade anything.
  • The same machine for every curator. Six cores, 12 GB, 8 GB of GPU memory, a fixed list of libraries, whoever runs it.
  • Paired scores. Gain is measured against the unedited corpus on the same round, and the record needs a margin over shared rounds.
  • Finals decide. The season's top eight, and one more drawn by lot, are trained again at a larger size, on two rounds of a crawl published after the board is frozen.
  • Everything else is public. Curators, scripts, seeds, every settled round's exam and every score on every item of it, the harness.

Train a policy on it

from stet.gym import Env

env = Env(scale="nano")
obs = env.reset(0)                    # a raw corpus and the task
reward, info = env.step(edit_script)  # the gain, in bits per byte

Layout

Path What
src/stet/ The harness and CLI (Python); src/stet/exam/ makes and scores the exam
server/ The API and website (Go)
examples/ Reference curators, entered by the organisers: identity, english, tidy, and dclm, fineweb-edu, heuristic, fineweb2 (published recipes, rebuilt); and mimic, entered to show what choosing the pages most like the exam buys. Patterns, not entered: reader (a small language model reads the pages); agent (an agent harness and a model served in the sandbox)
cloud/ stet-cloud, for the organisers: rents GPUs from Vast.ai, RunPod, Lium, Clore.ai and Salad to run curators and grade while volunteers are few (Go, built on its own)
docs/ Rules, design, verifying, experiments, API, FAQ, operating, and the reasoning behind the exam

Develop

uv venv --python 3.13 && uv pip install -e '.[dev,run]'   # with --index for an AMD build of PyTorch
pytest && ruff check src tests tools examples
(cd server && go test ./...)
tools/dev.sh                            # the whole thing locally, on a real durable-db

About

Stet: an open competition for programs that edit pretraining data. The model is fixed; only the data moves.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages