@mailwoman/neural-weights-en-us 6.4.0 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/model-card.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "neural-weights-en-us",
3
- "version": "6.4.0",
4
- "model_lineage": "v3.1.0-fr-fragment (v310, #1143 T2) — init_from v264 (v2.6.4-country-softguard), ONE variable: the `synth-fr-fragment` BAN shard @ 12.0. Tokenizer v0.9.0-multisplice (73,143) UNCHANGED; every lexicon UNCHANGED; architecture identical. The shard is 144,865 rows built from BAN (Base Adresse Nationale, Licence Ouverte) over 6 fragment forms plus a 20% bare-locality counter-distribution, with all 2,400 eval surfaces reserved out (cross_pollution 0.00%). It targets the house-number LICENCE: the model had learned that digits license the street reading, so a street name without a house number was read as a locality. FR fragment board — bare-street 0.215→0.715 (+50.0pp), street-particle 0.273→0.855 (+58.2pp), admin-street-homonym 0.087→0.517 (+43.0pp), date-name 0.055→0.158 (+10.3pp); no target's CI overlaps its baseline. The counter-guard held EXACTLY (bare-locality 0.980→0.980, same interval) — the model learned the distinction rather than flipping its default — and both contextful guards IMPROVED (street-housenumber 0.925→0.948, alnum-housenumber 0.925→0.960). Global parity street 0.577→0.6067 (+8 fixtures); house_number 117/146 and postcode 71/72 identical. Documented in docs/articles/evals/2026-07-16-t2-fr-fragment-verdict.md.",
5
- "phase": "PROMOTED (6.4.0) — v310 fr-fragment (#1143 T2): init_from v264 + the BAN fr-fragment shard @ 12.0. Teaches bare-street polarity (a street name is a street name without a house number). Gated on v6.0.0-shipped-baseline 18/18 + both eval boards + the 2pp pre-publish bar. Weights-only: no lexicon, inference, or browser change from 6.3.x.",
3
+ "version": "6.5.0",
4
+ "model_lineage": "v3.8.1-punct-fix-full (v381) — init_from v310 (v3.1.0-fr-fragment, the shipped 6.4.0), TWO folded changes: (1) the synth-no-fragment shard at the all-length long-number boost (corpus/src/shard-recipes/no-fragment.ts, --long-number-boost 6 --long-number-min-digits 1) — the digit-ownership lever that teaches the street/number boundary; (2) augment_punct_drop_prob 0.3 — the delimiter-free training augmentation (#1101), an extra comma-stripped copy per row with spans re-targeted. Tokenizer v0.9.0-multisplice (73,143) UNCHANGED; every lexicon UNCHANGED; architecture identical. Weights-only vs 6.4.x.",
5
+ "phase": "PROMOTED (6.5.0) — v381: the digit-ownership no-fragment shard + the #1101 punct-drop augmentation, init_from v310. FIRST model to pass the full Gauntlet clean (regression + metamorphic + held-out): shipped 6.4.0 FAILS the metamorphic INV[comma-drop] on '1600 Pennsylvania Ave NW Washington DC' (absorbs the locality into the street, loses the rooftop, falls to admin ~2km); v381 fixes it. Gated on v6.0.0-shipped-baseline (PASS, 0 tags >2pp below shipped, +2.3pp us.country_homograph) + the Gauntlet (PASS — clear to ship). Weights-only: no lexicon, inference, or browser change from 6.4.x.",
6
6
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
7
7
  "locale": "en-us",
8
8
  "training": {
9
- "corpus_version": "v257 fragment-campaign corpus (shard-v5) PLUS the new `synth-fr-fragment` shard @ weight 12.0 — the ONE variable vs v264. 144,865 rows generated by corpus/src/shard-recipes/fr-fragment.ts from BAN (Base Adresse Nationale, Licence Ouverte) across 6 fragment forms, plus a 20% bare-locality counter-distribution so the model cannot satisfy the shard by flipping its bare-toponym default. The recipe REQUIRES --exclude-surfaces (it throws otherwise): all 2,400 fragment-board eval surfaces are reserved out, so the split is by street SURFACE, not record row. Measured cross_pollution 0.00%.",
9
+ "corpus_version": "v0.11.0-no-fragment overlay (v0.10.9-fr-fragment base + the synth-no-fragment shard at all-length long-number boost 6) + augment_punct_drop_prob 0.3",
10
10
  "tokenizer_version": "0.9.0-multisplice",
11
11
  "steps": 8000,
12
12
  "best_step": 8000,
13
13
  "hardware": "NVIDIA A100-SXM4-40GB (Modal cloud)",
14
- "recipe": "v3.1.0-fr-fragment: init_from FINE-TUNE off v264 step-008000, + the synth-fr-fragment shard @ 12.0 (the ONE variable vs v264). Every other knob carried from v264 verbatim: country_ambiguous_scale=0.5, use_country_anchor=true (country_feature_dim=2, lexicon UNCHANGED), use_span_boundary_head=true (0.5), lr 1e-5, warmup 500, 8k on A100. Run ap-onoBImKJriMFy7Pz3i5t0D — 8000/8000 steps, 0 errors, no NaN.",
14
+ "recipe": "v3.8.1-punct-fix-full.yaml — init_from v310 step-8000, LR 1.0e-5 constant, 8k, warmup 500; the ONE-at-a-time additions over 6.4.0 are the no-fragment digit-ownership shard and augment_punct_drop_prob 0.3 (#1101).",
15
15
  "tokenizer_splice": "tokenizer_splice.py build-tokenizer --locales fr --per-file-cap 2000000 over OA fr/countrywide.csv (seed 42, 350k-line corpus, unigram vocab 24000) -> splice 2406 non-ASCII FR pieces into v0.7.1-nsplice (English byte-identity asserted). UNCHANGED from v240 (md5 04995524). The v241 delta over v240 is that the new embedding rows now receive GRADIENT via the init_from fine-tune, not just FVT mean-init.",
16
16
  "data_attribution": [
17
17
  "BAN — Base Adresse Nationale (DINUM / IGN, Licence Ouverte 2.0): the `synth-fr-fragment` training shard (144,865 rows) NEW in 6.4.0, and the FR fragment eval board. Street surfaces are disjoint between the two.",
@@ -108,7 +108,7 @@
108
108
  "intersection_a",
109
109
  "intersection_b"
110
110
  ],
111
- "notes": "v3.1.0-fr-fragment (v310, #1143 T2), shipped as 6.4.0. init_from v264 + the `synth-fr-fragment` BAN shard @ 12.0 — the ONE variable. WHAT IT FIXES: the house-number licence. The model had learned that a digit licenses the street reading, so `Rue Montmartre` with no number read as locality=\"Rue Montmartre\" while `12 Rue Montmartre` read correctly. The shard teaches the designator — not the digit — as the discriminating evidence. Grade (package-shaped, --weights-cache, #718; int8 candidate vs int8 baselines, asserted): FR fragment board bare-street 0.215→0.715, street-particle 0.273→0.855, admin-street-homonym 0.087→0.517, date-name 0.055→0.158, overall 0.494→0.733 — no target's 95% CI overlaps its baseline. THE GUARD THAT MATTERED: bare-locality was pre-registered as the cell that MIGHT collapse (it read 0.980 for the wrong reason — the model called everything without a house number a locality, which is accidentally right on bare localities). It held exactly, same interval, so the model learned the distinction rather than trading one broken default for another; that is what the shard's 20% bare-locality counter-distribution was for. Both contextful guards improved (street-housenumber 0.925→0.948, alnum-housenumber 0.925→0.960) — the fragments did not cost full addresses. Global parity: street 0.577→0.6067 (+8 fixtures), house_number and postcode identical; v6.0.0-shipped-baseline gate 18/18; 2pp pre-publish bar clear on every tag. Weights-only — no lexicon, inference, or browser change from 6.3.x. Full write-up: docs/articles/evals/2026-07-16-t2-fr-fragment-verdict.md. KNOWN OPEN: digit ownership (house_number vs postcode vs route number) is untouched by this shard and is tracked separately — parity precision reads postcode 25/249 = 0.100 emitted where gold has none. CALIBRATION: the carried isotonic tables were fitted on the v5.3.0 lineage; opt-in, default output unaffected; a re-fit is a tracked follow-up.",
111
+ "notes": "v3.8.1-punct-fix-full (v381), shipped as 6.5.0. TWO folded improvements over 6.4.0, both init_from v310: (1) the synth-no-fragment digit-ownership shard (all-length long-number boost) — teaches the street/number boundary so bare 'Street 178' reads house_number, not postcode (NO board 3 bare-street-hn 0.693->0.733); (2) the #1101 punct-drop augmentation — a comma-free copy per row so the model segments street from locality without the comma. WHAT #1101 FIXES: a comma-free address like '1600 Pennsylvania Ave NW Washington DC' absorbed 'Washington' into the street, lost the rooftop, and fell to the admin centroid (~2km); v381 parses it identically to the comma form. This is the FIRST model to pass the full Gauntlet clean — shipped 6.4.0 fails the same metamorphic comma-drop invariant. Golden gate PASS, 0 tags >2pp below shipped, +2.3pp us.country_homograph. Weights-only — no lexicon, inference, or browser change from 6.4.x. KNOWN OPEN: the FR comma-free 'Rue du Chevaleret Paris' is NOT fixed — it is the no-anchor bare-terminal-locality case (a locality as the last token with no trailing state/postcode to anchor it, genuinely ambiguous vs a street continuation); it needs a locality name-index (#30) or a targeted no-anchor augmentation, tracked separately. CALIBRATION: the isotonic tables carry from the v5.3.0 lineage; opt-in, default output unaffected; re-fit is a tracked follow-up.",
112
112
  "format": {
113
113
  "model": "ONNX int8 dynamic (quantized from fp32, opset 17)",
114
114
  "tokenizer": "SentencePiece unigram, byte_fallback=true, vocab_size=73143 (v0.9.0-multisplice; ships WITH the model, both runtimes load it from this bundle)",
@@ -130,8 +130,9 @@
130
130
  "held_out_ece_calibrated": 0.0017,
131
131
  "note": "RE-FIT on v5.3.0 (2026-07-04): calibration.json + calibration-per-locale.json are now fitted on THIS model's confidence distribution (35,600 spans over the 8k held-out set), not carried from v4.x. The from-scratch model was under-confident (meanConf 0.913 vs acc 0.980, gap -0.067); the fit corrects held-out OA ECE 0.0698→0.0017 (overall 0.0677→0.0028, per-locale NL 0.166→0.000 / DE 0.114→0.003). Reproduce: collect-span-confidences.ts → fit-isotonic-calibration.py --model-version 5.3.0. Apply via @mailwoman/core/decoder's createCalibrator; default parse output is byte-stable when omitted."
132
132
  },
133
- "base_relpath": "models/quantized/model-v310-fr-fragment-step-008000-int8.onnx under $MAILWOMAN_DATA_ROOT; training output on Modal volume mailwoman-training:/output-v310-fr-fragment-s42 (run ap-onoBImKJriMFy7Pz3i5t0D)",
133
+ "base_relpath": "models/quantized/model-v381-step-8000-int8.onnx under $MAILWOMAN_DATA_ROOT; training output on Modal volume mailwoman-training:/output-v381-punct-fix-full-s42 (run ap-7XHnsfHoP0eP8K6MpYOMIm)",
134
134
  "eval": {
135
+ "gate_2026_07_17_v650_punct_digit": "v6.0.0-shipped-baseline gate: PASS, 0 tags >2pp below shipped v310, +2.3pp us.country_homograph_f1 (only >2pp mover). Gauntlet: PASS — clear to ship (regression 33/33; metamorphic INV[comma-drop] 9/10 held — the US '1600 Pennsylvania Ave NW Washington DC' comma-free rooftop RESTORED, the FR 'Rue du Chevaleret' remains the tracked #1101 xfail; held-out FR/BAN n=300 not significantly worse). Digit ownership (NO board 3): bare-street-hn 0.693->0.733 (+4pp), bare-pc guard held 1.000. Grade: package-shaped --weights-cache (#718), int8 candidate vs int8 shipped, on 2026-07-17.",
135
136
  "gate_2026_07_16_v640_fr_fragment": {
136
137
  "promotion_gate": "v6.0.0-shipped-baseline gate: PASS 18/18, no revision, no relaxation. This spec was cut from the SHIPPED v264's own readings BEFORE v310 was graded, with per-metric noise margins (floor = shipped − max(1.0pp, 2 × the 95% binomial half-width)); it tightened 15 of 18 floors over the retired v5.3.0-family spec. The FR fragment board's targets and guards were pre-registered in the v3.1.0-fr-fragment config header and in baselines.json (profile fragment-fr-v264), registered against the shipped model before the run. 2pp pre-publish bar: clear on every tag. No trade was measured and none is claimed.",
137
138
  "gate_docs": [
@@ -408,8 +409,8 @@
408
409
  }
409
410
  },
410
411
  "files_md5": {
411
- "$comment": "Shipped: model.onnx = int8 v310-fr-fragment step-8000; tokenizer v0.9.0-multisplice (UNCHANGED from 6.3.0). This md5 is the artifact the 6.4.0 gate battery GRADED, not a re-export of the same checkpoint — the cache the boards ran against carries the same digest.",
412
- "model.onnx": "5fba0ef7ce4402316b51da873a490a3f",
412
+ "$comment": "Shipped: model.onnx = int8 v381-punct-fix-full step-8000; tokenizer v0.9.0-multisplice (UNCHANGED from 6.4.0). md5 of the graded int8 artifact.",
413
+ "model.onnx": "2025ac6e593c780a5dd0f8d104202e4b",
413
414
  "tokenizer.model": "5c01cdcd4ae25849c5cb26b69fd3dde9"
414
415
  },
415
416
  "capabilities": {
package/model.onnx CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/neural-weights-en-us",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "description": "Mailwoman neural-classifier weights for locale 'en-us'. Data-only package — loaded by @mailwoman/neural at runtime.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {