Archive 4 checkpoints (1-4)
Browse files- paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/PLAN.md +32 -0
- paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/evaluation/aggregate.py +75 -0
- paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/reuse/REUSE_AUDIT.json +0 -0
- paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/reuse/REUSE_AUDIT.md +27 -0
paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/PLAN.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ×1 잔여 실험 우선 완료 및 전체 덱 갱신
|
| 2 |
+
|
| 3 |
+
2026-10-15 사용자 지시: CHILI 3개와 건강인 6개를 ×4 전체 완료보다 먼저 끝내고, 기존 생성 결과의 추가 지표·통계를 평가해 전체 PPTX/PDF를 갱신한다.
|
| 4 |
+
|
| 5 |
+
## 완료한 작업
|
| 6 |
+
|
| 7 |
+
- 정확히 같은 기존 실험이 있는지 168개 로컬·14개 원격 RUN 기록과 재사용 registry를 대조했다. 이번 9개와 일치하는 완료 실험은 없었다. 과거 CHILI는 7/8/9 pairs, 과거 건강인은 다른 학습 ID와 추가 validation 7개를 사용했다.
|
| 8 |
+
- ×1 LoRA 학습 9회, LoRA 생성 9회, paired calibration 생성 9회를 완료했다. 기존 논문 ×1 parent, 6,000개 gene 순서, rank 16, fixed 3,000 steps를 유지했다.
|
| 9 |
+
- ×4의 다음 작업을 배정하는 coordinator만 20:29:38–20:57:58 KST 동안 일시 정지했다. 진행 중이던 GPU/CPU 자식 작업은 정상 종료까지 보존했고, 동일 ×4 프로세스를 재개했다. 이 구간을 포함한 wrapper wall time을 GPU 계산 시간으로 해석하지 않는다.
|
| 10 |
+
- 완료된 27개 연산과 54개 출력 파일을 server_2에도 해시 검증하여 반영했다. 원래 실행 함수가 27개 모두를 재사용으로 건너뛰는 것을 확인했다.
|
| 11 |
+
- 이미 추론이 끝난 CHILI draw 1 scSemiProfiler는 CPU export와 검증만 마쳤다. Giroux·CHILI의 완료된 생성 출력과 필요한 metadata만 가져왔다.
|
| 12 |
+
- ×1 핵심 평가는 40/40개가 준비됐다: 건강인 20개, 질환 20개. 기존 전체 CPU 평가 11개는 그대로 재사용했다.
|
| 13 |
+
- 167장 덱에 40개 핵심 결과와 현재 완료된 전체 통계를 반영했다. 기존 156장, 원본 76개 ID, Figure 1과 승인 palette를 유지했다. 원래 156장 파일은 presentation/data/x1_priority_20261015/base/에 보존했다.
|
| 14 |
+
|
| 15 |
+
## 계속 실행 중인 작업
|
| 16 |
+
|
| 17 |
+
- CPU worker 0·1이 서로 다른 20개 단위를 맡는다. 모든 ×1 LoRA의 전체 평가를 먼저 완료한 뒤 기존 comparator 출력을 평가한다. 완료된 core/annotation/full metric은 재사용한다.
|
| 18 |
+
- 각 전체 평가의 메모리 상한은 16 GiB, thread는 2개다. 두 번째 worker는 16 GiB 핵심 평가 worker가 종료된 뒤 시작했다. ×4 CPU scorer의 32 GiB 상한과 합쳐 과학 계산 CPU 작업 상한은 64 GiB다. 실패 시 자동 증설이나 계산 재시작은 하지 않는다.
|
| 19 |
+
- 새 생성 파일을 저장 도중 읽었던 경쟁 조건은 생성 완료 receipt 확인으로 수정했다. 오류 원본은 evaluation/revisions/에 보존했으며 GPU 재실행은 없었다.
|
| 20 |
+
- 기존 scSemiProfiler 큐는 새 ×1 diffusion 결과를 재사용하도록 복구했다. 남은 scSemiProfiler 학습은 이전 계획대로 ×4 핵심 계산·HF 백업 완료 후 진행한다.
|
| 21 |
+
- 덱 갱신 서비스는 검증된 core와 전체 통계를 구분해 반영한다. 완료 증거가 늘어나면 새 버전을 만들고, 사용자가 지정한 PPTX/PDF 경로를 원자적으로 갱신한다. 두 CPU worker가 현재 준비된 arm을 모두 끝내면 donor 통합 집계와 최종 덱·HF 아카이브를 생성한다.
|
| 22 |
+
|
| 23 |
+
## 확인 위치
|
| 24 |
+
|
| 25 |
+
- GPU_STATUS.json, X4_PAUSE.json, X4_RESUMED.json, MIRROR_VERIFIED.json
|
| 26 |
+
- evaluation/STATUS.json, CORE_STATUS.json, WORKER_0.json, WORKER_1.json
|
| 27 |
+
- FOLLOWUP_STATUS.json, DECK_STATUS.json, DECK_CURRENT.json
|
| 28 |
+
- presentation/CURRENT_MASTER.json 및 data/x1_priority_20261015/VERIFIED.json
|
| 29 |
+
|
| 30 |
+
## 완료로 표시하지 않은 것
|
| 31 |
+
|
| 32 |
+
추가 CPU 통계는 아직 모두 끝나지 않았다. 새로 학습한 9개 support의 scSemiProfiler 출력은 아직 없으므로 다른 조건의 값을 대신 넣지 않는다. Figure 5의 원 논문 fine-cluster identity와 Figure 6의 임상 결과 재현은 별도 연구 검증이 필요하다. Manuscript·Overleaf는 변경하지 않았다.
|
paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/evaluation/aggregate.py
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Donor-clustered cross-arm contrasts from completed unit metrics, no cell inference."""
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import sys
|
| 4 |
+
import hashlib
|
| 5 |
+
import json
|
| 6 |
+
from common import ROOT, S, atomic, bind, read, verify_receipt
|
| 7 |
+
sys.path.insert(0, str(S / "tools"))
|
| 8 |
+
import pandas as pd
|
| 9 |
+
import donor_statistics as DS
|
| 10 |
+
import numpy as np
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def matched_draw_metadata(table: pd.DataFrame, arm: str, metric: str, baseline: str = "lora") -> dict:
|
| 14 |
+
"""Count only draws with a finite matched sample pair for this arm/metric."""
|
| 15 |
+
relevant = table[(table.metric == metric) & table.arm.isin([arm, baseline])].copy()
|
| 16 |
+
arm_draws = sorted(relevant.loc[relevant.arm == arm, "draw"].astype(str).unique().tolist())
|
| 17 |
+
baseline_draws = sorted(relevant.loc[relevant.arm == baseline, "draw"].astype(str).unique().tolist())
|
| 18 |
+
relevant["value"] = pd.to_numeric(relevant.value, errors="coerce")
|
| 19 |
+
wide = relevant.pivot(index=["draw", "donor_id", "sample_id"], columns="arm", values="value")
|
| 20 |
+
matched = []
|
| 21 |
+
if arm in wide and baseline in wide:
|
| 22 |
+
paired = wide[[arm, baseline]].replace([np.inf, -np.inf], np.nan).dropna()
|
| 23 |
+
matched = sorted(paired.index.get_level_values("draw").astype(str).unique().tolist())
|
| 24 |
+
return {"n_draws_matched": len(matched), "matched_draw_ids": json.dumps(matched),
|
| 25 |
+
"n_draws_arm_available": len(arm_draws), "n_draws_baseline_available": len(baseline_draws),
|
| 26 |
+
"n_draws_union_available": len(set(arm_draws) | set(baseline_draws))}
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def main() -> None:
|
| 30 |
+
status = read(ROOT / "STATUS.json")
|
| 31 |
+
rows = []
|
| 32 |
+
bindings = []
|
| 33 |
+
for unit in status["units"]:
|
| 34 |
+
for arm, item in unit["arms"].items():
|
| 35 |
+
if item["state"] not in ("canonical_full_reused", "full_completed"):
|
| 36 |
+
continue
|
| 37 |
+
receipt = Path(item["receipt"])
|
| 38 |
+
verify_receipt(receipt)
|
| 39 |
+
path = Path(item["statistics_status"]).parent / "per_donor_long.csv"
|
| 40 |
+
table = pd.read_csv(path)
|
| 41 |
+
table = table[table.arm == arm].copy()
|
| 42 |
+
table["cohort"] = unit["cohort"]
|
| 43 |
+
table["n_pairs"] = unit["n_pairs"]
|
| 44 |
+
rows.append(table)
|
| 45 |
+
bindings.append(bind(path))
|
| 46 |
+
if not rows:
|
| 47 |
+
return
|
| 48 |
+
digest = hashlib.sha256(json.dumps(bindings, sort_keys=True).encode()).hexdigest()
|
| 49 |
+
out = ROOT / "aggregates" / digest[:16]
|
| 50 |
+
if (out / "RECEIPT.json").exists():
|
| 51 |
+
verify_receipt(out / "RECEIPT.json")
|
| 52 |
+
return
|
| 53 |
+
out.mkdir(parents=True, exist_ok=True)
|
| 54 |
+
merged = pd.concat(rows, ignore_index=True)
|
| 55 |
+
merged.to_csv(out / "per_donor_long.csv", index=False)
|
| 56 |
+
comparisons = []
|
| 57 |
+
for (cohort, n_pairs), table in merged.groupby(["cohort", "n_pairs"], sort=True):
|
| 58 |
+
summary = DS.summarize_metrics(table, baseline="lora")
|
| 59 |
+
if len(summary):
|
| 60 |
+
summary["cohort"] = cohort
|
| 61 |
+
summary["n_pairs"] = n_pairs
|
| 62 |
+
metadata = pd.DataFrame([matched_draw_metadata(table, row.arm, row.metric) for row in summary.itertuples()])
|
| 63 |
+
summary = pd.concat([summary.reset_index(drop=True), metadata], axis=1)
|
| 64 |
+
comparisons.append(summary)
|
| 65 |
+
if comparisons:
|
| 66 |
+
pd.concat(comparisons, ignore_index=True).to_csv(out / "paired_donor_bootstrap_2000.csv", index=False)
|
| 67 |
+
files = sorted(out.glob("*.csv"))
|
| 68 |
+
atomic(out / "RECEIPT.json", {"state": "completed", "inputs": bindings, "outputs": [bind(p) for p in files],
|
| 69 |
+
"bootstrap_unit": "unique_donor_all_draws_and_visits", "baseline": "lora"})
|
| 70 |
+
atomic(ROOT / "AGGREGATES.json", {"path": str(out), "receipt": str(out / "RECEIPT.json"),
|
| 71 |
+
"partial": status["phase"] != "completed", "source_status": bind(ROOT / "STATUS.json")})
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
if __name__ == "__main__":
|
| 75 |
+
main()
|
paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/reuse/REUSE_AUDIT.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
paper-releases/pbisc-diffusion/updates/20261015T121654Z-x1-nine-core40-deck/diffusion/dataset/server_1/model8/plans/paper_figures_strictpairs_20261012/recoveries/x1_priority_completion_20261015/reuse/REUSE_AUDIT.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# x1 strict-nine reuse audit
|
| 2 |
+
|
| 3 |
+
Observed: 2026-10-15T11:28:17.535874+00:00
|
| 4 |
+
|
| 5 |
+
Decision: **pass_no_exact_reuse_found**.
|
| 6 |
+
|
| 7 |
+
Both current hosts and the Model 8 registry/catalogs were inspected. No GPU or array-generation operation was launched.
|
| 8 |
+
|
| 9 |
+
| Target | Historical training pairs | Historical validation pairs | Selected step | Why not reusable |
|
| 10 |
+
|---|---:|---:|---:|---|
|
| 11 |
+
| ji2025_chili-disease-draw2 | 7 | 0 | 3000 | Five donors contributed additional visits; strict support retains exactly five pairs. |
|
| 12 |
+
| ji2025_chili-disease-draw3 | 8 | 0 | 3000 | Five donors contributed additional visits; strict support retains exactly five pairs. |
|
| 13 |
+
| ji2025_chili-disease-draw4 | 9 | 0 | 3000 | Five donors contributed additional visits; strict support retains exactly five pairs. |
|
| 14 |
+
| immicro-healthy-fold0-n10 | 10 | 7 | 5750 | Different train IDs; seven extra validation pairs and early-stopped checkpoint selection versus strict fixed3000/no validation. |
|
| 15 |
+
| immicro-healthy-fold0-n20 | 20 | 7 | 19750 | Different train IDs; seven extra validation pairs and early-stopped checkpoint selection versus strict fixed3000/no validation. |
|
| 16 |
+
| immicro-healthy-fold0-n40 | 40 | 7 | 20000 | Different train IDs; seven extra validation pairs and early-stopped checkpoint selection versus strict fixed3000/no validation. |
|
| 17 |
+
| immicro-healthy-fold1-n10 | 10 | 7 | 3250 | Different train IDs; seven extra validation pairs and early-stopped checkpoint selection versus strict fixed3000/no validation. |
|
| 18 |
+
| immicro-healthy-fold1-n20 | 20 | 7 | 19500 | Different train IDs; seven extra validation pairs and early-stopped checkpoint selection versus strict fixed3000/no validation. |
|
| 19 |
+
| immicro-healthy-fold1-n40 | 40 | 7 | 19500 | Different train IDs; seven extra validation pairs and early-stopped checkpoint selection versus strict fixed3000/no validation. |
|
| 20 |
+
|
| 21 |
+
The historical parent checkpoint and training seed agree, but that is insufficient when exposed samples or checkpoint selection differ. CHILI historical draws2/3/4 use7/8/9 pairs, respectively.
|
| 22 |
+
|
| 23 |
+
Live RUN records inspected: server_1=168, server_2=14. Per-candidate mismatches and exact support IDs are in REUSE_AUDIT.json; live receipt snapshots are in LIVE_TARGET_RECEIPTS.json.
|
| 24 |
+
|
| 25 |
+
The parent uses the paper6k gene panel and original x1 trunk. Its immutable parent SHA and verified gene-position hash bind the intended panel. Incompatible candidates were rejected before any assumption of gene/mask equivalence. No unknown field was treated as an exact match.
|
| 26 |
+
|
| 27 |
+
This audit covers the discovered local/remote working trees and current archive catalogs; it cannot prove absence of an unregistered experiment on an unknown external host.
|