Prepare phase3 item1 frozen training entry for exact semantic review
This commit is contained in:
1 parent
2338dfe997
commit
30c34b0e66
24 files changed
+13714
-1
No files matched your search
@@ -3712,6 +3712,13 @@
|
||||
"assist_audit_sha256": "d4999e4a99e82d91b793cffd70b673a977de022878e28d8a9955ca1a4acf59da",
|
||||
"phase3_trigger": "1794946961.453149",
|
||||
"item1_started": false,
|
||||
"publication": "PENDING"
|
||||
"publication": "2338dfe997957c276ffb84f24398b88dcd359459",
|
||||
"http_readback": "4/4PASS"
|
||||
},
|
||||
"phase3_item1": {
|
||||
"status": "PREPARED_EXACT_REVIEW_PENDING_NOT_STARTED",
|
||||
"root": "/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18",
|
||||
"implementation": "c8e2ee4ca3d08cf0080ac18a1d17bfb42fb1b8a6",
|
||||
"contract_sha256": "a84e5e8269269951a2abbde89f8497c6918222cb8cfe7dd240300d7eba6a656f"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"commit": "2338dfe997957c276ffb84f24398b88dcd359459",
|
||||
"status": "PASS",
|
||||
"checked_files": [
|
||||
{
|
||||
"path": "docs/phase2-h2-s2-results-2026-11-18.md",
|
||||
"http_status": 200,
|
||||
"sha256": "a8d891375c2cd0ebf1c76528eb44efec63d5a97f39b734f27d35ccc8a4372fca",
|
||||
"expected": "a8d891375c2cd0ebf1c76528eb44efec63d5a97f39b734f27d35ccc8a4372fca",
|
||||
"matched": true,
|
||||
"bytes": 6760
|
||||
},
|
||||
{
|
||||
"path": "artifacts/phase2-h2-s2-terminal-report-2026-11-18/terminal-acceptance.json",
|
||||
"http_status": 200,
|
||||
"sha256": "14e8d9d449d9ea02a2d0e224ff6ffbdcb60ccc5b8e116dbfa3aba2908b910eda",
|
||||
"expected": "14e8d9d449d9ea02a2d0e224ff6ffbdcb60ccc5b8e116dbfa3aba2908b910eda",
|
||||
"matched": true,
|
||||
"bytes": 1955
|
||||
},
|
||||
{
|
||||
"path": "artifacts/meltassist-h2-s2-terminal-audit-2026-11-18/audit.json",
|
||||
"http_status": 200,
|
||||
"sha256": "d4999e4a99e82d91b793cffd70b673a977de022878e28d8a9955ca1a4acf59da",
|
||||
"expected": "d4999e4a99e82d91b793cffd70b673a977de022878e28d8a9955ca1a4acf59da",
|
||||
"matched": true,
|
||||
"bytes": 563358
|
||||
},
|
||||
{
|
||||
"path": "home-runs/phase2-h2-s2-postfit-2026-11-17/post-terminal-cost.json",
|
||||
"http_status": 200,
|
||||
"sha256": "07f51a3e172b786ddcd843901581efe89e8bbcad31930bddb232f6430a034c15",
|
||||
"expected": "07f51a3e172b786ddcd843901581efe89e8bbcad31930bddb232f6430a034c15",
|
||||
"matched": true,
|
||||
"bytes": 166
|
||||
}
|
||||
],
|
||||
"unix": 1794948459.5114515
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"status": "REMOTE_REF_VERIFIED",
|
||||
"commit": "2338dfe997957c276ffb84f24398b88dcd359459",
|
||||
"parent": "b89762e925be46cf618ba9e6b24c3f59d0b5dd92",
|
||||
"branch": "codex/phase2-small-evidence-20261117",
|
||||
"files": 1522,
|
||||
"bytes": 241664547,
|
||||
"writer_head_unchanged": "95ef2592b91f437f5f3274be8599dc9e5139dba9",
|
||||
"wall_seconds": 153.25628995895386,
|
||||
"raw_bulk_not_included": true
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
## phase3 item1入口已固定待新审阅,未启动(2026-11-18)
|
||||
|
||||
根/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18,implementationc8e2ee4c/contracta84e5e82;13CPU合成PASS。四新fit/6checkpoint,原S1同配方100端点复用,34/65/132组件;逐格成本投影83217.702861/86400GPU-s,training79200+postfit7200,phase3总170GPUh。详见docs/phase3-data-sufficiency-entry-2026-11-18.md;须精确新Assist PASS才唯一启动,停TRAIN_COMPLETE_POSTFIT_PENDING,后处理另有checkpoint-bound审阅。没有真实训练/test预测/target读取。S2已发布2338dfe9/4HTTP通过,不重启。
|
||||
|
||||
## H2-S2终态交付与phase3触发(2026-11-18)
|
||||
|
||||
S2四fold训练及postfit已COMPLETE,不能重启。TRON依Claude1794946447一次例外启动已审阅25e79995/0bd03f42/PASS9c163702;Melt接回终态与唯一writer出版。552件/204组件field CONFIRMED;H2−A=-.005038634,CI[-.007536893,-.002830534],但末点/Rg更差+.079903034,CI[+.006940890,+.155577284]。40852全节点/665query负值未clip。fold0已看后recipe confirmation,不称独立五折预登记。folds1–4描述表由冻结逐件指标汇总,431件/167组件,见docs/phase2-h2-s2-results-2026-11-18.md;无新预测/target读取/原评分改动。
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# Phase3 item1: data-family size versus optimizer updates
|
||||
|
||||
Authority: Claude1794946961.453149 triggers plan304f5771; mathematical specification e24fff7c5cb91dff7acf1532f502daec60e4b7fec21b2d4d4dcde1e793be7fb4. No other phase3 item launches here. S2 remains terminal; gate-v2 failed, so fresh-family admission remains closed.
|
||||
|
||||
This entry creates four fresh fold0/seed0 H2 fits. The original nested grouped learning lists are25/50/100 percent, with common validation111 and test121. Actual component/part/node/edge counts and source exposure coverage are frozen in contract.json. No new geometric category label is inferred; a canonical geometric-category ontology is not available in these input contracts, and that coverage is explicitly unavailable. Components are the independence unit, not nodes or time slices.
|
||||
|
||||
Two same-recipe cells (25/50 percent) use the unchanged200-epoch learning-rate function and last-epoch selection. The100-percent endpoint reuses the original S1 checkpoint and test predictions/metrics with exact identity checks: same roles, seed, zero-residual initialization,19 columns, full-node graph, per-node training loss, clock, normalization formula, schedule,200epochs and selection rule. Training and validation evaluation for that endpoint may require frozen-checkpoint inference in the separately bound postfit; no refit is allowed.
|
||||
|
||||
The other two cells (50/100 percent) each run fresh to64000 updates, saving U=32000 and2U=64000 on one trajectory. For1<=s<=3200, lr=1e-4+(s-1)*9e-4/3199; for3200<s<=64000, lr=1e-5+(.001-.00001)*(1+cos(pi*(s-3200)/60800))/2. Both pools share exactly this step schedule; U is not separately decayed. The50-percent pool has190 parts, so its final traversal is partial:336 complete traversals plus160 parts. The original SeedSequence([0, traversal]) permutation is used; no resampling of pool membership. Per-part repetition/node/edge exposure counts are recorded. Equal updates are not equal compute. No3U extension.
|
||||
|
||||
All cells retain the original H2 architecture, zero output initialization, fresh seed0, FP32 (no AMP/TF32), FP64 cF reconstruction, full nodes/true edges, node-weighted loss Nparts*Ni/Ntotal, AdamW and clip1. Each pool has its own original learning-only clock and recomputed learning-only feature normalization; those clocks were originally computed on exactly these lists and are reused by hash. Diagnostic validation targets are permitted; they never choose checkpoints or stopping. Same-recipe diagnostics every10 epochs; step trajectories every3200 updates. The online training loss is explicitly not a frozen-model training-domain metric.
|
||||
|
||||
The complete comparison contract separately fixes the later common-domain training/validation and one external evaluation, cF-only baselines, field/last/tau, component-paired2000-replicate joint contrasts, actual132/65 component slope denominator, delta=.001, classification including undefined/wide intervals. S1 external fold was already used for stage decisions; this is diagnostic reuse. A single fold/seed interval omits training seed and pool sampling uncertainty. No extrapolation to required CAD counts or blanket claim that data limitation is ruled out.
|
||||
|
||||
This executable entry stops after all four terminal guards and six new checkpoints are hashed and Git-frozen: TRAIN_COMPLETE_POSTFIT_PENDING. It has no test prediction or target-scoring function. A new exact Assist PASS binding the current implementation, contract, comparison contract and complete source map is required before this training launch. The later postfit implementation must independently bind the resulting checkpoints and get an exact pre-score PASS before prediction/custody. Old S1/S2 reviews never transfer. This staged engineering implementation does not add a new user authorization gate.
|
||||
|
||||
Budget: item1 total86400 GPU-s (24GPUh), within the new phase3 612000 GPU-s (170GPUh). Training allowance79200, reserved postfit7200. Four job caps10000/16000/26600/26600 GPU-s, including setup/import/idle/waits/failures; CPU limits equal each job cap. Per job15GiB VRAM/16GiB RSS/20GiB output, four GPUs at most; aggregate64GiB RSS/80GiB. First full epoch of every cell pauses until an aggregate1.25-safety projection passes all individual caps and item total; subsequent5-percent progress checkpoints refresh it. Source pins stay unchanged; no retries, threshold changes or automatic extensions. All terminated work remains charged. The queue freezes terminal checkpoints and stops; postfit costs are subsequently added to this same item ledger. Metadata preparation and CPU synthetic checks are separately recorded, with no GPU workloads.
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"status": "PASS",
|
||||
"tests": 13,
|
||||
"first_failure": "Test incorrectly assumed end-of-epoch LR differs; schedule equals old at32000 but differs within epoch; corrected assertion to31999. No real workloads.",
|
||||
"targets_read": false,
|
||||
"GPU_workload": false
|
||||
}
|
||||
@@ -0,0 +1,301 @@
|
||||
{
|
||||
"spec_sha256": "e24fff7c5cb91dff7acf1532f502daec60e4b7fec21b2d4d4dcde1e793be7fb4",
|
||||
"fold": 0,
|
||||
"seed": 0,
|
||||
"pools": [
|
||||
25,
|
||||
50,
|
||||
100
|
||||
],
|
||||
"common_validation": [
|
||||
"00000111_ce24e0cbec8e45c89735d148_step_003",
|
||||
"00000115_ce24e0cbec8e45c89735d148_step_007",
|
||||
"00000116_ce24e0cbec8e45c89735d148_step_008",
|
||||
"00000117_ce24e0cbec8e45c89735d148_step_009",
|
||||
"00000119_ce24e0cbec8e45c89735d148_step_011",
|
||||
"00000120_ce24e0cbec8e45c89735d148_step_012",
|
||||
"00000131_945244874ed84e599987daa9_step_000",
|
||||
"00000132_438507a38e404bfdbd51a16b_step_000",
|
||||
"00000133_08b739e0511f4305b161cd05_step_000",
|
||||
"00000190_185ecbc783f34408aef52119_step_000",
|
||||
"00000196_c9b71ecdd0654716891b0db8_step_000",
|
||||
"00000206_27417003e762409185cb2b69_step_000",
|
||||
"00000238_4829bc0645d6414d9b5cec31_step_001",
|
||||
"00000241_4829bc0645d6414d9b5cec31_step_004",
|
||||
"00000243_4829bc0645d6414d9b5cec31_step_006",
|
||||
"00000248_e87554b09cdc48c3add39db9_step_000",
|
||||
"00000257_845fb06d7f2f4802a806a600_step_002",
|
||||
"00000258_845fb06d7f2f4802a806a600_step_003",
|
||||
"00000259_845fb06d7f2f4802a806a600_step_004",
|
||||
"00000261_845fb06d7f2f4802a806a600_step_006",
|
||||
"00000262_845fb06d7f2f4802a806a600_step_007",
|
||||
"00000264_845fb06d7f2f4802a806a600_step_009",
|
||||
"00000265_845fb06d7f2f4802a806a600_step_010",
|
||||
"00000266_845fb06d7f2f4802a806a600_step_011",
|
||||
"00000267_845fb06d7f2f4802a806a600_step_012",
|
||||
"00000269_845fb06d7f2f4802a806a600_step_014",
|
||||
"00000391_fd490b564a44413884fab719_step_000",
|
||||
"00000405_f3759bbb4682423caf207e8e_step_002",
|
||||
"00000406_f3759bbb4682423caf207e8e_step_003",
|
||||
"00000444_4ed4c78d6d754aac90876fc2_step_003",
|
||||
"00000445_4ed4c78d6d754aac90876fc2_step_004",
|
||||
"00000501_5499914343bd4f549b38046d_step_002",
|
||||
"00000502_5499914343bd4f549b38046d_step_003",
|
||||
"00000574_5a4cef68211d4706b1ec8586_step_003",
|
||||
"00000578_5a4cef68211d4706b1ec8586_step_007",
|
||||
"00000579_5a4cef68211d4706b1ec8586_step_008",
|
||||
"00000580_5a4cef68211d4706b1ec8586_step_009",
|
||||
"00000582_5a4cef68211d4706b1ec8586_step_011",
|
||||
"00000583_5a4cef68211d4706b1ec8586_step_012",
|
||||
"00000597_7fe894812c4244e18241aa08_step_003",
|
||||
"00000601_7fe894812c4244e18241aa08_step_007",
|
||||
"00000602_7fe894812c4244e18241aa08_step_008",
|
||||
"00000603_7fe894812c4244e18241aa08_step_009",
|
||||
"00000605_7fe894812c4244e18241aa08_step_011",
|
||||
"00000606_7fe894812c4244e18241aa08_step_012",
|
||||
"00000654_d87d11d9c3ca4ee5a88797ae_step_002",
|
||||
"00000758_8ab50540e9804365a8717ec0_step_005",
|
||||
"00000759_8ab50540e9804365a8717ec0_step_006",
|
||||
"00000760_8ab50540e9804365a8717ec0_step_007",
|
||||
"00000763_8ab50540e9804365a8717ec0_step_010",
|
||||
"00000816_36e6258346004cabb4c091b2_step_004",
|
||||
"00000817_36e6258346004cabb4c091b2_step_005",
|
||||
"00000892_be26dc83f78947738b2bfabd_step_001",
|
||||
"00000894_be26dc83f78947738b2bfabd_step_003",
|
||||
"00000897_be26dc83f78947738b2bfabd_step_006",
|
||||
"00000919_cdcebf32644443b9812097ba_step_003",
|
||||
"00000923_cdcebf32644443b9812097ba_step_007",
|
||||
"00000927_cdcebf32644443b9812097ba_step_011",
|
||||
"00000928_cdcebf32644443b9812097ba_step_012",
|
||||
"00000955_a741c7966d2c40a8a511263e_step_001",
|
||||
"00000984_0dd1386597104265ab67e6cf_step_007",
|
||||
"00000986_0dd1386597104265ab67e6cf_step_009",
|
||||
"00000987_0dd1386597104265ab67e6cf_step_010",
|
||||
"00000988_0dd1386597104265ab67e6cf_step_011",
|
||||
"00000996_6d71695ba3fd475c927a00a7_step_000",
|
||||
"00001019_ca4cf9693d6d4a98b515ba99_step_000",
|
||||
"00001020_ca4cf9693d6d4a98b515ba99_step_001",
|
||||
"00001021_ca4cf9693d6d4a98b515ba99_step_002",
|
||||
"00001026_0f133d8e7fd448708a554e28_step_000",
|
||||
"00001027_0f133d8e7fd448708a554e28_step_001",
|
||||
"00001040_74c42207fa764831b03f7658_step_000",
|
||||
"00001052_2fd6155fa34f418083d0bd0f_step_001",
|
||||
"00001053_2fd6155fa34f418083d0bd0f_step_002",
|
||||
"00001097_256ee7ec3a4b4972a8b87c8d_step_001",
|
||||
"00001099_256ee7ec3a4b4972a8b87c8d_step_003",
|
||||
"00001102_256ee7ec3a4b4972a8b87c8d_step_006",
|
||||
"00001107_78566795c3144719804f8d34_step_000",
|
||||
"00001167_107f61d0402f4c9a9d9d1342_step_000",
|
||||
"00001168_107f61d0402f4c9a9d9d1342_step_001",
|
||||
"00001217_e517c61f1c49433bb81cf980_step_000",
|
||||
"00001238_96503b6a26c64074ad598927_step_000",
|
||||
"00001239_96503b6a26c64074ad598927_step_001",
|
||||
"00001240_96503b6a26c64074ad598927_step_002",
|
||||
"00001241_96503b6a26c64074ad598927_step_003",
|
||||
"00001242_96503b6a26c64074ad598927_step_004",
|
||||
"00001243_96503b6a26c64074ad598927_step_005",
|
||||
"00001244_96503b6a26c64074ad598927_step_006",
|
||||
"00001246_96503b6a26c64074ad598927_step_008",
|
||||
"00001247_96503b6a26c64074ad598927_step_009",
|
||||
"00001249_96503b6a26c64074ad598927_step_011",
|
||||
"00001252_96503b6a26c64074ad598927_step_014",
|
||||
"00001253_96503b6a26c64074ad598927_step_015",
|
||||
"00001314_a9ed5e56a6a8414f91b39bdb_step_000",
|
||||
"00001333_beab79941e884455a62af40c_step_001",
|
||||
"00001334_beab79941e884455a62af40c_step_002",
|
||||
"00001335_beab79941e884455a62af40c_step_003",
|
||||
"00001336_beab79941e884455a62af40c_step_004",
|
||||
"00001338_beab79941e884455a62af40c_step_006",
|
||||
"00001339_beab79941e884455a62af40c_step_007",
|
||||
"00001340_beab79941e884455a62af40c_step_008",
|
||||
"00001352_4e1d56bc2cef49ea84626b11_step_000",
|
||||
"00001353_4e1d56bc2cef49ea84626b11_step_001",
|
||||
"00001354_4e1d56bc2cef49ea84626b11_step_002",
|
||||
"00001379_5b1d6e2599ea47d498a04256_step_000",
|
||||
"00001387_60cf3ad636dd42e0bcec6946_step_000",
|
||||
"00001511_5cbe58077e4b4885a5c213b3_step_004",
|
||||
"00001512_5cbe58077e4b4885a5c213b3_step_005",
|
||||
"00001525_e0d35a03b46745259cf8878f_step_000",
|
||||
"00001532_9f0a4a641e8f4cc588eb4315_step_000",
|
||||
"00001552_b0a9c4d836294846891615fe_step_000",
|
||||
"00001553_adfa1c33ae4d4d0aa441ddc3_step_000"
|
||||
],
|
||||
"common_test": [
|
||||
"00000006_d4fe04f0f5f84b52bd4f10e4_step_001",
|
||||
"00000008_9b3d6a97e8de4aa193b81000_step_000",
|
||||
"00000009_9b3d6a97e8de4aa193b81000_step_001",
|
||||
"00000011_e909f412cda24521865fac0f_step_000",
|
||||
"00000102_5ed74bccca6f4e89829bcb5e_step_002",
|
||||
"00000183_6c4172e8a17140f89d3b1c0a_step_000",
|
||||
"00000220_5324c79b172f41e8a49afc6f_step_007",
|
||||
"00000221_5324c79b172f41e8a49afc6f_step_008",
|
||||
"00000249_07a2da801a60492fb1e5eeb3_step_000",
|
||||
"00000408_36bcb4030e36417b8dc74b87_step_000",
|
||||
"00000410_30afd12eede44fa8a1def049_step_000",
|
||||
"00000411_305e45c9479f43979b0d7b53_step_000",
|
||||
"00000413_94f421b1b33d47c592c9fe1d_step_000",
|
||||
"00000421_bd0972033f464f8f961a150a_step_002",
|
||||
"00000508_d1c0a44331fd41faa91d4c2e_step_000",
|
||||
"00000509_d1c0a44331fd41faa91d4c2e_step_001",
|
||||
"00000510_d1c0a44331fd41faa91d4c2e_step_002",
|
||||
"00000522_a56dd4152b7e4ccf91212d7b_step_000",
|
||||
"00000527_db75f3a38d9746a1bd66168d_step_000",
|
||||
"00000542_4b1756f6e72b45c29a8e4eb4_step_000",
|
||||
"00000549_41a24c0b74a34217832f5af0_step_000",
|
||||
"00000551_41a24c0b74a34217832f5af0_step_002",
|
||||
"00000562_1724088724bf4e53a36e363e_step_000",
|
||||
"00000566_2f2b015ef4904c1caef56154_step_000",
|
||||
"00000637_5ae45a997c76423aba2fcc11_step_002",
|
||||
"00000638_5ae45a997c76423aba2fcc11_step_003",
|
||||
"00000643_bb55eaa4e9e24c2ea9d18ee0_step_000",
|
||||
"00000659_6fae5591b3034f949b7e8eae_step_000",
|
||||
"00000695_3f46763af0744ab2a90e6b48_step_000",
|
||||
"00000746_6cb3ddbb49974d7db0e97135_step_001",
|
||||
"00000796_dec80701adc84239b485449d_step_002",
|
||||
"00000806_05cadeb104be4c8aa75ccc71_step_000",
|
||||
"00000807_05cadeb104be4c8aa75ccc71_step_001",
|
||||
"00000808_05cadeb104be4c8aa75ccc71_step_002",
|
||||
"00000809_05cadeb104be4c8aa75ccc71_step_003",
|
||||
"00000840_2c1efcc32d094e9fb9e1a88e_step_000",
|
||||
"00000842_2c1efcc32d094e9fb9e1a88e_step_002",
|
||||
"00000843_2c1efcc32d094e9fb9e1a88e_step_003",
|
||||
"00000844_2c1efcc32d094e9fb9e1a88e_step_004",
|
||||
"00000849_2c1efcc32d094e9fb9e1a88e_step_009",
|
||||
"00000850_2c1efcc32d094e9fb9e1a88e_step_010",
|
||||
"00000851_2c1efcc32d094e9fb9e1a88e_step_011",
|
||||
"00000855_2c1efcc32d094e9fb9e1a88e_step_015",
|
||||
"00000856_2c1efcc32d094e9fb9e1a88e_step_016",
|
||||
"00000859_58ac6a347bbe4cf5ae07a565_step_000",
|
||||
"00000863_029c2575dd474650ba1b8d21_step_003",
|
||||
"00000864_029c2575dd474650ba1b8d21_step_004",
|
||||
"00000866_029c2575dd474650ba1b8d21_step_006",
|
||||
"00000867_029c2575dd474650ba1b8d21_step_007",
|
||||
"00000868_029c2575dd474650ba1b8d21_step_008",
|
||||
"00000870_029c2575dd474650ba1b8d21_step_010",
|
||||
"00000871_029c2575dd474650ba1b8d21_step_011",
|
||||
"00000872_029c2575dd474650ba1b8d21_step_012",
|
||||
"00000873_029c2575dd474650ba1b8d21_step_013",
|
||||
"00000874_029c2575dd474650ba1b8d21_step_014",
|
||||
"00000877_029c2575dd474650ba1b8d21_step_017",
|
||||
"00000879_029c2575dd474650ba1b8d21_step_019",
|
||||
"00000880_029c2575dd474650ba1b8d21_step_020",
|
||||
"00000882_029c2575dd474650ba1b8d21_step_022",
|
||||
"00000883_029c2575dd474650ba1b8d21_step_023",
|
||||
"00000884_029c2575dd474650ba1b8d21_step_024",
|
||||
"00000885_029c2575dd474650ba1b8d21_step_025",
|
||||
"00000886_029c2575dd474650ba1b8d21_step_026",
|
||||
"00000887_029c2575dd474650ba1b8d21_step_027",
|
||||
"00000938_4f351b53bfd84bb4a2f7809c_step_003",
|
||||
"00000970_edacb215ec6949d8af6c8c68_step_000",
|
||||
"00000993_ac4ba032d4b5431ca04f542c_step_000",
|
||||
"00000994_ac4ba032d4b5431ca04f542c_step_001",
|
||||
"00000998_6962bc8aad2c4e27b046d5b4_step_000",
|
||||
"00001000_6962bc8aad2c4e27b046d5b4_step_002",
|
||||
"00001002_6962bc8aad2c4e27b046d5b4_step_004",
|
||||
"00001003_6962bc8aad2c4e27b046d5b4_step_005",
|
||||
"00001004_6962bc8aad2c4e27b046d5b4_step_006",
|
||||
"00001005_6962bc8aad2c4e27b046d5b4_step_007",
|
||||
"00001006_6962bc8aad2c4e27b046d5b4_step_008",
|
||||
"00001009_6962bc8aad2c4e27b046d5b4_step_011",
|
||||
"00001010_6962bc8aad2c4e27b046d5b4_step_012",
|
||||
"00001011_6962bc8aad2c4e27b046d5b4_step_013",
|
||||
"00001013_6962bc8aad2c4e27b046d5b4_step_015",
|
||||
"00001014_6962bc8aad2c4e27b046d5b4_step_016",
|
||||
"00001015_6962bc8aad2c4e27b046d5b4_step_017",
|
||||
"00001034_085828cd621d404a90ccd883_step_000",
|
||||
"00001063_c6fda10dc58448d1951c5cc3_step_000",
|
||||
"00001064_c6fda10dc58448d1951c5cc3_step_001",
|
||||
"00001065_c6fda10dc58448d1951c5cc3_step_002",
|
||||
"00001067_8a2edcf36bcd435092f4c8ae_step_001",
|
||||
"00001069_8a2edcf36bcd435092f4c8ae_step_003",
|
||||
"00001071_8a2edcf36bcd435092f4c8ae_step_005",
|
||||
"00001112_3bd4a008a3a0483d86ccab3f_step_000",
|
||||
"00001177_9f1ce06d5e334fe88e1581aa_step_001",
|
||||
"00001178_515d7e1aeb364a2d88083cf3_step_000",
|
||||
"00001262_157e5348bf6545e282472856_step_000",
|
||||
"00001263_157e5348bf6545e282472856_step_001",
|
||||
"00001305_3f3a389e9d5a4370b952bdce_step_001",
|
||||
"00001310_3f3a389e9d5a4370b952bdce_step_006",
|
||||
"00001358_2e314c6e080b40fcb6a6db96_step_001",
|
||||
"00001360_2e314c6e080b40fcb6a6db96_step_003",
|
||||
"00001368_2e314c6e080b40fcb6a6db96_step_011",
|
||||
"00001369_2e314c6e080b40fcb6a6db96_step_012",
|
||||
"00001371_2e314c6e080b40fcb6a6db96_step_014",
|
||||
"00001373_2e314c6e080b40fcb6a6db96_step_016",
|
||||
"00001375_2e314c6e080b40fcb6a6db96_step_018",
|
||||
"00001377_2e314c6e080b40fcb6a6db96_step_020",
|
||||
"00001398_49414db2dd594dc6a3907cf3_step_001",
|
||||
"00001399_49414db2dd594dc6a3907cf3_step_002",
|
||||
"00001400_49414db2dd594dc6a3907cf3_step_003",
|
||||
"00001401_49414db2dd594dc6a3907cf3_step_004",
|
||||
"00001402_49414db2dd594dc6a3907cf3_step_005",
|
||||
"00001403_49414db2dd594dc6a3907cf3_step_006",
|
||||
"00001404_49414db2dd594dc6a3907cf3_step_007",
|
||||
"00001405_49414db2dd594dc6a3907cf3_step_008",
|
||||
"00001406_49414db2dd594dc6a3907cf3_step_009",
|
||||
"00001407_49414db2dd594dc6a3907cf3_step_010",
|
||||
"00001408_49414db2dd594dc6a3907cf3_step_011",
|
||||
"00001409_49414db2dd594dc6a3907cf3_step_012",
|
||||
"00001410_49414db2dd594dc6a3907cf3_step_013",
|
||||
"00001411_49414db2dd594dc6a3907cf3_step_014",
|
||||
"00001412_49414db2dd594dc6a3907cf3_step_015",
|
||||
"00001413_4642a707b7894949ba816427_step_000",
|
||||
"00001522_7079a898746d41ba8ae13d69_step_003",
|
||||
"00001598_c118664e9f6f4943855293fa_step_000"
|
||||
],
|
||||
"external_fold_previously_observed": true,
|
||||
"epochs": 200,
|
||||
"U": 32000,
|
||||
"twoU": 64000,
|
||||
"delta": 0.001,
|
||||
"bootstrap": {
|
||||
"replicates": 2000,
|
||||
"seed": 2026111408,
|
||||
"unit": "paired evaluation component",
|
||||
"joint_resampling_all_contrasts": true
|
||||
},
|
||||
"endpoints": [
|
||||
"epoch25",
|
||||
"epoch50",
|
||||
"S1_epoch100_reuse",
|
||||
"step50_U",
|
||||
"step50_2U",
|
||||
"step100_U",
|
||||
"step100_2U"
|
||||
],
|
||||
"clock_baselines": [
|
||||
"c25F",
|
||||
"c50F",
|
||||
"c100F"
|
||||
],
|
||||
"domains": [
|
||||
"own_learning",
|
||||
"common_validation",
|
||||
"common_test"
|
||||
],
|
||||
"metrics": [
|
||||
"relative_l2",
|
||||
"last_location",
|
||||
"kendall_tau_b"
|
||||
],
|
||||
"component_counts": {
|
||||
"25": 34,
|
||||
"50": 65,
|
||||
"100": 132
|
||||
},
|
||||
"slope": "(E50_H-E100_H)/log2(n100/n50), H=U and2U",
|
||||
"gain": "E_n_U-E_n_2U for n50,n100",
|
||||
"interaction": "s_2U-s_U; joint component resampling",
|
||||
"classifications": {
|
||||
"data_limited": "s2U low>delta and g100 entireCI in[-delta,delta]",
|
||||
"updates_limited": "s2U entireCI in[-delta,delta] and g100 low>delta",
|
||||
"both": "both low>delta",
|
||||
"local_plateau": "both entireCI in[-delta,delta]",
|
||||
"otherwise": "UNIDENTIFIED_OR_OVERFIT_SIGNS"
|
||||
},
|
||||
"undefined": "Report missing/undefined support; do not call wide/cross-zero CI plateau",
|
||||
"not_training_randomness": true,
|
||||
"no_3U_or_extrapolation": true,
|
||||
"predictions_frozen_before_external_targets": true,
|
||||
"new_exact_postfit_review_required": true
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"reviewed_commit": "c8e2ee4ca3d08cf0080ac18a1d17bfb42fb1b8a6",
|
||||
"contract_sha256": "a84e5e8269269951a2abbde89f8497c6918222cb8cfe7dd240300d7eba6a656f",
|
||||
"implementation_proof_sha256": "b2847189f85eb7321e6c7de3473874e3f215fffabad0800decc903d693d49f74",
|
||||
"comparison_contract_sha256": "235c9768012dc54ab6f2a2e777c4fa4daf21272718f9fff1cab34ba1d5376594",
|
||||
"code_sha256": {
|
||||
"/home/frank14f/optane/MeltMind/tools/test_phase3_data_sufficiency.py": "a308426316c5ea5ef290e4943c197f1b3afc3f2b72f965609693e5906f99752a",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_model.py": "fab2470dd0654ca74c3b7d893f35ad1f3ae6c5c08ffe334ef6312cf6ec87892a",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_common.py": "7a2e92b813c436b5cb7ebc8d791f29955fed2246c5849bf503e58c813863a281",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_home_freeze_io.py": "bf09204b85ed2a7038acdd202257f618474d1110a9d6d772f105a3ffb334d3ff",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_local_freeze_io.py": "60adf3382577613c5234f5cf30779336b9951b66e90c075cb7cd0adab9cc42dd",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h1_worker_v2.py": "1543df85b615bb69b79bacd572074a7c77ae19dab110197601573a7e5805ed20",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_residual_math.py": "ffbd9624dec79bdaabf95244fe87209055908f31a977e73ea4377045d6f8fe62",
|
||||
"/home/frank14f/optane/MeltMind/tools/gre24_models.py": "53b6fee8b700b9b982b06d29908ce2ce23e0c57512c46dbf74b2aade79e3ac3a",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_fixed_io.py": "ea17fdfc7508f3f980e3cdf69534b1eb8ceb8a8e469c32451b2d5e16d0ada575",
|
||||
"/home/frank14f/optane/MeltMind/tools/prepare_phase3_data_sufficiency.py": "38de0055e3199dc8516f3691fbc0c7dd868f7c4523069eb8826d2a49e98e4803",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_prepare.py": "3a31af0766f628a80f38e0b7286beb11ca3109188eabc4adfdb2ecb0eef3dc27",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_queue.py": "743651d095fa19d004431683614ee94b49e47d50d89ff3465f91a91c031c1ce5",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_recovery_gpu_supervisor.py": "689c0f3179e4fcd362e546d90214829a9e4f8739abdbdf74b560763e5a392f15",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_recovery_monitoring.py": "442c2a9c75e8c00b30a8f2e91cb52d87c466b19a80aea9128b10c021e61b922e",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_gate_outcome_review.py": "915617aeb8292d03c654e637bc34a014c254fd178a773f135d1806c4b41372a8",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_guard.py": "680da627a8cd0db5d8d8b04c4b08f34c15625469e9bf64057d9fd09e7c97e695",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_precision_continuation_guard.py": "01235d897c7c03e5ffa109c58b14f5d24d128e8f1ba873e1f76cfb14e02f7a7f",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_gpu_idle_gate.py": "e2b1613e7e6ea398a8d555220a9365a1ad998ab4ef4b2bf8ec7cc4e31f8b4b9f",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_pilot_train.py": "e9cceead51a5cc092aad23409ad98909c84a62e7e10571e750d1e9be1ad3b948",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_models/network.py": "5137e845d81d1223afc13bf87e03ccba1132a3baa75d5189a8f320b2752be071",
|
||||
"/home/frank14f/optane/MeltMind/tools/freeze_g1_components.py": "d0cee60d95243ac2c59ef3f2244ba818315718c4e3d1895f2f9f064f1f7f5ecd",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_main_memory_guard.py": "e094f5443e11518efe9018215c11718a8e18aa462a977bf43e974b2d0b2aebb1",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_worker.py": "9248275d79287eb3f6e0bc74bd1aea9e067877183a4231d72866f48146eff926",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_pilot_worker.py": "14651ca402e6d02466d8afdb77bc9e62fb2e752f0c0c3d20d98593157d5ebe81",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_data.py": "7e03dd7a94e7bb43593277f183c222473d7cb7aaf2f60e53b45ab8d9499fcb09",
|
||||
"/home/frank14f/optane/MeltMind/docs/phase3-data-sufficiency-entry-2026-11-18.md": "b3a89024163fbe27e1f4255f57d085a2dc380b04251906113b205826651c6f73"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"contract_sha256": "a84e5e8269269951a2abbde89f8497c6918222cb8cfe7dd240300d7eba6a656f",
|
||||
"proof_sha256": "b2847189f85eb7321e6c7de3473874e3f215fffabad0800decc903d693d49f74"
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"commit": "c8e2ee4ca3d08cf0080ac18a1d17bfb42fb1b8a6",
|
||||
"files": {
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/contract.json": "a84e5e8269269951a2abbde89f8497c6918222cb8cfe7dd240300d7eba6a656f",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/comparison-contract.json": "235c9768012dc54ab6f2a2e777c4fa4daf21272718f9fff1cab34ba1d5376594",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/acceptance.json": "6f1ecfad495cec726ef322f2992efff0938356217cb0e9e23a6c241987fc9f4e",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/prelaunch-projection.json": "2906e13c8acc2be8ad56aac8c4008d629403ea895836cbbf8066e10cda7a1ece",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/preparation-audit.json": "35224a14f4e1dda0fa831d9faef3ea8a156e26f9bf8232ff5ebe948c7bac9751",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/synthetic-attempt1.log": "d91e8b713f567912cfcd75fdb9d74bb7ea71ac449b5ebfbc2304bc40b15eb094",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/synthetic-attempt2.log": "24be638c1b03aa7b4d3c9af5df3dbca052b3ff167cfbe94f771e64f9f00fb529",
|
||||
"/home/frank14f/optane/MeltMind/tools/test_phase3_data_sufficiency.py": "a308426316c5ea5ef290e4943c197f1b3afc3f2b72f965609693e5906f99752a",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_model.py": "fab2470dd0654ca74c3b7d893f35ad1f3ae6c5c08ffe334ef6312cf6ec87892a",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_common.py": "7a2e92b813c436b5cb7ebc8d791f29955fed2246c5849bf503e58c813863a281",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_home_freeze_io.py": "bf09204b85ed2a7038acdd202257f618474d1110a9d6d772f105a3ffb334d3ff",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_local_freeze_io.py": "60adf3382577613c5234f5cf30779336b9951b66e90c075cb7cd0adab9cc42dd",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h1_worker_v2.py": "1543df85b615bb69b79bacd572074a7c77ae19dab110197601573a7e5805ed20",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_residual_math.py": "ffbd9624dec79bdaabf95244fe87209055908f31a977e73ea4377045d6f8fe62",
|
||||
"/home/frank14f/optane/MeltMind/tools/gre24_models.py": "53b6fee8b700b9b982b06d29908ce2ce23e0c57512c46dbf74b2aade79e3ac3a",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_fixed_io.py": "ea17fdfc7508f3f980e3cdf69534b1eb8ceb8a8e469c32451b2d5e16d0ada575",
|
||||
"/home/frank14f/optane/MeltMind/tools/prepare_phase3_data_sufficiency.py": "38de0055e3199dc8516f3691fbc0c7dd868f7c4523069eb8826d2a49e98e4803",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_prepare.py": "3a31af0766f628a80f38e0b7286beb11ca3109188eabc4adfdb2ecb0eef3dc27",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_queue.py": "743651d095fa19d004431683614ee94b49e47d50d89ff3465f91a91c031c1ce5",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_recovery_gpu_supervisor.py": "689c0f3179e4fcd362e546d90214829a9e4f8739abdbdf74b560763e5a392f15",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_recovery_monitoring.py": "442c2a9c75e8c00b30a8f2e91cb52d87c466b19a80aea9128b10c021e61b922e",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_gate_outcome_review.py": "915617aeb8292d03c654e637bc34a014c254fd178a773f135d1806c4b41372a8",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_guard.py": "680da627a8cd0db5d8d8b04c4b08f34c15625469e9bf64057d9fd09e7c97e695",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_precision_continuation_guard.py": "01235d897c7c03e5ffa109c58b14f5d24d128e8f1ba873e1f76cfb14e02f7a7f",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_gpu_idle_gate.py": "e2b1613e7e6ea398a8d555220a9365a1ad998ab4ef4b2bf8ec7cc4e31f8b4b9f",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_pilot_train.py": "e9cceead51a5cc092aad23409ad98909c84a62e7e10571e750d1e9be1ad3b948",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_models/network.py": "5137e845d81d1223afc13bf87e03ccba1132a3baa75d5189a8f320b2752be071",
|
||||
"/home/frank14f/optane/MeltMind/tools/freeze_g1_components.py": "d0cee60d95243ac2c59ef3f2244ba818315718c4e3d1895f2f9f064f1f7f5ecd",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_main_memory_guard.py": "e094f5443e11518efe9018215c11718a8e18aa462a977bf43e974b2d0b2aebb1",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_worker.py": "9248275d79287eb3f6e0bc74bd1aea9e067877183a4231d72866f48146eff926",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_pilot_worker.py": "14651ca402e6d02466d8afdb77bc9e62fb2e752f0c0c3d20d98593157d5ebe81",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_data.py": "7e03dd7a94e7bb43593277f183c222473d7cb7aaf2f60e53b45ab8d9499fcb09",
|
||||
"/home/frank14f/optane/MeltMind/docs/phase3-data-sufficiency-entry-2026-11-18.md": "b3a89024163fbe27e1f4255f57d085a2dc380b04251906113b205826651c6f73"
|
||||
},
|
||||
"git_paths": {
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/contract.json": "home-runs/phase3-data-sufficiency-2026-11-18/contract.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/comparison-contract.json": "home-runs/phase3-data-sufficiency-2026-11-18/comparison-contract.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/acceptance.json": "home-runs/phase3-data-sufficiency-2026-11-18/acceptance.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/prelaunch-projection.json": "home-runs/phase3-data-sufficiency-2026-11-18/prelaunch-projection.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/preparation-audit.json": "home-runs/phase3-data-sufficiency-2026-11-18/preparation-audit.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/synthetic-attempt1.log": "home-runs/phase3-data-sufficiency-2026-11-18/synthetic-attempt1.log",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/synthetic-attempt2.log": "home-runs/phase3-data-sufficiency-2026-11-18/synthetic-attempt2.log",
|
||||
"/home/frank14f/optane/MeltMind/tools/test_phase3_data_sufficiency.py": "tools/test_phase3_data_sufficiency.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_model.py": "tools/phase2_h2_model.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_common.py": "tools/phase3_data_sufficiency_common.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_home_freeze_io.py": "tools/phase2_home_freeze_io.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_local_freeze_io.py": "tools/phase2_local_freeze_io.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h1_worker_v2.py": "tools/phase2_h1_worker_v2.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_residual_math.py": "tools/phase2_residual_math.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/gre24_models.py": "tools/gre24_models.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_fixed_io.py": "tools/phase2_fixed_io.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/prepare_phase3_data_sufficiency.py": "tools/prepare_phase3_data_sufficiency.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_prepare.py": "tools/phase2_h2_prepare.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_queue.py": "tools/phase3_data_sufficiency_queue.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_recovery_gpu_supervisor.py": "tools/s2_recovery_gpu_supervisor.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_recovery_monitoring.py": "tools/s2_recovery_monitoring.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_gate_outcome_review.py": "tools/phase2_gate_outcome_review.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_guard.py": "tools/phase3_data_sufficiency_guard.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_precision_continuation_guard.py": "tools/s2_precision_continuation_guard.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_gpu_idle_gate.py": "tools/s2_gpu_idle_gate.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_pilot_train.py": "tools/s2_pilot_train.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_models/network.py": "tools/s2_models/network.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/freeze_g1_components.py": "tools/freeze_g1_components.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/s2_main_memory_guard.py": "tools/s2_main_memory_guard.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase3_data_sufficiency_worker.py": "tools/phase3_data_sufficiency_worker.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_pilot_worker.py": "tools/phase2_h2_pilot_worker.py",
|
||||
"/home/frank14f/optane/MeltMind/tools/phase2_h2_data.py": "tools/phase2_h2_data.py",
|
||||
"/home/frank14f/optane/MeltMind/docs/phase3-data-sufficiency-entry-2026-11-18.md": "docs/phase3-data-sufficiency-entry-2026-11-18.md"
|
||||
},
|
||||
"remote_published": false,
|
||||
"local_repository": "/tmp/meltmind-phase2-local-fixed-20261117"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"id": 0,
|
||||
"pool": 25,
|
||||
"mode": "epoch",
|
||||
"updates": 22200,
|
||||
"nodes_per_epoch": 2858048,
|
||||
"edges_per_epoch": 37446758,
|
||||
"expected_new_gpu_seconds": 9225.593911228025,
|
||||
"cap": 10000,
|
||||
"within_cap": true
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"pool": 50,
|
||||
"mode": "epoch",
|
||||
"updates": 38000,
|
||||
"nodes_per_epoch": 4881636,
|
||||
"edges_per_epoch": 64122200,
|
||||
"expected_new_gpu_seconds": 15443.120772559705,
|
||||
"cap": 16000,
|
||||
"within_cap": true
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"pool": 50,
|
||||
"mode": "step",
|
||||
"updates": 64000,
|
||||
"nodes_per_epoch": 4881636,
|
||||
"edges_per_epoch": 64122200,
|
||||
"expected_new_gpu_seconds": 25674.49408867513,
|
||||
"cap": 26600,
|
||||
"within_cap": true
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"pool": 100,
|
||||
"mode": "step",
|
||||
"updates": 64000,
|
||||
"nodes_per_epoch": 8742060,
|
||||
"edges_per_epoch": 115060278,
|
||||
"expected_new_gpu_seconds": 25674.49408867513,
|
||||
"cap": 26600,
|
||||
"within_cap": true
|
||||
}
|
||||
],
|
||||
"training_gpu_seconds": 76017.70286113798,
|
||||
"postfit_gpu_reserve": 7200,
|
||||
"total_gpu_seconds": 83217.70286113798,
|
||||
"item_cap": 86400,
|
||||
"source_max_train_epoch_seconds": 100.7396757279057,
|
||||
"source_max_validation_seconds": 12.383006267948076,
|
||||
"not_actual_execution": true
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"status": "PREPARED_NOT_STARTED",
|
||||
"pools": {
|
||||
"25": {
|
||||
"parts": 111,
|
||||
"components": 34,
|
||||
"nodes": 2858048,
|
||||
"edges": 37446758
|
||||
},
|
||||
"50": {
|
||||
"parts": 190,
|
||||
"components": 65,
|
||||
"nodes": 4881636,
|
||||
"edges": 64122200
|
||||
},
|
||||
"100": {
|
||||
"parts": 320,
|
||||
"components": 132,
|
||||
"nodes": 8742060,
|
||||
"edges": 115060278
|
||||
}
|
||||
},
|
||||
"S1_reuse_identity_verified": true,
|
||||
"metadata_cpu_seconds": 0.2999996500000002,
|
||||
"no_target_arrays_read": true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"contract_sha256": "a84e5e8269269951a2abbde89f8497c6918222cb8cfe7dd240300d7eba6a656f",
|
||||
"proof_sha256": "a74ff09e87c6b2bfc94793612d0bdde95c719190400e6cb813d47134a261e3b1"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"commit": "656904deecb101465f65e95bf4d0eed4b591e4f3",
|
||||
"files": {
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/contract.json": "a84e5e8269269951a2abbde89f8497c6918222cb8cfe7dd240300d7eba6a656f",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/comparison-contract.json": "235c9768012dc54ab6f2a2e777c4fa4daf21272718f9fff1cab34ba1d5376594",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/expected-review-binding.json": "80b02d4c00175c78f007c2fa70929ad3ab8e2c0214e40e6f497188d19253630d",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/implementation-git-freeze.json": "b2847189f85eb7321e6c7de3473874e3f215fffabad0800decc903d693d49f74"
|
||||
},
|
||||
"git_paths": {
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/contract.json": "home-runs/phase3-data-sufficiency-2026-11-18/contract.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/comparison-contract.json": "home-runs/phase3-data-sufficiency-2026-11-18/comparison-contract.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/expected-review-binding.json": "home-runs/phase3-data-sufficiency-2026-11-18/expected-review-binding.json",
|
||||
"/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18/implementation-git-freeze.json": "home-runs/phase3-data-sufficiency-2026-11-18/implementation-git-freeze.json"
|
||||
},
|
||||
"remote_published": false,
|
||||
"local_repository": "/tmp/meltmind-phase2-local-fixed-20261117"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
test_continuous_vs_old_schedule (tools.test_phase3_data_sufficiency.Item1Tests) ... FAIL
|
||||
test_execution_detection (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_gate_no_release_without_receipt (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_global_stop_precedes_gate (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_lr_common_pool (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_lr_domain (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_lr_endpoints (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_midpoint_not_decayed_endpoint (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_partial_epoch_total (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_pool_node_weight (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_cap (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_nonfinite (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_pass (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_waits_all (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
|
||||
======================================================================
|
||||
FAIL: test_continuous_vs_old_schedule (tools.test_phase3_data_sufficiency.Item1Tests)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/frank14f/optane/MeltMind/tools/test_phase3_data_sufficiency.py", line 14, in test_continuous_vs_old_schedule
|
||||
def test_continuous_vs_old_schedule(self):self.assertNotEqual(lr_step(32000),lr_epoch(100))
|
||||
AssertionError: 0.0005458767760088046 == 0.0005458767760088046
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 14 tests in 0.005s
|
||||
|
||||
FAILED (failures=1)
|
||||
@@ -0,0 +1,18 @@
|
||||
test_continuous_vs_old_schedule (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_execution_detection (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_gate_no_release_without_receipt (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_global_stop_precedes_gate (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_lr_domain (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_lr_endpoints (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_midpoint_not_decayed_endpoint (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_partial_epoch_total (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_pool_node_weight (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_cap (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_nonfinite (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_pass (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
test_projection_waits_all (tools.test_phase3_data_sufficiency.Item1Tests) ... ok
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Ran 13 tests in 0.005s
|
||||
|
||||
OK
|
||||
@@ -0,0 +1,58 @@
|
||||
"""Item1 frozen roles, schedules and costs. No model execution or target access."""
|
||||
import json,math
|
||||
from pathlib import Path
|
||||
from phase2_fixed_io import BASE
|
||||
from phase2_h1_worker_v2 import checked,sha
|
||||
from phase2_home_freeze_io import verify
|
||||
|
||||
def read(p):return json.loads(Path(p).read_text())
|
||||
def lr_step(step,total=64000,warmup=3200):
|
||||
if not 1<=step<=total or not 1<warmup<total:raise ValueError('1-based fixed update domain')
|
||||
if step<=warmup:return 1e-4+(step-1)*9e-4/(warmup-1)
|
||||
return 1e-5+(1e-3-1e-5)*(1+math.cos(math.pi*(step-warmup)/(total-warmup)))/2
|
||||
|
||||
def execution_command(args):
|
||||
return any(Path(x).name in {'phase3_data_sufficiency_queue.py','phase3_data_sufficiency_guard.py','phase3_data_sufficiency_worker.py'} for x in args)
|
||||
|
||||
def config(root):
|
||||
c=read(root/'contract.json');verify(root,'implementation')
|
||||
if c['approval']!='1794946961.453149' or c['new_fits']!=4 or c['item_gpu_cap']!=86400 or c['phase3_gpu_cap']!=612000 or c['train_gpu_cap']+c['postfit_gpu_reserve']!=86400:raise PermissionError('Frozen item1 scope')
|
||||
if c['U']!=32000 or c['delta']!=.001 or c['seed']!=0 or c['fold']!=0 or not c['no_retry']:raise ValueError('Frozen science identity')
|
||||
for p,h in {**c['source_sha256'],**c['code_sha256']}.items():checked(p,h)
|
||||
pilot=read(c['pilot_contract'])
|
||||
import torch,numpy as np
|
||||
if torch.__version__!=pilot['versions']['torch'] or np.__version__!=pilot['versions']['numpy']:raise ValueError('Original library identity')
|
||||
if len({j['gpu_uuid'] for j in c['jobs']})!=4 or sum(j['gpu_seconds'] for j in c['jobs'])!=c['train_gpu_cap']:raise ValueError('Job resources')
|
||||
pools=c['pools'];sets=[set(pools[str(p)]['learning']) for p in [25,50,100]]
|
||||
if not sets[0]<sets[1]<sets[2] or sets[2]!=set(pilot['folds'][0]['learning']):raise ValueError('Original nested roles')
|
||||
for p in [25,50,100]:
|
||||
q=pools[str(p)]
|
||||
if set(q['learning'])&(set(q['validation'])|set(q['test'])) or q['validation']!=pilot['folds'][0]['validation'] or q['test']!=pilot['folds'][0]['test']:raise ValueError('Role separation')
|
||||
if read(q['clock_path'])['parts']!=q['learning'] or q['learning_nodes']!=sum(pilot['parts'][x]['nodes'] for x in q['learning']):raise ValueError('Learning clock/node identity')
|
||||
for j in c['jobs']:
|
||||
q=pools[str(j['pool'])];target=200*len(q['learning']) if j['mode']=='epoch' else 2*c['U']
|
||||
if j['target_steps']!=target or j['learning_parts']!=len(q['learning']) or j['learning_nodes']!=q['learning_nodes']:raise ValueError('Cell identity')
|
||||
return c,pilot
|
||||
|
||||
def view_for(c,pilot,job):return dict(pilot,folds=[c['pools'][str(job['pool'])]])
|
||||
|
||||
def project(c,observations):
|
||||
if set(observations)!=set(range(4)):raise ValueError('Four first epochs required')
|
||||
rows=[]
|
||||
for j in c['jobs']:
|
||||
v=observations[j['id']];steps=v['steps'];per=v['max_epoch_seconds']/j['learning_parts'];val=max(v['max_validation_seconds'],j['validation_seconds_bound'])
|
||||
if not 0<steps<=j['target_steps'] or not all(math.isfinite(x) and x>=0 for x in [per,val,v['charged']]) or per<=0:raise ValueError('Invalid cost evidence')
|
||||
# Up to20 validation diagnostics, plus U checkpoint and final save overhead.
|
||||
future=1.25*((j['target_steps']-steps)*per+20*val)+120
|
||||
cost=v['charged']+future
|
||||
rows.append(dict(id=j['id'],pool=j['pool'],mode=j['mode'],projected_gpu_seconds=cost,job_cap=j['gpu_seconds'],within_cap=cost<=j['gpu_seconds']))
|
||||
total=sum(r['projected_gpu_seconds'] for r in rows)+c['postfit_gpu_reserve']
|
||||
return dict(status='PASS' if total<=c['item_gpu_cap'] and all(r['within_cap'] for r in rows) else 'STOP_BUDGET_PROJECTION',rows=rows,projected_item_gpu_seconds=total,postfit_reserve=c['postfit_gpu_reserve'],phase3_previous_items_gpu_seconds=0,phase3_cap=c['phase3_gpu_cap'],safety_factor=1.25)
|
||||
|
||||
def first_epoch_release(root):
|
||||
if (root/'global-stop.json').exists():raise RuntimeError('Global item1 stop')
|
||||
p=root/'first-epoch-projection.json'
|
||||
if not p.exists():return False
|
||||
d=read(p)
|
||||
if d['status']!='PASS' or d['contract_sha256']!=sha(root/'contract.json'):raise RuntimeError('First-epoch projection rejected')
|
||||
return True
|
||||
@@ -0,0 +1,86 @@
|
||||
"""Independent bounded ITEM1 fold guard; shared global stop and immutable S1."""
|
||||
import fcntl
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import signal
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
import psutil
|
||||
from phase3_data_sufficiency_common import config
|
||||
from phase2_h1_worker_v2 import save,sha
|
||||
from s2_main_memory_guard import PeakRecords
|
||||
from s2_precision_continuation_guard import device_usage
|
||||
from s2_recovery_gpu_supervisor import supervise,tree_usage,stop_group,disk_usage
|
||||
|
||||
def run(queue,fold_id):
|
||||
c,_=config(queue);job=c['jobs'][fold_id];c=dict(c,**job);root=queue/'jobs'/str(fold_id);os.sched_setaffinity(0,c['guard_cpus'])
|
||||
with (root/'fold.lock').open('a') as lock:
|
||||
fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
if (root/'started.json').exists():raise FileExistsError('Single ITEM1 fold launch, no retry')
|
||||
start=time.monotonic();cpu=time.process_time();requested=[];reasons=[];errors=[];samples=[];done=threading.Event();tracker=PeakRecords();receipt=None
|
||||
save(root/'started.json',dict(pid=os.getpid(),unix=time.time(),contract_sha256=sha(queue/'contract.json'),gpu_uuid=c['gpu_uuid'],setup_gpu_seconds=c['setup_gpu_seconds']))
|
||||
def elapsed():return c['setup_gpu_seconds']+time.monotonic()-start
|
||||
def reason(x):
|
||||
if x not in reasons:reasons.append(x)
|
||||
command=[sys.executable,'tools/phase3_data_sufficiency_worker.py',str(queue),str(fold_id)]
|
||||
def kill_worker():
|
||||
for p in psutil.Process().children(recursive=True):
|
||||
try:
|
||||
if p.cmdline()==command:stop_group(p.pid)
|
||||
except psutil.NoSuchProcess:pass
|
||||
old={s:signal.signal(s,lambda signum,frame:requested.append('COORDINATOR_SIGNAL_'+str(signum))) for s in [signal.SIGINT,signal.SIGTERM]}
|
||||
def scan():
|
||||
if tracker.scan(root/'worker'):reason('RECORDED_VRAM_LIMIT')
|
||||
def watch():
|
||||
while not done.is_set():
|
||||
try:
|
||||
scan();mem,util=device_usage(c['gpu_uuid']);_,rss,_=tree_usage(os.getpid())
|
||||
if mem>c['vram_bytes']:reason('DEVICE_VRAM_LIMIT')
|
||||
if rss>c['rss_bytes']:reason('WHOLE_TREE_RSS_LIMIT')
|
||||
if disk_usage(root)>c['disk_bytes']:reason('OUTPUT_DISK_LIMIT')
|
||||
if elapsed()>=c['gpu_seconds']-5:reason('ITEM1_FOLD_TIME_LIMIT')
|
||||
if (queue/'global-stop.json').exists():reason('ITEM1_GLOBAL_STOP')
|
||||
for x in requested:reason(x)
|
||||
save(root/'live-progress.json',dict(stage='ITEM1_TRAINING',fold=fold_id,elapsed_gpu_seconds=elapsed(),device_bytes=mem,device_utilization=util,tree_rss_bytes=rss,recorded_peaks=tracker.maxima,reasons=reasons,unix=time.time()))
|
||||
except Exception as exc:reason('MONITOR_ERROR');errors.append(dict(type=type(exc).__name__,reason=str(exc)))
|
||||
if reasons:kill_worker()
|
||||
done.wait(.5)
|
||||
thread=None
|
||||
try:
|
||||
for i in range(3):
|
||||
mem,util=device_usage(c['gpu_uuid']);samples.append(dict(unix=time.time(),memory_bytes=mem,utilization=util))
|
||||
if mem>128*2**20 or util!=0:raise RuntimeError('SELECTED_GPU_BUSY')
|
||||
if i<2:time.sleep(2)
|
||||
save(root/'idle-polls.json',samples)
|
||||
thread=threading.Thread(target=watch,daemon=True);thread.start()
|
||||
remaining=c['gpu_seconds']-elapsed()-10
|
||||
receipt=supervise(command,root/'guards','train',dict(total_cpu_seconds=c['cpu_seconds']-60,job_cpu_seconds=c['cpu_seconds']-60,job_wall_seconds=remaining,tree_rss_bytes=c['rss_bytes'],disk_bytes=c['disk_bytes'],max_processes=1),poll=.2,gpu_uuid=c['gpu_uuid'])
|
||||
except BaseException as exc:reason(type(exc).__name__+': '+str(exc));kill_worker()
|
||||
finally:
|
||||
done.set()
|
||||
if thread:thread.join(timeout=4)
|
||||
if thread and thread.is_alive():reason('MONITOR_DID_NOT_EXIT')
|
||||
try:scan()
|
||||
except Exception as exc:reason('FINAL_PEAK_SCAN_ERROR');errors.append(dict(reason=str(exc)))
|
||||
for s,handler in old.items():signal.signal(s,handler)
|
||||
value=None;p=root/'worker/result.json'
|
||||
try:
|
||||
if p.exists():value=json.loads(p.read_text())
|
||||
except Exception as exc:reason('RESULT_READ_ERROR');errors.append(dict(reason=str(exc)))
|
||||
if not receipt or receipt['status']!='PASS':reason('WORKER_NOT_PASS')
|
||||
if receipt and receipt.get('monitor_errors'):reason('WORKER_MONITOR_ERRORS')
|
||||
if not value or value.get('status')!='COMPLETE':reason('NO_COMPLETE_TRAIN_RESULT')
|
||||
if not all(k in tracker.witnesses for k in ['peak_allocated_bytes','peak_reserved_bytes']):reason('MISSING_CUDA_PEAK_RECORDS')
|
||||
totalcpu=60+(receipt['cpu_seconds'] if receipt else 0)+time.process_time()-cpu
|
||||
if elapsed()>c['gpu_seconds'] or totalcpu>c['cpu_seconds']:reason('FINAL_RESOURCE_LIMIT')
|
||||
try:config(queue)
|
||||
except Exception as exc:reason('FINAL_SOURCE_IDENTITY: '+str(exc))
|
||||
if value and (value.get('optimizer_steps')!=c['target_steps'] or value.get('job')!=fold_id):reason('INCOMPLETE_EPOCH_OR_FOLD_COUNT')
|
||||
save(root/'complete.json',dict(status='PASS' if not reasons else 'STOPPED_OR_FAILED',decision='TRAIN_COMPLETE_CHECKPOINT_FREEZE_PENDING' if not reasons else 'ITEM1_FOLD_INCOMPLETE',reasons=reasons,monitor_errors=errors,
|
||||
worker=receipt,recorded_memory=tracker.as_dict(),gpu_seconds_charged=elapsed(),fold=fold_id,cpu_seconds_charged=totalcpu,
|
||||
worker_result_sha256=sha(p) if p.exists() else None,prediction_started=False,scoring_started=False,s2_started=True,no_retry=True))
|
||||
return 0 if not reasons else 1
|
||||
|
||||
if __name__=='__main__':raise SystemExit(run(Path(sys.argv[1]),int(sys.argv[2])))
|
||||
@@ -0,0 +1,91 @@
|
||||
"""Single four-cell queue; first-epoch and periodic cost gates; checkpoint-only terminal."""
|
||||
import fcntl,os,signal,subprocess,sys,time
|
||||
from pathlib import Path
|
||||
import psutil
|
||||
from phase3_data_sufficiency_common import config,read,project,execution_command
|
||||
from phase2_h1_worker_v2 import save,sha,checked
|
||||
from phase2_home_freeze_io import freeze
|
||||
from phase2_gate_outcome_review import validate_review
|
||||
from s2_recovery_gpu_supervisor import tree_usage,disk_usage
|
||||
|
||||
def run(root):
|
||||
c,pilot=config(root);validate_review(root);lock=(root/'queue.lock').open('a');fcntl.flock(lock,fcntl.LOCK_EX|fcntl.LOCK_NB)
|
||||
if (root/'started.json').exists():raise FileExistsError('Single item1 attempt; no retry')
|
||||
for p in psutil.process_iter(['pid','cmdline']):
|
||||
if p.pid!=os.getpid() and execution_command(p.info['cmdline'] or []):raise RuntimeError('Existing item1 execution')
|
||||
os.sched_setaffinity(0,c['coordinator_cpus']);os.environ['PYTORCH_CUDA_ALLOC_CONF']='expandable_segments:True';start=time.monotonic();cpu=time.process_time();active={};terminal={};requested=[];last_projection=-1
|
||||
def stop(reason):
|
||||
if not (root/'global-stop.json').exists():save(root/'global-stop.json',dict(reason=reason,unix=time.time(),no_retry=True))
|
||||
def charged():return sum(v['gpu_seconds_charged'] for v in terminal.values())+sum(60+time.monotonic()-v['start'] for v in active.values())
|
||||
def terminate(v):
|
||||
if v.get('stop_sent') is None:v['process'].send_signal(signal.SIGTERM);v['stop_sent']=time.monotonic()
|
||||
elif time.monotonic()-v['stop_sent']>20:
|
||||
try:
|
||||
parent=psutil.Process(v['process'].pid)
|
||||
for p in reversed(parent.children(recursive=True)):
|
||||
try:p.kill()
|
||||
except psutil.NoSuchProcess:pass
|
||||
parent.kill()
|
||||
except psutil.NoSuchProcess:pass
|
||||
def collect(i,v):
|
||||
rc=v['process'].poll()
|
||||
if rc is None:return False
|
||||
p=root/'jobs'/str(i)/'complete.json';r=read(p) if p.exists() else None;observed=60+time.monotonic()-v['start'];ok=rc==0 and r is not None and r['status']=='PASS'
|
||||
terminal[i]=dict(id=i,status='PASS' if ok else 'STOPPED_OR_FAILED',returncode=rc,gpu_seconds_charged=max(observed,r['gpu_seconds_charged'] if r else 0),guard_complete_sha256=sha(p) if r else None);v['log'].close();del active[i]
|
||||
save(root/'terminal-ledger.json',dict(entries=list(terminal.values()),settled_gpu_seconds=sum(x['gpu_seconds_charged'] for x in terminal.values())))
|
||||
if not ok:stop('CELL_'+str(i)+'_FAILED')
|
||||
return True
|
||||
def observations():
|
||||
result={}
|
||||
for j in c['jobs']:
|
||||
i=j['id'];rows=[read(p) for p in sorted((root/'jobs'/str(i)/'worker/history').glob('*.json'))]
|
||||
full=[r for r in rows if r['full_epoch']]
|
||||
if not full:return None
|
||||
result[i]=dict(steps=rows[-1]['optimizer_steps'],charged=terminal[i]['gpu_seconds_charged'] if i in terminal else 60+time.monotonic()-active[i]['start'],max_epoch_seconds=max(r['train_epoch_seconds'] for r in full),max_validation_seconds=max(r['validation_seconds'] for r in rows))
|
||||
return result
|
||||
handlers={s:signal.signal(s,lambda n,f:requested.append('SIGNAL_'+str(n))) for s in [signal.SIGTERM,signal.SIGINT]}
|
||||
save(root/'started.json',dict(pid=os.getpid(),unix=time.time(),contract_sha256=sha(root/'contract.json'),review_sha256=sha(root/'review.json'),new_fits=4,S1_retrained=False,item_gpu_cap=86400,postfit_started=False))
|
||||
try:
|
||||
for j in c['jobs']:
|
||||
i=j['id'];d=root/'jobs'/str(i);d.mkdir(parents=True,exist_ok=False);log=(d/'entry.log').open('x');begin=time.monotonic();cmd=[sys.executable,'tools/phase3_data_sufficiency_guard.py',str(root),str(i)];p=subprocess.Popen(cmd,stdout=log,stderr=subprocess.STDOUT,start_new_session=True);active[i]=dict(process=p,log=log,start=begin,stop_sent=None);save(d/'dispatch.json',dict(pid=p.pid,command=cmd,unix=time.time(),gpu_uuid=j['gpu_uuid']))
|
||||
while active:
|
||||
for i,v in list(active.items()):collect(i,v)
|
||||
for x in requested:stop(x)
|
||||
amount=charged();_,rss,_=tree_usage(os.getpid())
|
||||
if amount>=c['train_gpu_cap']-80:stop('CUMULATIVE_TRAIN_GPU_RESERVE_BOUNDARY')
|
||||
if rss>64*2**30 or disk_usage(root)>80*2**30:stop('AGGREGATE_MEMORY_DISK_LIMIT')
|
||||
if not (root/'global-stop.json').exists():
|
||||
obs=observations()
|
||||
if obs is not None:
|
||||
stage=min(int(obs[j['id']]['steps']/j['target_steps']*20) for j in c['jobs'])
|
||||
if stage>last_projection:
|
||||
p=project(c,obs);p.update(contract_sha256=sha(root/'contract.json'),unix=time.time());save(root/('first-epoch-projection.json' if last_projection<0 else 'latest-cost-projection.json'),p);last_projection=stage
|
||||
if p['status']!='PASS':stop('PROJECTED_ITEM_GPU_BUDGET')
|
||||
if (root/'global-stop.json').exists():
|
||||
for v in active.values():terminate(v)
|
||||
save(root/'live-progress.json',dict(stage='STOPPING' if (root/'global-stop.json').exists() else 'ITEM1_TRAINING',unix=time.time(),active=[dict(id=i,guard_pid=v['process'].pid) for i,v in active.items()],terminal=list(terminal.values()),charged_training_gpu_seconds=amount,postfit_gpu_reserve=c['postfit_gpu_reserve'],item_cap=86400,phase3_cap=612000))
|
||||
if active:time.sleep(1)
|
||||
if (root/'global-stop.json').exists() or len(terminal)!=4 or any(x['status']!='PASS' for x in terminal.values()):raise RuntimeError('Item1 train incomplete')
|
||||
config(root);models=[]
|
||||
for j in c['jobs']:
|
||||
w=root/'jobs'/str(j['id'])/'worker';r=read(w/'result.json');stats=read(checked(w/'standardization.json',r['standardization_sha256']))
|
||||
if r['optimizer_steps']!=j['target_steps'] or stats['parts']!=c['pools'][str(j['pool'])]['learning'] or r['test_targets_read']:raise ValueError('Terminal cell identity')
|
||||
for m in r['checkpoints']:checked(m['path'],m['sha256']);models.append(dict(job=j['id'],pool=j['pool'],mode=j['mode'],**m))
|
||||
if len(models)!=6 or charged()>c['train_gpu_cap']:raise ValueError('Checkpoint or cumulative cost')
|
||||
save(root/'models-terminal.json',dict(models=models,reused_S1=c['S1_reuse'],new_fits=4,new_checkpoints=6,test_prediction_started=False))
|
||||
freeze(root,'models',[root/'contract.json',root/'models-terminal.json',root/'terminal-ledger.json',*[Path(m['path']) for m in models],*[Path(m['standardization']) for m in models]])
|
||||
save(root/'complete.json',dict(status='TRAIN_COMPLETE_POSTFIT_PENDING',entries=list(terminal.values()),training_gpu_seconds=charged(),postfit_gpu_reserve=c['postfit_gpu_reserve'],item_gpu_cap=86400,coordinator_cpu_seconds=time.process_time()-cpu,wall_seconds=time.monotonic()-start,no_retry=True,test_targets_read=False));freeze(root,'terminal',[root/'contract.json',root/'complete.json',root/'models-terminal.json']);return 0
|
||||
except BaseException as exc:
|
||||
stop(type(exc).__name__+': '+str(exc))
|
||||
while active:
|
||||
for i,v in list(active.items()):
|
||||
try:
|
||||
if not collect(i,v):terminate(v)
|
||||
except Exception:
|
||||
terminate(v)
|
||||
if v['process'].poll() is not None:terminal[i]=dict(id=i,status='MALFORMED_TERMINAL',gpu_seconds_charged=60+time.monotonic()-v['start']);v['log'].close();del active[i]
|
||||
if active:time.sleep(.5)
|
||||
save(root/'complete.json',dict(status='STOPPED',reason=str(exc),entries=list(terminal.values()),training_gpu_seconds=charged(),postfit_started=False,no_retry=True));return 1
|
||||
finally:
|
||||
for s,h in handlers.items():signal.signal(s,h)
|
||||
if __name__=='__main__':raise SystemExit(run(Path(sys.argv[1])))
|
||||
@@ -0,0 +1,71 @@
|
||||
"""Four fixed fresh fits; common step trajectory; no test prediction/target access."""
|
||||
import os,sys,time,traceback,collections
|
||||
from pathlib import Path
|
||||
import numpy as np
|
||||
import torch
|
||||
from phase3_data_sufficiency_common import config,view_for,lr_step,first_epoch_release
|
||||
from phase2_h2_model import H2Geo,optimizer,lr_epoch
|
||||
from phase2_h2_data import standardization,load_part,to_device,arguments,cached
|
||||
from phase2_h2_pilot_worker import seed,peaks,train_step
|
||||
from phase2_residual_math import residual_target
|
||||
from phase2_h1_worker_v2 import save,sha
|
||||
|
||||
def run(root,jobid):
|
||||
c,pilot=config(root);j=c['jobs'][jobid];view=view_for(c,pilot,j);f=view['folds'][0];out=root/'jobs'/str(jobid)/'worker';out.mkdir(exist_ok=False);(out/'history').mkdir()
|
||||
os.sched_setaffinity(0,j['worker_cpus']);torch.set_num_threads(1);torch.set_num_interop_threads(1)
|
||||
start=time.monotonic();cpu=time.process_time();steps=0;epoch=0;stage='SETUP';exposures=collections.Counter();nodes_exposed=0;edges_exposed=0;checkpoints=[];val_checks=0
|
||||
def record(extra,final=False):
|
||||
d=dict(stage=stage,job=jobid,pool=j['pool'],mode=j['mode'],epoch=epoch,optimizer_steps=steps,nodes_exposed=nodes_exposed,edges_exposed=edges_exposed,wall_seconds=time.monotonic()-start,cpu_seconds=time.process_time()-cpu,**extra,**peaks());save(out/'progress.json',d)
|
||||
if final:save(out/'history'/f'{epoch:04d}.json',d)
|
||||
return d
|
||||
def checkpoint(tag):
|
||||
path=out/(tag+'.pt');torch.save(dict(model=model.state_dict(),optimizer=opt.state_dict(),completed_epochs=epoch,optimizer_steps=steps,seed=0,fold=0,pool=j['pool'],mode=j['mode'],contract_sha256=sha(root/'contract.json'),role=tag),path)
|
||||
checkpoints.append(dict(tag=tag,steps=steps,path=str(path),sha256=sha(path),standardization=str(out/'standardization.json'),standardization_sha256=sha(out/'standardization.json')))
|
||||
def validation():
|
||||
nonlocal val_checks
|
||||
begin=time.monotonic();model.eval();loss=0.;n=0
|
||||
with torch.no_grad():
|
||||
for case in f['validation']:
|
||||
d=to_device(load_part(view,case,stats,'validation',out),'cuda');p=model(*arguments(d),checkpoint_blocks=False)
|
||||
if not bool(torch.isfinite(p).all()):raise ValueError('Nonfinite validation output')
|
||||
with (out/'validation-target-access.jsonl').open('a') as log:
|
||||
import json
|
||||
log.write(json.dumps(dict(case=case,steps=steps,role='validation_diagnostic_only',target_sha256=view['parts'][case]['output_sha256']['target.npy']))+'\n')
|
||||
target=residual_target(cached(view,case,'target'),d['F'],f['c'],fit_dtype='float32');delta=p.cpu().numpy().astype(np.float64)-target;loss+=float(delta@delta);n+=d['nodes'];del d,p
|
||||
torch.cuda.synchronize()
|
||||
if n!=f['validation_nodes']:raise ValueError('Validation coverage')
|
||||
val_checks+=1;v=dict(steps=steps,validation_mse=loss/n,validation_nodes=n,validation_seconds=time.monotonic()-begin,validation_used_for_selection=False);save(out/f'validation-{steps:06d}.json',v);return v
|
||||
try:
|
||||
if os.environ.get('CUDA_VISIBLE_DEVICES')!=j['gpu_uuid'] or os.environ.get('PYTORCH_CUDA_ALLOC_CONF')!='expandable_segments:True':raise ValueError('GPU allocator identity')
|
||||
stats=standardization(view,out)
|
||||
torch.backends.cuda.matmul.allow_tf32=False;torch.backends.cudnn.allow_tf32=False;torch.cuda.set_device(0);torch.cuda.init();torch.cuda.reset_peak_memory_stats();seed();model=H2Geo().cuda();opt=optimizer(model)
|
||||
save(out/'environment.json',dict(torch=torch.__version__,gpu_uuid=j['gpu_uuid'],allocator_settings=str(torch.cuda.memory._snapshot().get('allocator_settings',{})),seed=0,fresh_initialization=True,model_dtype='FP32',autocast=False))
|
||||
while steps<j['target_steps']:
|
||||
epoch+=1;stage='TRAIN';begin=time.monotonic();seen=0;enodes=0;loss_sum=0.;validation_seconds=0.
|
||||
order=np.random.default_rng(np.random.SeedSequence([0,epoch])).permutation(len(f['learning']))
|
||||
for index in order:
|
||||
case=f['learning'][int(index)];lr=lr_epoch(epoch) if j['mode']=='epoch' else lr_step(steps+1)
|
||||
for group in opt.param_groups:group['lr']=lr
|
||||
d=to_device(load_part(view,case,stats,'learning',out),'cuda');res=train_step(model,opt,d,len(f['learning']),f['learning_nodes']);steps+=1;seen+=1;enodes+=d['nodes'];nodes_exposed+=d['nodes'];edges_exposed+=d['directed_edges'];exposures[case]+=1;loss_sum+=res['loss'];del d
|
||||
record(dict(case=case,epoch_parts=seen,epoch_nodes=enodes,lr=lr,loss=res['loss']))
|
||||
if j['mode']=='step' and steps in [c['U'],2*c['U']]:checkpoint('U' if steps==c['U'] else '2U')
|
||||
if j['mode']=='step' and steps%3200==0:validation_seconds+=validation()['validation_seconds']
|
||||
if steps==j['target_steps']:break
|
||||
train_seconds=time.monotonic()-begin-validation_seconds
|
||||
if j['mode']=='epoch' and epoch%10==0:validation_seconds+=validation()['validation_seconds']
|
||||
full_epoch=seen==len(f['learning'])
|
||||
if full_epoch and enodes!=f['learning_nodes']:raise ValueError('Epoch full-node identity')
|
||||
stage='EPOCH_COMPLETE';record(dict(epoch_parts=seen,epoch_nodes=enodes,full_epoch=full_epoch,train_epoch_seconds=train_seconds,validation_seconds=validation_seconds,train_online_mean_weighted_loss=loss_sum/seen,not_frozen_model_training_domain_error=True),final=True)
|
||||
if epoch==1:
|
||||
stage='WAIT_FIRST_EPOCH_PROJECTION'
|
||||
while not first_epoch_release(root):
|
||||
record(dict(waiting=True));time.sleep(1)
|
||||
if (root/'global-stop.json').exists():raise RuntimeError('Global item1 stop')
|
||||
if j['mode']=='epoch':checkpoint('epoch200')
|
||||
expected=['epoch200'] if j['mode']=='epoch' else ['U','2U']
|
||||
if [x['tag'] for x in checkpoints]!=expected:raise ValueError('Checkpoint coverage')
|
||||
save(out/'exposures.json',dict(per_part=dict(exposures),nodes_exposed=nodes_exposed,edges_exposed=edges_exposed,steps=steps,common_steps_not_equal_compute=True))
|
||||
save(out/'result.json',dict(status='COMPLETE',job=jobid,pool=j['pool'],mode=j['mode'],completed_epochs=epoch,optimizer_steps=steps,checkpoints=checkpoints,validation_checks=val_checks,standardization_sha256=sha(out/'standardization.json'),exposures_sha256=sha(out/'exposures.json'),test_targets_read=False,test_prediction_started=False,worker_wall_seconds=time.monotonic()-start,worker_cpu_seconds=time.process_time()-cpu,**peaks()))
|
||||
except BaseException as exc:
|
||||
save(out/'failure.json',dict(status='FAILED',job=jobid,stage=stage,epoch=epoch,optimizer_steps=steps,reason=str(exc),traceback=traceback.format_exc(),**(peaks() if torch.cuda.is_initialized() else {})));raise
|
||||
if __name__=='__main__':run(Path(sys.argv[1]),int(sys.argv[2]))
|
||||
@@ -0,0 +1,43 @@
|
||||
"""Freeze item1 metadata, identity, costs and comparison contract; no target/GPU execution."""
|
||||
import json,time,shutil,math
|
||||
from pathlib import Path
|
||||
from collections import Counter
|
||||
from phase2_h1_worker_v2 import sha,save,checked
|
||||
from phase2_h2_prepare import closure
|
||||
from phase2_home_freeze_io import freeze,verify
|
||||
B=Path('/home/frank14f/optane/MeltMind');R=Path('/home/frank14f/MeltMind-runs/phase3-data-sufficiency-2026-11-18')
|
||||
def read(p):return json.loads(Path(p).read_text())
|
||||
def main():
|
||||
import psutil
|
||||
from phase3_data_sufficiency_common import execution_command,config
|
||||
if R.exists():raise FileExistsError('Existing item1 root; inspect before any action')
|
||||
if any(execution_command(p.info['cmdline'] or []) for p in psutil.process_iter(['cmdline'])):raise RuntimeError('Existing item1 task')
|
||||
start=time.process_time();src={}
|
||||
def source(p):p=Path(p);src[str(p)]=sha(p);return read(p)
|
||||
pilotpath=B/'artifacts/phase2-h2-pilot-2026-11-17/contract.json';pilot=source(pilotpath);hp=B/'artifacts/phase2-h1-execution-2026-11-17';h=source(hp/'contract.json');models=source(hp/'models-terminal.json')['models'];S=Path('/home/frank14f/MeltMind-runs/phase2-h2-s1-postfit-2026-11-17');S2=Path('/home/frank14f/MeltMind-runs/phase2-h2-s2-postfit-2026-11-17');s2=source(S2/'score/result.json');assert s2['decision']=='CONFIRMED';verify(S2,'terminal');sp=source(S/'contract.json');s1result=source(S/'score/result.json');s1complete=source(S/'complete.json');s1train=B/'artifacts/phase2-h2-s1-2026-11-17';tr=source(s1train/'worker/result.json');tc=source(s1train/'contract.json');f0=pilot['folds'][0];pools={}
|
||||
for pool in [25,50,100]:
|
||||
job=next(j for j in h['jobs'] if j['protocol']=='grouped' and j['fold']==0 and j['pool']==pool);m=next(x for x in models if x['index']==job['index']);clock=source(checked(m['clock_path'],m['clock_sha256']));assert clock['parts']==job['learning'];f=dict(f0,learning=job['learning'],c=clock['c'],clock_path=m['clock_path'],clock_sha256=m['clock_sha256']);f['learning_nodes']=sum(pilot['parts'][k]['nodes'] for k in f['learning']);f['learning_edges']=sum(pilot['geometry'][k]['directed_edges'] for k in f['learning']);f['learning_component_ids']=sorted({h['grouped_rows'][k]['component_id'] for k in f['learning']});f['learning_components']=len(f['learning_component_ids']);f['exposure_counts']=dict(Counter(h['grouped_rows'][k]['exposure']['inventory_state'] for k in f['learning']));f['geometry_category_coverage']='UNAVAILABLE_NO_FROZEN_CATEGORY_ONTOLOGY';pools[str(pool)]=f
|
||||
assert pools['100']['learning']==f0['learning'] and pools['100']['c']==f0['c'];assert all(set(pools[str(a)]['learning_component_ids'])<set(pools[str(b)]['learning_component_ids']) for a,b in [(25,50),(50,100)])
|
||||
assert tr['checkpoint_sha256']==sp['checkpoint_sha256'] and tr['completed_epochs']==200 and tr['optimizer_steps']==64000 and tc['seed']==0
|
||||
oldstats=source(s1train/'worker/standardization.json');assert oldstats['parts']==f0['learning'];source(S/'predictions-manifest.json');source(S/'post-terminal-cost.json');source(S/'terminal-git-freeze.json');source(S/'predictions-git-freeze.json');src[tr['checkpoint']]=sha(tr['checkpoint']);assert src[tr['checkpoint']]==tr['checkpoint_sha256']
|
||||
history=[source(s1train/'worker/history'/f'{e:03d}.json') for e in range(1,201)];maxt=max(x['train_epoch_seconds'] for x in history);maxv=max(x.get('validation_seconds',0) for x in history)
|
||||
gpu=['GPU-e8853ae7-a302-6a17-bcfa-aa767e9ed20c','GPU-f1c9fd5a-e917-56e0-21fb-24035ba44a36','GPU-b8c11c01-c91f-aa0b-abf6-dad35085cc76','GPU-8b71b032-1b75-2891-935c-ce106a53034a'];jobs=[];projections=[]
|
||||
for i,(pool,mode,cap) in enumerate([(25,'epoch',10000),(50,'epoch',16000),(50,'step',26600),(100,'step',26600)]):
|
||||
f=pools[str(pool)];n=len(f['learning']);steps=200*n if mode=='epoch' else 64000;ratio=max(f['learning_nodes']/f0['learning_nodes'],f['learning_edges']/f0['learning_edges'],n/320);est=1.25*(maxt*ratio/n*steps+20*maxv)+180
|
||||
j=dict(id=i,pool=pool,mode=mode,target_steps=steps,learning_parts=n,learning_nodes=f['learning_nodes'],learning_edges=f['learning_edges'],gpu_uuid=gpu[i],worker_cpus=[2*i,2*i+1],guard_cpus=[8+i],gpu_seconds=cap,cpu_seconds=cap,setup_gpu_seconds=60,validation_seconds_bound=maxv,rss_bytes=16*2**30,vram_bytes=15*2**30,disk_bytes=20*2**30);jobs.append(j);projections.append(dict(id=i,pool=pool,mode=mode,updates=steps,nodes_per_epoch=f['learning_nodes'],edges_per_epoch=f['learning_edges'],expected_new_gpu_seconds=est,cap=cap,within_cap=est<=cap))
|
||||
if not all(x['within_cap'] for x in projections) or sum(x['expected_new_gpu_seconds'] for x in projections)+7200>86400:raise ValueError('Prelaunch cost projection fails; do not create or launch')
|
||||
R.mkdir();comparison=dict(spec_sha256='e24fff7c5cb91dff7acf1532f502daec60e4b7fec21b2d4d4dcde1e793be7fb4',fold=0,seed=0,pools=[25,50,100],common_validation=f0['validation'],common_test=f0['test'],external_fold_previously_observed=True,epochs=200,U=32000,twoU=64000,delta=.001,bootstrap=dict(replicates=2000,seed=2026111408,unit='paired evaluation component',joint_resampling_all_contrasts=True),endpoints=['epoch25','epoch50','S1_epoch100_reuse','step50_U','step50_2U','step100_U','step100_2U'],clock_baselines=['c25F','c50F','c100F'],domains=['own_learning','common_validation','common_test'],metrics=['relative_l2','last_location','kendall_tau_b'],component_counts={p:f['learning_components'] for p,f in pools.items()},slope='(E50_H-E100_H)/log2(n100/n50), H=U and2U',gain='E_n_U-E_n_2U for n50,n100',interaction='s_2U-s_U; joint component resampling',classifications=dict(data_limited='s2U low>delta and g100 entireCI in[-delta,delta]',updates_limited='s2U entireCI in[-delta,delta] and g100 low>delta',both='both low>delta',local_plateau='both entireCI in[-delta,delta]',otherwise='UNIDENTIFIED_OR_OVERFIT_SIGNS'),undefined='Report missing/undefined support; do not call wide/cross-zero CI plateau',not_training_randomness=True,no_3U_or_extrapolation=True,predictions_frozen_before_external_targets=True,new_exact_postfit_review_required=True)
|
||||
save(R/'comparison-contract.json',comparison)
|
||||
spec=B/'references/2026-11-17/phase2-design/mold-h2-data-sufficiency-e24fff7c.md';assert sha(spec)==comparison['spec_sha256'];src[str(spec)]=sha(spec)
|
||||
codes={str(B/p):d for p,d in closure(['phase3_data_sufficiency_common','phase3_data_sufficiency_worker','phase3_data_sufficiency_guard','phase3_data_sufficiency_queue','prepare_phase3_data_sufficiency','test_phase3_data_sufficiency']).items()};doc=B/'docs/phase3-data-sufficiency-entry-2026-11-18.md';codes[str(doc)]=sha(doc)
|
||||
reuse=dict(checkpoint=tr['checkpoint'],checkpoint_sha256=tr['checkpoint_sha256'],standardization=str(s1train/'worker/standardization.json'),standardization_sha256=sha(s1train/'worker/standardization.json'),test_score=str(S/'score/result.json'),test_score_sha256=sha(S/'score/result.json'),test_manifest=str(S/'predictions-manifest.json'),test_manifest_sha256=sha(S/'predictions-manifest.json'),exact_identity_checked=['roles','seed0','architecture','learning_clock','normalization_formula','original_lr_epoch','last200_selection','test_domain'],old_gpu_cost_not_recharged=True)
|
||||
c=dict(version='phase3-item1-training-v1',approval='1794946961.453149',plan_commit='304f5771d9fdf1c764251b3b7d7f0b6ae7d0e854',fold=0,seed=0,U=32000,delta=.001,new_fits=4,pilot_contract=str(pilotpath),pools=pools,jobs=jobs,S1_reuse=reuse,item_gpu_cap=86400,phase3_gpu_cap=612000,phase3_previous_item_gpu_seconds=0,train_gpu_cap=79200,postfit_gpu_reserve=7200,postfit_cpu_cap=3600,coordinator_cpus=[12,13],code_sha256=codes,source_sha256=src,comparison_contract=str(R/'comparison-contract.json'),comparison_contract_sha256=sha(R/'comparison-contract.json'),no_retry=True,stop_after='TRAIN_COMPLETE_POSTFIT_PENDING',test_prediction_or_scoring_in_this_entry=False)
|
||||
save(R/'contract.json',c);save(R/'prelaunch-projection.json',dict(cells=projections,training_gpu_seconds=sum(x['expected_new_gpu_seconds'] for x in projections),postfit_gpu_reserve=7200,total_gpu_seconds=sum(x['expected_new_gpu_seconds'] for x in projections)+7200,item_cap=86400,source_max_train_epoch_seconds=maxt,source_max_validation_seconds=maxv,not_actual_execution=True))
|
||||
for i in [1,2]:shutil.copyfile('/tmp/phase3-data-sufficiency-tests'+str(i)+'.log',R/('synthetic-attempt'+str(i)+'.log'))
|
||||
assert (R/'synthetic-attempt2.log').read_text().rstrip().endswith('OK')
|
||||
save(R/'acceptance.json',dict(status='PASS',tests=13,first_failure='Test incorrectly assumed end-of-epoch LR differs; schedule equals old at32000 but differs within epoch; corrected assertion to31999. No real workloads.',targets_read=False,GPU_workload=False))
|
||||
save(R/'preparation-audit.json',dict(status='PREPARED_NOT_STARTED',pools={p:dict(parts=len(f['learning']),components=f['learning_components'],nodes=f['learning_nodes'],edges=f['learning_edges']) for p,f in pools.items()},S1_reuse_identity_verified=True,metadata_cpu_seconds=time.process_time()-start,no_target_arrays_read=True))
|
||||
freeze(R,'implementation',[R/'contract.json',R/'comparison-contract.json',R/'acceptance.json',R/'prelaunch-projection.json',R/'preparation-audit.json',R/'synthetic-attempt1.log',R/'synthetic-attempt2.log',*[Path(p) for p in codes]])
|
||||
binding=dict(reviewed_commit=verify(R,'implementation')['commit'],contract_sha256=sha(R/'contract.json'),implementation_proof_sha256=sha(R/'implementation-git-freeze.json'),comparison_contract_sha256=c['comparison_contract_sha256'],code_sha256=codes);save(R/'expected-review-binding.json',binding);freeze(R,'review-binding',[R/'contract.json',R/'comparison-contract.json',R/'expected-review-binding.json',R/'implementation-git-freeze.json']);config(R)
|
||||
print(json.dumps(dict(root=str(R),implementation=binding['reviewed_commit'],contract_sha256=binding['contract_sha256'],binding_sha256=sha(R/'expected-review-binding.json'),pools=read(R/'preparation-audit.json')['pools'],projected_gpu_seconds=read(R/'prelaunch-projection.json')['total_gpu_seconds'],started=False)))
|
||||
if __name__=='__main__':main()
|
||||
@@ -0,0 +1,37 @@
|
||||
import unittest,math,tempfile,json
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
from phase3_data_sufficiency_common import lr_step,project,first_epoch_release,execution_command
|
||||
from phase2_h2_model import lr_epoch,weighted_loss
|
||||
import torch
|
||||
class Item1Tests(unittest.TestCase):
|
||||
def test_lr_endpoints(self):
|
||||
self.assertAlmostEqual(lr_step(1),1e-4);self.assertAlmostEqual(lr_step(3200),1e-3);self.assertAlmostEqual(lr_step(64000),1e-5)
|
||||
def test_midpoint_not_decayed_endpoint(self):self.assertGreater(lr_step(32000),1e-5)
|
||||
def test_lr_domain(self):
|
||||
for k in [0,64001]:
|
||||
with self.assertRaises(ValueError):lr_step(k)
|
||||
def test_continuous_vs_old_schedule(self):self.assertNotEqual(lr_step(31999),lr_epoch(100))
|
||||
def test_partial_epoch_total(self):
|
||||
self.assertEqual(divmod(64000,190),(336,160));self.assertEqual(200*111,22200);self.assertEqual(200*190,38000)
|
||||
def test_pool_node_weight(self):
|
||||
loss=weighted_loss(torch.ones(3),torch.zeros(3),2,3,10);self.assertAlmostEqual(float(loss),.6,places=6)
|
||||
def config(self):return dict(jobs=[dict(id=i,pool=50,mode='step',target_steps=64000,learning_parts=190,validation_seconds_bound=10,gpu_seconds=24000) for i in range(4)],postfit_gpu_reserve=14400,item_gpu_cap=86400,phase3_gpu_cap=612000)
|
||||
def obs(self):return {i:dict(steps=190,max_epoch_seconds=40,max_validation_seconds=0,charged=100) for i in range(4)}
|
||||
def test_projection_pass(self):self.assertEqual(project(self.config(),self.obs())['status'],'PASS')
|
||||
def test_projection_waits_all(self):
|
||||
with self.assertRaises(ValueError):project(self.config(),{0:self.obs()[0]})
|
||||
def test_projection_cap(self):
|
||||
o=self.obs();o[0]['max_epoch_seconds']=200;self.assertEqual(project(self.config(),o)['status'],'STOP_BUDGET_PROJECTION')
|
||||
def test_projection_nonfinite(self):
|
||||
o=self.obs();o[0]['max_epoch_seconds']=float('nan')
|
||||
with self.assertRaises(ValueError):project(self.config(),o)
|
||||
def test_gate_no_release_without_receipt(self):
|
||||
with tempfile.TemporaryDirectory() as p:self.assertFalse(first_epoch_release(Path(p)))
|
||||
def test_global_stop_precedes_gate(self):
|
||||
with tempfile.TemporaryDirectory() as p:
|
||||
r=Path(p);(r/'global-stop.json').write_text('{}')
|
||||
with self.assertRaises(RuntimeError):first_epoch_release(r)
|
||||
def test_execution_detection(self):
|
||||
self.assertTrue(execution_command(['python','tools/phase3_data_sufficiency_worker.py']));self.assertFalse(execution_command(['python','tools/test_phase3_data_sufficiency.py']))
|
||||
if __name__=='__main__':unittest.main()
|
||||
Reference in new issue
Block a user