paced-prose-selection v1
Two-student pacing and exact-length late prose substitutions within each language and form
Keeps a student-paced training schedule and replaces selected late prose with more coherent sources of the same token length.
- Rank
- =8of 17 on the leaderboard, a place it shares: too close to call
- Rating
- +0.048its gain a round, on average, held nearer everyone's while its rounds are few (±0.008)
Round by round
3 rounds
Where it came in each round, and its gain.
Inside its latest round round 10
- pages kept
- 14.7%of the documents drawn
- read
- 1.0×over what it kept
- on the exam
- 1.101bits per byte, against 1.152 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 7 files · 11.8 kB
Public from its first round. Start from it:
$ stet fork b4fe039a5827
- continuity.py3.8 kB
- curator.py17.4 kB
- early_order.py6.4 kB
- lengths.py1.5 kB
- prose_selection.py3.9 kB
- stet.toml1.3 kB
- teacher_rank.py3.0 kB
from stet.tok import Unreadable, encode_one
def prefix_ranges(ranges, length):
kept = []
for left, right in ranges:
amount = min(length, right - left)
if amount < 64:
return None
kept.append((left, left + amount))
length -= amount
if length == 0:
return kept
return None
class CountedPages:
def __init__(self, corpus, encoding):
self.corpus = corpus
self.encoding = encoding
self.cache = {}
def encode(self, page, ranges):
raw = self.corpus.raw(page.doc)
parts = [raw[left:right] for left, right in ranges]
try:
return encode_one(self.encoding, b"".join(parts).decode("utf-8"))
except (UnicodeDecodeError, Unreadable):
return []
def count(self, page):
if page.doc not in self.cache:
self.cache[page.doc] = len(self.encode(page, page.ranges))
return self.cache[page.doc]
def fit(self, page, count):
length = self.count(page)
if length == count:
return page.ranges
if length < count:
return None
tokens = self.encode(page, page.ranges)
estimate = len(self.encoding.decode_bytes(tokens[:count]))
offsets = [0, *(value for step in range(1, 13) for value in (-step, step))]
for offset in offsets:
fitted = prefix_ranges(page.ranges, estimate + offset)
if fitted and len(self.encode(page, fitted)) == count:
return fitted
return None
download bundle (.tar.zst) id b4fe039a582713def1066b9711e33a0de9e09ed4b2c62819c94ad1f0b004c113
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 |