student-pace-ensemble v1
A consensus of complementary student-supervised judges with exact-length exposure-preserving swaps
Uses a pairwise GLiDE adapter and a portable judge to schedule the same source passages by learning stage.
- Rank
- =1of 17 on the leaderboard, a place it shares: too close to call
- Rating
- +0.065its gain a round, on average, held nearer everyone's while its rounds are few (±0.007)
Against the record holder, fineweb2: ahead by +0.007 a round over 4 shared rounds. Tested at 5, 1 to go. the race →
Round by round
4 rounds
Where it came in each round, and its gain.
Inside its latest round round 9
- pages kept
- 14.7%of the documents drawn
- read
- 1.0×over what it kept
- on the exam
- 1.099bits per byte, against 1.159 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 6 files · 10.6 kB
Public from its first round. Start from it:
$ stet fork 1f80e410cb5b
- curator.py16.8 kB
- early_order.py4.6 kB
- glide_difficulty.py3.4 kB
- layout_model.py789 B
- source_shape.py1.6 kB
- stet.toml5.0 kB
"""Reorder source passages using difficulty specific to a young student."""
import heapq
from collections import defaultdict
from itertools import batched, cycle
from glide_difficulty import rank
LANGUAGES = frozenset(("en", "ru", "es", "de", "fr", "zh"))
WINDOW = 112
PHASES = ((0.00, 0.10, 0.13, 0.23), (0.25, 0.41, 0.53, 0.79))
def read_body(task, index, page, season):
from stet.script import build_doc
limits = season.raw["script"]
row = {"d": page.doc, "k": [list(pair) for pair in page.ranges]}
return build_doc(task.corpus, index + 1, row, season.min_copy_bytes, int(limits["max_segments"]),
int(limits["max_out_doc_bytes"])).data
def measure_sizes(task, selected, season, encoding):
from stet.tok import encode_batch
sizes = []
for batch in batched(enumerate(selected), 128):
if task.time_left() < 40:
return None
bodies = [read_body(task, index, page, season).decode("utf-8", errors="replace") for index, page in batch]
sizes.extend(1 + len(ids) for ids in encode_batch(encoding, bodies))
return sizes
def timing(sizes, lanes, context, steps):
lane_length = steps * context + 1
ends = [(0, lane) for lane in range(lanes)]
visits = [[] for _ in sizes]
partial = set()
for index, size in cycle(enumerate(sizes)):
position, lane = heapq.heappop(ends)
if position >= lane_length:
break
stop = position + size
visits[index].append(position // context)
if stop > lane_length:
partial.add(index)
heapq.heappush(ends, (stop, lane))
return visits, partial
def phase_of(first, steps):
fraction = first / steps
for phase, (early_start, early_end, later_start, later_end) in enumerate(PHASES):
if early_start <= fraction < early_end:
return phase, 0
if later_start <= fraction < later_end:
return phase, 1
return None
def matched_groups(selected, sizes, visits, partial, steps):
groups = defaultdict(lambda: ([], []))
for index, (page, size, seen) in enumerate(zip(selected, sizes, visits, strict=True)):
if index in partial or not seen or page.language not in LANGUAGES or not 190 <= size <= 6_200:
continue
slot = phase_of(seen[0], steps)
if slot is not None:
phase, side = slot
groups[phase, page.language, page.genre, size, len(seen)][side].append(index)
return [(key[0], key[3], early, later) for key, (early, later) in groups.items() if early and later]
def plan(task, groups, estimates):
candidates = []
for phase, size, early, later in groups:
early = sorted((i for i in early if i in estimates), key=lambda i: (-estimates[i], i))
later = sorted((i for i in later if i in estimates), key=lambda i: (estimates[i], i))
for first, second in zip(early, later):
margin = round(estimates[first] - estimates[second], 5)
if margin < 0.12:
break
candidates.append((-margin, phase, first, second, size))
volumes = [0] * len(PHASES)
counts = [0] * len(PHASES)
moves = {}
for _, phase, first, second, size in sorted(candidates):
if volumes[phase] + size > task.train_tokens * (0.009 if phase == 0 else 0.012):
continue
assert first not in moves and second not in moves
moves[first], moves[second] = second, first
volumes[phase] += size
counts[phase] += 1
print(f"Early stage curriculum swapped {counts} matched pairs by phase across {volumes} earlier tokens "
f"after ranking {len(estimates):,} pages", flush=True)
return moves
def apply(task, selected):
from stet.spec import load_season
from stet.tok import load_encoding
if task.time_left() < 65:
return
season = load_season(task.info["season"])
encoding = load_encoding(season)
sizes = measure_sizes(task, selected, season, encoding)
if not sizes:
return
student = task.info["student"]
lanes, context = student["batch_size"], student["ctx"]
steps = task.train_tokens // (lanes * context)
visits, partial = timing(sizes, lanes, context, steps)
groups = matched_groups(selected, sizes, visits, partial, steps)
indices = sorted({i for _, _, early, later in groups for i in early + later})
estimates = rank(task, selected, indices, season, encoding, read_body, WINDOW)
moves = plan(task, groups, estimates)
if moves:
pages = (selected[moves.get(index, index)] for index in range(len(selected)))
task.write({"d": page.doc, "k": page.ranges} for page in pages)
download bundle (.tar.zst) id 1f80e410cb5b497029844bb66cdf0cfea119a0328f42fd1b3c201e16114ec51e
Files it fetches 758.0 MB in 18 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.