junidude14 commited on
Commit
df7d28e
·
verified ·
1 Parent(s): 83dfab0

Archive 4 checkpoints (1-4)

Browse files
paper-releases/pbisc-diffusion/updates/20261015T072909Z-disease-width-readiness/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/disease_width_comparison_20261015/READINESS_SNAPSHOT.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "state": "waiting_results",
3
+ "matched_draws": 0,
4
+ "total_draws": 15,
5
+ "units": [
6
+ {
7
+ "cohort": "ye2026_sepsis",
8
+ "draw": 0,
9
+ "state": "x1_ready_waiting_x4_core_score"
10
+ },
11
+ {
12
+ "cohort": "ye2026_sepsis",
13
+ "draw": 1,
14
+ "state": "x1_ready_waiting_x4_core_score"
15
+ },
16
+ {
17
+ "cohort": "ye2026_sepsis",
18
+ "draw": 2,
19
+ "state": "x1_ready_waiting_x4_core_score"
20
+ },
21
+ {
22
+ "cohort": "ye2026_sepsis",
23
+ "draw": 3,
24
+ "state": "x1_ready_waiting_x4_core_score"
25
+ },
26
+ {
27
+ "cohort": "ye2026_sepsis",
28
+ "draw": 4,
29
+ "state": "x1_ready_waiting_x4_core_score"
30
+ },
31
+ {
32
+ "cohort": "imperial_eskd",
33
+ "draw": 0,
34
+ "state": "x1_ready_waiting_x4_core_score"
35
+ },
36
+ {
37
+ "cohort": "imperial_eskd",
38
+ "draw": 1,
39
+ "state": "x1_ready_waiting_x4_core_score"
40
+ },
41
+ {
42
+ "cohort": "imperial_eskd",
43
+ "draw": 2,
44
+ "state": "x1_ready_waiting_x4_core_score"
45
+ },
46
+ {
47
+ "cohort": "imperial_eskd",
48
+ "draw": 3,
49
+ "state": "x1_ready_waiting_x4_core_score"
50
+ },
51
+ {
52
+ "cohort": "imperial_eskd",
53
+ "draw": 4,
54
+ "state": "x1_ready_waiting_x4_core_score"
55
+ },
56
+ {
57
+ "cohort": "ji2025_chili",
58
+ "draw": 0,
59
+ "state": "x1_ready_waiting_x4_core_score"
60
+ },
61
+ {
62
+ "cohort": "ji2025_chili",
63
+ "draw": 1,
64
+ "state": "x1_ready_waiting_x4_core_score"
65
+ },
66
+ {
67
+ "cohort": "ji2025_chili",
68
+ "draw": 2,
69
+ "state": "waiting_x1_output_import"
70
+ },
71
+ {
72
+ "cohort": "ji2025_chili",
73
+ "draw": 3,
74
+ "state": "waiting_x1_output_import"
75
+ },
76
+ {
77
+ "cohort": "ji2025_chili",
78
+ "draw": 4,
79
+ "state": "waiting_x1_output_import"
80
+ }
81
+ ],
82
+ "gpu_operations": 0,
83
+ "observed_at": "2026-10-15T16:28:28.195228+09:00",
84
+ "x4_queue": {
85
+ "DOWNSTREAM_server_1.json": {
86
+ "phase": "paired",
87
+ "host": "server_1",
88
+ "at": "2026-10-15T07:12:17.816675+00:00",
89
+ "job": "strict/immicro/healthy/fold1/n5",
90
+ "index": 12,
91
+ "total": 105
92
+ },
93
+ "DOWNSTREAM_server_2.json": {
94
+ "phase": "paired",
95
+ "host": "server_2",
96
+ "at": "2026-10-15T06:51:49.148189+00:00",
97
+ "job": "strict/immicro/healthy/fold2/n10",
98
+ "index": 13,
99
+ "total": 105
100
+ }
101
+ },
102
+ "baseline_counts": {
103
+ "reused_summaries": 9,
104
+ "new_cpu_only_summaries": 3,
105
+ "prepared_x1_draws": 12,
106
+ "pending_x1_draws": 3
107
+ }
108
+ }
paper-releases/pbisc-diffusion/updates/20261015T072909Z-disease-width-readiness/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/disease_width_comparison_20261015/TESTS.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "same_contract_pass": true,
3
+ "reference_mismatch_rejected": true,
4
+ "gpu_operations": 0
5
+ }
paper-releases/pbisc-diffusion/updates/20261015T072909Z-disease-width-readiness/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/disease_width_comparison_20261015/archive_when_complete.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ import json,time,subprocess,datetime,csv,statistics,hashlib
3
+ R=Path(__file__).resolve().parent;S=R.parents[1];M=S.parents[1];release=M.parents[1]/'paper-release-20260928'
4
+ while True:
5
+ if (R/'ERROR.json').exists():raise SystemExit('Comparison stopped; preserve error and inspect')
6
+ f=R/'STATUS.json'
7
+ if f.exists() and json.loads(f.read_text())['state']=='complete':break
8
+ time.sleep(120)
9
+ rows=list(csv.DictReader((R/'COMPARISON.csv').open()));means={}
10
+ for c in sorted({r['cohort'] for r in rows}):
11
+ means[c]={}
12
+ for method in ['x1_LoRA','x4_LoRA']:
13
+ q=[r for r in rows if r['cohort']==c and r['method']==method];assert len(q)==5
14
+ means[c][method]={k:statistics.mean(float(r[k]) for r in q) for k in ['composition_l1','coverage','expression_r','logfc_r','partial_r','deg_overlap']}
15
+ (R/'RESULT.json').write_text(json.dumps({'means':means,'draws_per_cohort':5,'gpu_operations':0,'inference':'Descriptive means of overlapping support draws, no independent-replicate significance claim.'},indent=2)+'\n')
16
+ assets=[{'host':'server_1','source':str(p),'kind':'code' if p.suffix=='.py' else 'table' if p.suffix=='.csv' else 'report','state':'completed'} for p in R.rglob('*') if p.is_file() and p.suffix in ['.json','.csv','.md','.py'] and '__pycache__' not in str(p) and 'ARCHIVE_REQUEST' not in p.name]
17
+ request={'project_id':'pbisc-diffusion','summary':'CPU-only exact-support comparison of x1 and x4 LoRA for Sepsis, Imperial and CHILI,5 draws each. Existing generations reused.','assets':assets,'inference_locations':[]}
18
+ p=R/'FINAL_ARCHIVE_REQUEST.json';p.write_text(json.dumps(request,indent=2)+'\n');ident=datetime.datetime.now(datetime.timezone.utc).strftime('%Y%m%dT%H%M%SZ')+'-disease-width-results'
19
+ with (R/'final_archive.log').open('x') as log:
20
+ for args in [['prepare','--request',str(p),'--id',ident],['publish',ident,'--execute']]:subprocess.run(['/home/sj_server_1/miniforge3/bin/python',str(release/'maintenance/update.py'),*args],stdout=log,stderr=subprocess.STDOUT,check=True)
21
+ f=release/'maintenance/updates'/ident/'UPDATE_VERIFIED.json';assert json.loads(f.read_text())['status']=='PASS'
22
+ (R/'ARCHIVE_VERIFIED.json').write_text(json.dumps({'id':ident,'receipt':str(f),'sha256':hashlib.sha256(f.read_bytes()).hexdigest()},indent=2)+'\n')
paper-releases/pbisc-diffusion/updates/20261015T072909Z-disease-width-readiness/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/disease_width_comparison_20261015/test_comparison.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ import tempfile,json
3
+ import compare_ready as C
4
+ base=C.S/'recoveries/giroux_width_comparison_20261015/draw0/score/summary.json';bound={'summary':str(base),'summary_sha256':C.sha256(base)};original=C.R
5
+ with tempfile.TemporaryDirectory() as d:
6
+ C.R=Path(d)
7
+ C.compare('giroux2022',0,bound)
8
+ assert json.loads((C.R/'giroux2022/draw0/MATCHED.json').read_text())['same_contract']
9
+ bad=json.loads(base.read_text());bad['reference']['reference_sha256']='0'*64;f=C.R/'bad.json';f.write_text(json.dumps(bad))
10
+ try:C.compare('giroux2022',0,{'summary':str(f),'summary_sha256':C.sha256(f)})
11
+ except AssertionError:pass
12
+ else:raise AssertionError('Mismatched reference accepted')
13
+ (original/'TESTS.json').write_text(json.dumps({'same_contract_pass':True,'reference_mismatch_rejected':True,'gpu_operations':0},indent=2)+'\n')
14
+ print('Positive matched-contract and negative reference-mismatch checks PASS')