aligned-native-restoration v1
Exact-width passage restoration and context refill with constrained neighboring-passage swaps
Restores continuous source text, refills repeated contexts, and gives long passage openings more room.
- Rank
- not yet1 of the 3 rounds it needs to be ranked
- Rating
- +0.053its gain a round, on average, held nearer everyone's while its rounds are few (±0.014)
Against the record holder, fineweb2: ahead by +0.010 a round over 1 shared round. Tested at 5, 4 to go. the race →
Round by round
1 round
Where it came in each round, and its gain.
Inside its latest round round 11
- pages kept
- 14.7%of the documents drawn
- read
- 1.0×over what it kept
- on the exam
- 1.085bits per byte, against 1.149 unedited
Where the gain comes from
Its gain on each part of the exam, in bits per byte better than unedited. The kinds of writing are three quarters of the score, the skills one quarter. Right is better.
The model, learning from it
Training loss on its pages. Low here is not the goal; the exam is.
Its code 14 files · 21.8 kB
Public from its first round. Start from it:
$ stet fork e91f5246372e
- context_refill.py9.6 kB
- continuity.py3.8 kB
- curator.py17.8 kB
- early_order.py6.4 kB
- lengths.py1.5 kB
- native_restore.py7.1 kB
- packing_blocks.py4.0 kB
- passage_order.py6.0 kB
- prose_selection.py3.9 kB
- repetition_detection.py4.9 kB
- restore_and_refill.py1.7 kB
- stet.toml1.3 kB
- teacher_rank.py3.0 kB
- technical_rehearsal.py7.4 kB
"""Combine exact-width same-page restorations with cross-source repetition refill."""
import json
from types import SimpleNamespace
from stet.spec import load_season
from stet.tok import load_encoding
from context_refill import apply as refill
from context_refill import build, spans
from native_restore import EDIT_FRACTION, collect, sample
def read_rows(path):
with path.open(encoding="utf-8") as stream:
return [json.loads(line) for line in stream]
def apply(task, widths, detector):
if detector is None or task.train_tokens < 80_000_000 or task.time_left() < 380:
return
student = task.info["student"]
context, batch = student["ctx"], student["batch_size"]
scale = SimpleNamespace(steps=task.train_tokens // (context * batch), ctx=context, batch_size=batch)
path = task.out / "script.jsonl"
original = read_rows(path)
if len(original) != len(widths):
return
season = load_season(task.info["season"])
encoding = load_encoding(season)
choices, _ = collect({"build": build, "spans": spans}, task.corpus, season, scale, original, widths,
encoding, detector, time_left=lambda: task.time_left() - 320)
selected, _ = sample(choices, round(task.train_tokens * EDIT_FRACTION))
refill(task, widths, detector)
if not selected or task.time_left() < 8:
return original
revised = read_rows(path)
retained = 0
for item in selected:
if revised[item.slot] == original[item.slot]:
revised[item.slot] = item.row
retained += 1
if retained:
print(f"Restored {retained:,} native passage contexts and kept {len(selected) - retained:,} overlapping refills",
flush=True)
task.write(revised)
return original
download bundle (.tar.zst) id e91f5246372e617ca0cf26c0c10abbd3ed041e48af2b7cec0c419950c71808b3
Files it fetches 112.9 MB in 4 files
Too large for the bundle, so named in it by address and hash. Every machine that runs it downloads each one and checks its sha256 before the curator starts, and the curator still has no network.
| Path | Size | sha256 | From |
|---|---|---|---|
| language/lid.176.ftz | 916.0 kB | 8f3472cfe873 | https://huggingface.co/julien-c/fasttext-language-id/resolve/9f2e94d2fd6b2615d26f5ec5b34cf7e2f38cb86e/lid.176.ftz |
| difficulty/early.safetensors | 56.0 MB | f828164714bf | https://huggingface.co/ericflo/stet-matched-student-pace/resolve/a11215d67107307d0e76180494f41755edf4917d/early.safetensors |
| difficulty/mature.safetensors | 56.0 MB | 64c2afc22042 | https://huggingface.co/ericflo/stet-matched-student-pace/resolve/a11215d67107307d0e76180494f41755edf4917d/mature.safetensors |
| difficulty/calibration.json | 170 B | 3be8effd9fd9 | https://huggingface.co/ericflo/stet-matched-student-pace/resolve/a11215d67107307d0e76180494f41755edf4917d/calibration.json |
| total | 112.9 MB |