Archive 4 checkpoints (1-4)
Browse files- paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/FIX_VERIFIED.json +36 -0
- paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/resume_collector.py +17 -0
- paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/score_cli.py +7 -0
- paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/verify_fix.py +28 -0
paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/FIX_VERIFIED.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"original_failure_reproduced": true,
|
| 3 |
+
"all_five_imperial_arms_pass": true,
|
| 4 |
+
"wrong_hash_unknown_path_different_checkpoint_rejected": true,
|
| 5 |
+
"canonical_and_remote_checkpoint_bytes_identical": true,
|
| 6 |
+
"actual_checkpoint_model_config_x1": {
|
| 7 |
+
"n_genes": 6000,
|
| 8 |
+
"condition_dim": 18006,
|
| 9 |
+
"hidden_dims": [
|
| 10 |
+
1024,
|
| 11 |
+
1024,
|
| 12 |
+
512,
|
| 13 |
+
256
|
| 14 |
+
],
|
| 15 |
+
"time_embedding_dim": 128,
|
| 16 |
+
"context_dim": 512,
|
| 17 |
+
"dropout": 0.0,
|
| 18 |
+
"max_time_period": 10000.0
|
| 19 |
+
},
|
| 20 |
+
"actual_checkpoint_model_config_x4": {
|
| 21 |
+
"n_genes": 6000,
|
| 22 |
+
"condition_dim": 18006,
|
| 23 |
+
"hidden_dims": [
|
| 24 |
+
4096,
|
| 25 |
+
4096,
|
| 26 |
+
2048,
|
| 27 |
+
1024
|
| 28 |
+
],
|
| 29 |
+
"time_embedding_dim": 128,
|
| 30 |
+
"context_dim": 512,
|
| 31 |
+
"dropout": 0.0,
|
| 32 |
+
"max_time_period": 10000.0
|
| 33 |
+
},
|
| 34 |
+
"same_6000_gene_ids_order": true,
|
| 35 |
+
"cuda_initialized": false
|
| 36 |
+
}
|
paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/resume_collector.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Resume only CPU collection/scoring after explicit receipt-preserving repair."""
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import sys,json
|
| 4 |
+
R=Path(__file__).resolve().parent;S=R.parents[1];old=S/'recoveries/priority_server2_20261014'
|
| 5 |
+
sys.path[:0]=[str(old),str(S/'tools')]
|
| 6 |
+
import collect
|
| 7 |
+
from worker import LowPriorityRuntime
|
| 8 |
+
class FixedRuntime(LowPriorityRuntime):
|
| 9 |
+
def wrapped_command(self,name,argv,resource,memory_gib,threads):
|
| 10 |
+
command=super().wrapped_command(name,argv,resource,memory_gib,threads)
|
| 11 |
+
if resource=='cpu' and str(S/'tools/score_strict.py') in argv:
|
| 12 |
+
command=[str(R/'score_cli.py') if x==str(S/'tools/score_strict.py') else x for x in command]
|
| 13 |
+
return command
|
| 14 |
+
if __name__=='__main__':
|
| 15 |
+
collect.LowPriorityRuntime=FixedRuntime
|
| 16 |
+
try:collect.main()
|
| 17 |
+
except BaseException as e:collect.state('stopped_needs_inspection',error=str(e));raise
|
paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/score_cli.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
+
import sys
|
| 3 |
+
R=Path(__file__).resolve().parent;S=R.parents[1];sys.path.insert(0,str(S/'tools'))
|
| 4 |
+
import score_strict
|
| 5 |
+
from validator_fix import install
|
| 6 |
+
install(score_strict)
|
| 7 |
+
if __name__=='__main__':raise SystemExit(score_strict.main())
|
paper-releases/pbisc-diffusion/updates/20261015T065710Z-giroux-width-comparison/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/giroux_width_comparison_20261015/verify_fix.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
+
import sys,json,torch
|
| 3 |
+
R=Path(__file__).resolve().parent;S=R.parents[1];M=S.parents[1];sys.path.insert(0,str(S/'tools'))
|
| 4 |
+
import score_strict as ST
|
| 5 |
+
from validator_fix import matches,install
|
| 6 |
+
proof=json.loads((R/'CHECKPOINT_ALIAS_PROOF.json').read_text());sha=proof['sha256'];canonical=proof['canonical'];alias=proof['remote_resolved']
|
| 7 |
+
a={'checkpoint':alias,'checkpoint_sha256':sha}
|
| 8 |
+
assert matches(a,a,canonical,sha,proof)
|
| 9 |
+
assert not matches(a,a,canonical,'0'*64,proof)
|
| 10 |
+
assert not matches({**a,'checkpoint':'/unapproved/model.pt'},a,canonical,sha,proof)
|
| 11 |
+
assert not matches(a,{**a,'checkpoint_sha256':'0'*64},canonical,sha,proof)
|
| 12 |
+
assert not matches(a,a,'/another/canonical.pt',sha,proof)
|
| 13 |
+
support=ST.read_support(S/'protocol/splits/imperial_eskd/disease/draw4/support.json');gen=S/'generated/imperial_eskd/disease/draw4'
|
| 14 |
+
try:ST.validate_generation_arm('pairedcal',gen/'pairedcal.npz',support)
|
| 15 |
+
except ValueError as e:assert str(e)=='generation checkpoint differs from strict source'
|
| 16 |
+
else:raise AssertionError('Original failure not reproduced')
|
| 17 |
+
install(ST)
|
| 18 |
+
for arm in ['lora','pairedcal','scsemi','raw','refcal']:
|
| 19 |
+
p=gen/f'{arm}.npz' if arm not in ['raw','refcal'] else S/f'generated/global/imperial_eskd/{arm}.npz'
|
| 20 |
+
ST.validate_generation_arm(arm,p,support)
|
| 21 |
+
print('VALIDATED',arm,flush=True)
|
| 22 |
+
X=M/'plans/f01_trunk4x_complete_20261013';a=torch.load(canonical,map_location='cpu',weights_only=False,mmap=True);b=torch.load(X/'base_cache/checkpoint_epoch_016.pt',map_location='cpu',weights_only=False,mmap=True)
|
| 23 |
+
print('CONFIGS',a['model_config'],b['model_config'],flush=True)
|
| 24 |
+
assert list(b['model_config']['hidden_dims'])==[4*x for x in a['model_config']['hidden_dims']]
|
| 25 |
+
assert a['model_config']['context_dim']==b['model_config']['context_dim']==512
|
| 26 |
+
assert a['model_config']['time_embedding_dim']==b['model_config']['time_embedding_dim']==128
|
| 27 |
+
assert list(a['gene_ids'])==list(b['gene_ids']) and len(a['gene_ids'])==6000
|
| 28 |
+
(R/'FIX_VERIFIED.json').write_text(json.dumps({'original_failure_reproduced':True,'all_five_imperial_arms_pass':True,'wrong_hash_unknown_path_different_checkpoint_rejected':True,'canonical_and_remote_checkpoint_bytes_identical':True,'actual_checkpoint_model_config_x1':a['model_config'],'actual_checkpoint_model_config_x4':b['model_config'],'same_6000_gene_ids_order':True,'cuda_initialized':torch.cuda.is_initialized()},indent=2)+'\n')
|