@mailwoman/neural-weights-en-us 6.3.0 → 6.4.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 +95 -30
- package/model.onnx +0 -0
- package/package.json +1 -1
package/model-card.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neural-weights-en-us",
|
|
3
|
-
"version": "6.
|
|
4
|
-
"model_lineage": "
|
|
5
|
-
"phase": "PROMOTED (6.
|
|
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.",
|
|
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)
|
|
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%.",
|
|
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": "
|
|
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.",
|
|
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
|
+
"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.",
|
|
17
18
|
"OpenAddresses CZ — ČÚZK RÚIAN (CC-BY 4.0): tokenizer-splice training text + the oa-cz coord eval sets",
|
|
18
19
|
"OpenAddresses PL — GUGiK / PRG (public, BDOT-derived): tokenizer-splice training text + the oa-pl coord eval sets",
|
|
19
20
|
"OpenAddresses SK — MINV/ZBGIS (CC-0/CC-BY per OA source): oa-sk coord eval set (free-rider validation)",
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
"max_position_embeddings": 128,
|
|
30
31
|
"vocab_size": 73143,
|
|
31
32
|
"num_labels": 33,
|
|
32
|
-
"params": "~29M (6-layer/384-hidden encoder + 73,143-piece multisplice embedding; init_from
|
|
33
|
+
"params": "~29M (6-layer/384-hidden encoder + 73,143-piece multisplice embedding; init_from v264, 8k fine-tune w/ a non-exported span-boundary aux head)",
|
|
33
34
|
"crf_at_training": false,
|
|
34
35
|
"crf_at_inference": true,
|
|
35
36
|
"phrase_priors": true
|
|
@@ -107,7 +108,7 @@
|
|
|
107
108
|
"intersection_a",
|
|
108
109
|
"intersection_b"
|
|
109
110
|
],
|
|
110
|
-
"notes": "
|
|
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
112
|
"format": {
|
|
112
113
|
"model": "ONNX int8 dynamic (quantized from fp32, opset 17)",
|
|
113
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)",
|
|
@@ -129,8 +130,72 @@
|
|
|
129
130
|
"held_out_ece_calibrated": 0.0017,
|
|
130
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."
|
|
131
132
|
},
|
|
132
|
-
"base_relpath": "
|
|
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
134
|
"eval": {
|
|
135
|
+
"gate_2026_07_16_v640_fr_fragment": {
|
|
136
|
+
"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
|
+
"gate_docs": [
|
|
138
|
+
"docs/articles/evals/2026-07-16-t2-fr-fragment-verdict.md (the read)",
|
|
139
|
+
"docs/articles/evals/2026-07-16-t1c-fragment-board-verdict.md (the diagnosis this fix confirms)",
|
|
140
|
+
"docs/articles/evals/2026-07-16-span-head-closed.md (the pre-registered follow-up: the span head does NOT compose with this shard)"
|
|
141
|
+
],
|
|
142
|
+
"fr_fragment_board": {
|
|
143
|
+
"$note": "Board 2 — BAN-sampled, 2800 fixtures, street surfaces disjoint from the training shard. Wilson 95% CIs. No target's interval overlaps its baseline.",
|
|
144
|
+
"bare_street": {
|
|
145
|
+
"v264": 0.215,
|
|
146
|
+
"v310": 0.715,
|
|
147
|
+
"ci95_v310": [0.669, 0.757]
|
|
148
|
+
},
|
|
149
|
+
"street_particle": {
|
|
150
|
+
"v264": 0.273,
|
|
151
|
+
"v310": 0.855,
|
|
152
|
+
"ci95_v310": [0.817, 0.886]
|
|
153
|
+
},
|
|
154
|
+
"admin_street_homonym": {
|
|
155
|
+
"v264": 0.087,
|
|
156
|
+
"v310": 0.517,
|
|
157
|
+
"ci95_v310": [0.469, 0.566]
|
|
158
|
+
},
|
|
159
|
+
"date_name": {
|
|
160
|
+
"v264": 0.055,
|
|
161
|
+
"v310": 0.158,
|
|
162
|
+
"ci95_v310": [0.125, 0.196]
|
|
163
|
+
},
|
|
164
|
+
"street_housenumber_guard": {
|
|
165
|
+
"v264": 0.925,
|
|
166
|
+
"v310": 0.948
|
|
167
|
+
},
|
|
168
|
+
"alnum_housenumber_guard": {
|
|
169
|
+
"v264": 0.925,
|
|
170
|
+
"v310": 0.96
|
|
171
|
+
},
|
|
172
|
+
"bare_locality_counter_guard": {
|
|
173
|
+
"v264": 0.98,
|
|
174
|
+
"v310": 0.98,
|
|
175
|
+
"$note": "PRE-REGISTERED as the cell that might collapse by design. It held exactly, same interval — the model learned the distinction, not a new default."
|
|
176
|
+
},
|
|
177
|
+
"overall": {
|
|
178
|
+
"v264": 0.494,
|
|
179
|
+
"v310": 0.733
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"global_parity_floor": {
|
|
183
|
+
"$note": "Board 1 — the guard. The FAIL verdicts eval parity prints on street/house_number are the v7 CAMPAIGN floors (0.90 / 0.97); shipped v264 fails them too. They are a target, not a regression gate.",
|
|
184
|
+
"street": {
|
|
185
|
+
"v264": "154/267 = 0.577",
|
|
186
|
+
"v310": "162/267 = 0.6067"
|
|
187
|
+
},
|
|
188
|
+
"house_number": {
|
|
189
|
+
"v264": "117/146 = 0.8014",
|
|
190
|
+
"v310": "117/146 = 0.8014"
|
|
191
|
+
},
|
|
192
|
+
"postcode": {
|
|
193
|
+
"v264": "71/72 = 0.9861",
|
|
194
|
+
"v310": "71/72 = 0.9861"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"known_open_not_addressed": "Digit ownership — which tag owns a digit-bearing token (house_number vs postcode vs route number). Untouched by this shard and explicitly out of its scope. Parity PRECISION (new in this cycle — the half no floor could previously see, since every floor did `if (!goldValues?.length) continue`) reads postcode 25/249 = 0.100, street 12/54 = 0.222, house_number 6/175 = 0.034 emitted where the gold has none. v310 moves this by −1 row. Tracked as its own workstream; whether these become formal floors is an open operator decision."
|
|
198
|
+
},
|
|
134
199
|
"gate_2026_07_04_v530_full_family": {
|
|
135
200
|
"promotion_gate": "v5.3.0-family gate (clone of v5.2.0-nordic + the fr.postcode 99.3→99.2 revision): PASS with the three operator-approved trades stated above. The promote decision ran on the 2026-07-03 RE-GATE of the archived candidate under the #942-floored stack — fresh dumps BOTH arms, same stack (the #942-D1 stack-drift lesson): 6/6 ni legs PASS; the SI wrong-city re-gate bar (≤+2pp) failed at +2.7pp and was adjudicated at the fork, not silently absorbed. Original 100k battery: 15/17 floors (the two above), mask-regression PASS, zero NaN.",
|
|
136
201
|
"gate_docs": [
|
|
@@ -343,40 +408,40 @@
|
|
|
343
408
|
}
|
|
344
409
|
},
|
|
345
410
|
"files_md5": {
|
|
346
|
-
"$comment": "Shipped: model.onnx = int8
|
|
347
|
-
"model.onnx": "
|
|
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",
|
|
348
413
|
"tokenizer.model": "5c01cdcd4ae25849c5cb26b69fd3dde9"
|
|
349
414
|
},
|
|
350
415
|
"capabilities": {
|
|
351
416
|
"server": {
|
|
352
417
|
"us": {
|
|
353
418
|
"street_prefix": {
|
|
354
|
-
"maskOffF1": 0.
|
|
419
|
+
"maskOffF1": 0.8
|
|
355
420
|
},
|
|
356
421
|
"street": {
|
|
357
|
-
"maskOffF1":
|
|
422
|
+
"maskOffF1": 25.6
|
|
358
423
|
},
|
|
359
424
|
"street_suffix": {
|
|
360
425
|
"maskOffF1": 0.3,
|
|
361
426
|
"maskOnF1": 0.3
|
|
362
427
|
},
|
|
363
428
|
"house_number": {
|
|
364
|
-
"maskOffF1": 94
|
|
429
|
+
"maskOffF1": 94
|
|
365
430
|
},
|
|
366
431
|
"locality": {
|
|
367
|
-
"maskOffF1": 79
|
|
432
|
+
"maskOffF1": 79.5
|
|
368
433
|
},
|
|
369
434
|
"region": {
|
|
370
|
-
"maskOffF1": 90.
|
|
435
|
+
"maskOffF1": 90.3
|
|
371
436
|
},
|
|
372
437
|
"postcode": {
|
|
373
|
-
"maskOffF1": 96.
|
|
438
|
+
"maskOffF1": 96.5
|
|
374
439
|
},
|
|
375
440
|
"country": {
|
|
376
|
-
"maskOffF1":
|
|
441
|
+
"maskOffF1": 66.8
|
|
377
442
|
},
|
|
378
443
|
"unit": {
|
|
379
|
-
"maskOffF1": 5.
|
|
444
|
+
"maskOffF1": 5.2
|
|
380
445
|
},
|
|
381
446
|
"intersection_a": {
|
|
382
447
|
"maskOffF1": 100
|
|
@@ -385,10 +450,10 @@
|
|
|
385
450
|
"maskOffF1": 100
|
|
386
451
|
},
|
|
387
452
|
"po_box": {
|
|
388
|
-
"maskOffF1":
|
|
453
|
+
"maskOffF1": 65.5
|
|
389
454
|
},
|
|
390
455
|
"venue": {
|
|
391
|
-
"maskOffF1": 93.
|
|
456
|
+
"maskOffF1": 93.2
|
|
392
457
|
},
|
|
393
458
|
"dependent_locality": {
|
|
394
459
|
"maskOffF1": 0
|
|
@@ -415,44 +480,44 @@
|
|
|
415
480
|
"pocket": {
|
|
416
481
|
"us": {
|
|
417
482
|
"street_prefix": {
|
|
418
|
-
"maskOffF1": 0.
|
|
483
|
+
"maskOffF1": 0.8
|
|
419
484
|
},
|
|
420
485
|
"street": {
|
|
421
|
-
"maskOffF1":
|
|
486
|
+
"maskOffF1": 24.3
|
|
422
487
|
},
|
|
423
488
|
"street_suffix": {
|
|
424
489
|
"maskOffF1": 0.3,
|
|
425
490
|
"maskOnF1": 0.3
|
|
426
491
|
},
|
|
427
492
|
"house_number": {
|
|
428
|
-
"maskOffF1":
|
|
493
|
+
"maskOffF1": 86.5
|
|
429
494
|
},
|
|
430
495
|
"locality": {
|
|
431
|
-
"maskOffF1":
|
|
496
|
+
"maskOffF1": 60.3
|
|
432
497
|
},
|
|
433
498
|
"region": {
|
|
434
|
-
"maskOffF1": 73.
|
|
499
|
+
"maskOffF1": 73.6
|
|
435
500
|
},
|
|
436
501
|
"postcode": {
|
|
437
|
-
"maskOffF1":
|
|
502
|
+
"maskOffF1": 90.8
|
|
438
503
|
},
|
|
439
504
|
"country": {
|
|
440
505
|
"maskOffF1": 0
|
|
441
506
|
},
|
|
442
507
|
"unit": {
|
|
443
|
-
"maskOffF1": 5
|
|
508
|
+
"maskOffF1": 5
|
|
444
509
|
},
|
|
445
510
|
"intersection_a": {
|
|
446
|
-
"maskOffF1":
|
|
511
|
+
"maskOffF1": 66.7
|
|
447
512
|
},
|
|
448
513
|
"intersection_b": {
|
|
449
514
|
"maskOffF1": 40
|
|
450
515
|
},
|
|
451
516
|
"po_box": {
|
|
452
|
-
"maskOffF1":
|
|
517
|
+
"maskOffF1": 63.2
|
|
453
518
|
},
|
|
454
519
|
"venue": {
|
|
455
|
-
"maskOffF1":
|
|
520
|
+
"maskOffF1": 89.9
|
|
456
521
|
},
|
|
457
522
|
"dependent_locality": {
|
|
458
523
|
"maskOffF1": 0
|
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.
|
|
3
|
+
"version": "6.4.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": {
|