Skip to content

WO92: heb weak-pretrain — knesset-v6 dedupe prep + plane weak-pretrain trainer - #147

Merged
ronaldtse merged 2 commits into
mainfrom
feat/he-weak-pretrain
Nov 19, 2026
Merged

ronaldtse merged 2 commits into
mainfrom
feat/he-weak-pretrain

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

WO92 (models repo TODO.sota/92) stage-1: the Hebrew weak-pretrain
curriculum ported to the plane crown lineage.

  • prep_heb_knesset_weak.py — in-job builder for the weak-pretrain
    corpus from Phonikud/phonikud-data knesset_nikud_v6.txt.7z (MIT,
    sha256-pinned at fetch): plane-mark-set normalization, s45 filters,
    exact-skeleton dedupe (first occurrence wins), 40-char window
    decontam vs the human-verified hebrew-v4 test set, contiguous
    source-order shards + manifest + SHA256SUMS sidecar, uploaded to
    Interscript/he-knesset-v6-weak (private).
  • Explicit drop of the v6 ASCII pipe prefix separator (phonikud
    PREFIX_CHAR U+007C) — inside the printable band, so it needs an
    explicit drop; the s45 comment said drop but its ASCII range kept it.
  • train_hebrew_weakpre_hf.py — the crown plane recipe (run-022:
    byt5-base encoder + plane head, bf16 autocast + fp32 CE, greedy K=3
    mask-predict eval) over the deduped weak corpus COMBINED with the
    full gold train (50,433). 1 epoch default, step-1000 checkpoints
    with the labels.sha resume contract. Eval on the human-verified test
    only (machine labels never gate quality); stage-2 gold SFT stays
    owner-gated.
  • nikud_planes.py + test land on main here — until now they existed
    only on the unmerged feat/run-017-tools branch, leaving the tracked
    plane trainer unrunnable from a clean main checkout.

Test plan

  • test_nikud_planes.py — plane round-trip suite (7 tests)
  • test_heb_weakprep.py — prep policy suite (14 tests): separator
    drops, filters, decontam window collision, dedupe contract
  • prep job run (heb-weakprep-data) — manifest gate: unique yield
    >= 1,000,000 rows; decontam drops <= 0.1%
  • run-093 weak-pretrain job — informational DER + verdict.json

…trainer

prep_heb_knesset_weak.py builds the stage-1 weak corpus in-job from
Phonikud/phonikud-data knesset_nikud_v6.txt.7z (MIT; sha256-pinned):
plane-mark-set normalization, s45 filters, exact-skeleton dedupe,
40-char window decontam vs hebrew-v4 test, contiguous shards +
manifest + SHA256SUMS, uploaded to Interscript/he-knesset-v6-weak.

Explicit drop of the v6 ASCII pipe prefix separator (phonikud
PREFIX_CHAR U+007C) - the s45 comment said drop but its ASCII range
kept it; stress U+05AB and teamim drop via the plane mark set.

train_hebrew_weakpre_hf.py is the crown plane recipe (run-022) over
the deduped weak corpus COMBINED with the full gold train (50,433):
byt5-base encoder + plane head, bf16 autocast + fp32 CE, greedy K=3
mask-predict eval on the human-verified test only. 1 epoch default,
step ckpts + labels.sha resume contract; stage-2 gold SFT stays
owner-gated.

nikud_planes.py lands on main here (until now only on the unmerged
feat/run-017-tools branch, leaving the plane trainer unrunnable from
a clean main checkout). Tests: plane round-trip (7) + prep policy (14).
@ronaldtse
ronaldtse merged commit 2f4a58c into main Nov 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant