Archive 4 checkpoints (1-4)
Browse files- paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/README.md +191 -0
- paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/queues/loco_liu_sat_20261003.txt +45 -0
- paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/queues/loco_liu_sat_rerun_full_20261003.txt +5 -0
- paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/tools/wait_new_scores.sh +12 -0
paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/README.md
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Cross-cohort fine-tuning benchmark (leave-one-cohort-out), 2026-10-02
|
| 2 |
+
|
| 3 |
+
**Question.** Can the final model (f01 6k · 1× · E16), fine-tuned on paired bulk–sc data of *other* cohorts, generate
|
| 4 |
+
cells from the real bulk of a cohort it has never seen, with no pair from that cohort? Requested by the user on
|
| 5 |
+
2026-10-02; fine-tuning modes LoRA r16, LoRA r64 and full; recipe size K = 1000 and 2000. The metrics are the
|
| 6 |
+
within-cohort benchmark's (`plans/paired_finetune_intradataset_20260927`).
|
| 7 |
+
|
| 8 |
+
## Design
|
| 9 |
+
|
| 10 |
+
**Cohorts** (the within-cohort benchmark's five; same QC, identity checks, usable rows and cells):
|
| 11 |
+
|
| 12 |
+
| cohort | bulk | usable pairs | donors | role |
|
| 13 |
+
|---|---|---:|---:|---|
|
| 14 |
+
| ImMicro | PBMC | 107 | 107 | train and test |
|
| 15 |
+
| Ye 2026 sepsis | PBMC | 82 | 82 | train and test |
|
| 16 |
+
| Imperial ESKD COVID | PBMC | 157 | 57 | train and test |
|
| 17 |
+
| Giroux 2022 | PBMC | 24 | 9 | train and test |
|
| 18 |
+
| Ji 2025 ChILI | whole blood | 33 | 20 | test only |
|
| 19 |
+
|
| 20 |
+
**Splits.** Each split trains one model:
|
| 21 |
+
- **`ho_<X>`, X a PBMC cohort:** the model trains on every usable pair of the other three PBMC cohorts. It is tested on every usable pair of X.
|
| 22 |
+
- **`ho_ji2025_chili`:** the model trains on all four PBMC cohorts. This is also the candidate "pan-cohort" model to release.
|
| 23 |
+
|
| 24 |
+
Ji is not used for training. Its bulk is whole blood while its single cells are PBMC, so its pairs teach a different mapping than every other cohort's.
|
| 25 |
+
|
| 26 |
+
**Leakage.** No sample, cell, condition or calibration value of the held-out cohort is read when a split's training inputs are built. Both `prepare_loco.py` and the trainer assert this.
|
| 27 |
+
|
| 28 |
+
**Training** (`tools/ft_sdd_multi.py`). The loss, optimiser and EMA are the same as `ft_sdd.py`.
|
| 29 |
+
- **Learning rate:** LoRA 5e-4 (r16 with α 16, r64 with α 64); full fine-tune 5e-5.
|
| 30 |
+
- **Steps and early stopping:** evaluation every 250 steps, patience 8, cap 20,000 steps.
|
| 31 |
+
- **Batches are cohort-balanced.** Each cell picks a training cohort uniformly, then a pair, then a cell. Otherwise Imperial (146 training pairs) would dominate and Giroux (24) would barely count.
|
| 32 |
+
- **Inner validation:** 10 % of each training cohort's donors per group, always the same donors (ImMicro 12, sepsis 9, Imperial 5 donors / 11 rows, Giroux 0). The early-stopping loss is the mean over cohorts, so it is cohort-balanced too.
|
| 33 |
+
|
| 34 |
+
**Conditions.**
|
| 35 |
+
- **Fixed-depth real bulk at recipe size K.** Counts = CPM / 1e6 × K × 3,869.6, and `recipe_k` = K.
|
| 36 |
+
- **Same K for training and testing.** K = 1000 is the protocol so far; its arrays equal the within-cohort benchmark's byte for byte.
|
| 37 |
+
- **K = 2000 tests a different input depth.** It changes the gene features log1p(raw · K / total); the depth-per-cell scalar is unchanged.
|
| 38 |
+
|
| 39 |
+
**Arms scored per held-out cohort.** All arms score the cohort's usable samples against the same frozen reference.
|
| 40 |
+
|
| 41 |
+
| arm | target pairs used | what it is |
|
| 42 |
+
|---|---|---|
|
| 43 |
+
| `zs_K1000`, `zs_K2000` | 0 | zero-shot, real bulk |
|
| 44 |
+
| `xcal_K1000`, `xcal_K2000` | 0 | zero-shot + **cross-cohort** gene-wise calibration (α from the training cohorts' pairs, cohort-balanced). This is the control for "LOCO only learns a per-gene correction" |
|
| 45 |
+
| `loco_{lora16,lora64,full}_K{1000,2000}` | 0 | fine-tuned on the other cohorts |
|
| 46 |
+
| within-cohort `zs__cal`, `real_lora__raw`, `real_full__raw` | all (5-fold) | reference ceilings from the within-cohort benchmark (read, not rerun) |
|
| 47 |
+
|
| 48 |
+
**Metrics** (`score_ft.py`, one call per arm):
|
| 49 |
+
- composition L1 (scANVI, frozen f01common);
|
| 50 |
+
- precision / coverage (and depth-matched);
|
| 51 |
+
- pseudobulk r;
|
| 52 |
+
- disease logFC r with the bulk-broadcast baseline and partial r;
|
| 53 |
+
- top-50 DEG overlap.
|
| 54 |
+
|
| 55 |
+
Giroux's disease metrics exclude the 196 sex-linked genes, as in the deck. Composition gets a paired Wilcoxon over samples against `zs_K1000` and against the within-cohort LoRA.
|
| 56 |
+
|
| 57 |
+
## Running (both servers)
|
| 58 |
+
|
| 59 |
+
- `queues/loco_20261002.txt` has 45 units in priority order:
|
| 60 |
+
1. K = 1000 LoRA r16 for all 5 splits;
|
| 61 |
+
2. its cross-cohort calibration control;
|
| 62 |
+
3. LoRA r64 and full at K = 1000;
|
| 63 |
+
4. K = 2000 zero-shot, calibration and the three modes.
|
| 64 |
+
- **`tools/run_loco_queue.sh`** runs the same queue on both hosts. A host claims a unit (atomic `mkdir` in `claims/` on server_1) only after its GPU gate passes, so no unit runs twice.
|
| 65 |
+
- server_1 walks the queue forward and server_2 backward.
|
| 66 |
+
- server_2 copies finished runs and outputs back to the same absolute paths on server_1.
|
| 67 |
+
- A failed unit is marked FAILED and not retried; two failures in a row stop the queue.
|
| 68 |
+
- Every GPU step goes through `ml-run`. On server_1 it alternates on the shared lock with the scSemiProfiler CV queue.
|
| 69 |
+
- **`tools/score_pending.sh`** (`loco-score-s1`, server_1, CPU) scores each arm as soon as it exists. A failed call leaves `<out>.FAILED` and is not retried.
|
| 70 |
+
- **`tools/aggregate_loco.py`** writes `scores/AGGREGATE.md` and `scores/aggregate.csv`.
|
| 71 |
+
|
| 72 |
+
Units: `loco-queue-s1` and `loco-score-s1` on server_1, `loco-queue-s2` on server_2. Started 2026-10-02 20:35 KST. server_2 waits at its gate while another user's vLLM occupies its GPU (96 %, 91 GB).
|
| 73 |
+
|
| 74 |
+
**GPU time (estimate):**
|
| 75 |
+
- A training run takes ~16 min at the 20k cap (LoRA, ~21 steps/s) and somewhat more for full fine-tuning.
|
| 76 |
+
- Sampling one split's test set takes 2–11 min.
|
| 77 |
+
- Total ≈ 12 GPU h: 30 fine-tunes ≈ 8 h, 45 sampling sets ≈ 4 h.
|
| 78 |
+
- On server_1 alone, sharing the lock with the scSemiProfiler CV queue, expect about 1–1.5 days.
|
| 79 |
+
|
| 80 |
+
## Update 2026-10-02 21:45: Liu 2021 is in every training pool (user decision)
|
| 81 |
+
|
| 82 |
+
**What changed.** The user asked to add Liu 2021 (GSE161918) as a training-only cohort, to stop all training, and to make Liu the default. The first queue (`queues/loco_20261002.txt`, splits `ho_*`) was stopped at 21:30. Its 3 finished units (K = 1000, LoRA r16, held out Giroux / Ji / sepsis) are kept as a no-Liu reference. The ImMicro unit had trained for a few seconds; it is marked `STOPPED` and has no checkpoint.
|
| 83 |
+
|
| 84 |
+
**Liu 2021.**
|
| 85 |
+
- Built by `processing/liu2021_v1_20261002/` → `plans/paired_finetune_intradataset_20260927/data/liu2021/`, using the same QC bundle, gene axis and identity checks as the other cohorts. See its `QC_REPORT.md`.
|
| 86 |
+
- **Bulk is PBMC:** unsorted PBMC, TruSeq, htseq.
|
| 87 |
+
- **Single cells:** unsorted fraction only; hashtag and demuxlet singlets.
|
| 88 |
+
- **Size:** 65 pairs, 44 subjects; 58 usable rows from 41 subjects.
|
| 89 |
+
- Never a test cohort: its single cells are in the pretraining corpus.
|
| 90 |
+
|
| 91 |
+
**Training exclusion** (`tools/prepare_loco_extra.py`, `EXCLUDE`, read from the processing run's `hto_negative_sensitivity.csv`).
|
| 92 |
+
- Rule: 14 rows lost > 30 % of their unsorted cells to hashtag-negative calls (weak pools B2 HTO3 and B3 HTO5); they are not trained on.
|
| 93 |
+
- Why: negatives carry about 20 points fewer classical monocytes, so these rows' retained cells over-represent monocytes against the all-cell bulk.
|
| 94 |
+
- Liu's pool is 44 rows from 37 donors: 40 training rows plus 4 inner-validation donors.
|
| 95 |
+
|
| 96 |
+
**Splits `hoL_<X>`.** Each is `ho_<X>`'s pool plus Liu. Test samples and test files are unchanged. The cross-cohort calibration is refitted on the enlarged pool.
|
| 97 |
+
|
| 98 |
+
| split | training rows | inner-val rows | test |
|
| 99 |
+
|---|---:|---:|---:|
|
| 100 |
+
| hoL_immicro | 283 | 24 | 107 |
|
| 101 |
+
| hoL_ye2026_sepsis | 305 | 27 | 82 |
|
| 102 |
+
| hoL_imperial_eskd | 232 | 25 | 157 |
|
| 103 |
+
| hoL_giroux2022 | 354 | 36 | 24 |
|
| 104 |
+
| hoL_ji2025_chili | 378 | 36 | 33 |
|
| 105 |
+
|
| 106 |
+
**Queue.** `queues/loco_liu_20261002.txt` has 45 units in the same order as before. It was launched at 21:45 on server_1 (forward) and server_2 (backward, waiting at its gate). Arms are scored as `locoL_<tag>_K<K>` and `xcalL_K<K>`.
|
| 107 |
+
|
| 108 |
+
**No-Liu reference so far** (K = 1000, LoRA r16; `scores/AGGREGATE.md`):
|
| 109 |
+
|
| 110 |
+
| held out | coverage, zs → LOCO (within-cohort LoRA) | comp. L1, zs → LOCO (within) | logFC r, zs → LOCO (within) |
|
| 111 |
+
|---|---|---|---|
|
| 112 |
+
| Giroux | 0.29 → 0.81 (0.93) | 0.337 → 0.347, p 0.83 (0.258) | 0.34 → 0.30 (0.46) |
|
| 113 |
+
| Sepsis | 0.07 → 0.29 (0.83) | 0.509 → 0.538, p 0.18 (0.362) | −0.02 → 0.09 (0.53) |
|
| 114 |
+
| Ji | 0.06 → 0.31 (0.86) | 0.725 → 0.494, p 6e-4 (0.504) | 0.07 → 0.09 (0.48) |
|
| 115 |
+
|
| 116 |
+
Pairs from other cohorts recover part of the cell realism. In Ji they also fix composition, as much as Ji's own pairs. They barely move the disease signal, which so far needs the cohort's own pairs.
|
| 117 |
+
|
| 118 |
+
## Update 2026-10-03 02:00: step-saturation protocol (user decision)
|
| 119 |
+
|
| 120 |
+
**Why.** Every 20k-capped run had stopped at the cap while its inner-validation loss was still falling. The user asked to keep training until it saturates: run to 40k, then 60k if it still improves, and so on. LoRA r16 and r64 come first, to check saturation before full fine-tuning.
|
| 121 |
+
|
| 122 |
+
**Protocol** (`ft_sdd_multi.py --block 20000 --max-steps 200000 --saturation-frac 0.01`).
|
| 123 |
+
- Training runs in 20k-step blocks.
|
| 124 |
+
- At every block end, the best-so-far EMA state is saved as `checkpoint_ft_s<step>.pt` (LoRA merged).
|
| 125 |
+
- The run stops when a block lowers the best inner-validation loss by less than 1 % of the total improvement over the pretrained model. Patience early stopping still applies inside a block.
|
| 126 |
+
- **Each milestone is sampled and scored** as `locoL_<tag>_s<step>_K<K>`, so test metrics are shown as a function of training length.
|
| 127 |
+
- **The stopping decision uses only inner-validation loss** (training cohorts), never test scores.
|
| 128 |
+
- Tags are `lora16sat`, `lora64sat` and `fullsat`. The milestone checkpoint equals the final state (checked; CPU smokes for LoRA r64 and full).
|
| 129 |
+
|
| 130 |
+
**Queue.** `queues/loco_liu_sat_20261003.txt` has 40 units.
|
| 131 |
+
- Order: K = 1000 r16, then r64, then full; then K = 2000 (zero-shot, calibration, r16, r64, full).
|
| 132 |
+
- Both hosts walk it forward.
|
| 133 |
+
- Launched 02:01. `loco_liu_20261002.txt` was stopped at 01:56. Its finished 20k-cap units are kept: r16 for all five splits, r64 for Giroux and Ji, and the K = 1000 calibration arms. The sepsis r64 run was interrupted at step 15,750 and is marked `STOPPED`.
|
| 134 |
+
|
| 135 |
+
**scSemiProfiler.** The CV / budget queue stays paused (`loco-pause-scsemi`) until both LOCO queues finish.
|
| 136 |
+
|
| 137 |
+
## Step saturation, LoRA r16 and r64 at K = 1000 (finished 2026-10-03 10:13)
|
| 138 |
+
|
| 139 |
+
| held out | r16 stop (best step) | r64 stop (best step) | L1 r16 / r64 / xcal | coverage r16 / r64 / xcal | logFC r r16 / r64 / xcal |
|
| 140 |
+
|---|---|---|---|---|---|
|
| 141 |
+
| ImMicro | 28,500 (26,500) | 39,000 (37,000) | 0.175 / 0.199 / 0.172 | 0.45 / 0.38 / 0.57 | – |
|
| 142 |
+
| Sepsis | 26,750 (24,750) | 59,000 (57,000) | 0.491 / 0.570 / 0.444 | 0.34 / 0.29 / 0.46 | 0.10 / 0.23 / 0.10 |
|
| 143 |
+
| Imperial | 40,000 (39,750) | 69,250 (67,250) | 0.635 / 0.594 / 0.651 | 0.68 / 0.72 / 0.64 | 0.49 / 0.58 / 0.69 |
|
| 144 |
+
| Giroux | 35,750 (33,750) | 69,250 (67,250) | 0.431 / 0.410 / 0.202 | 0.82 / 0.81 / 0.89 | 0.30 / 0.28 / 0.24 |
|
| 145 |
+
| Ji | 40,000 (38,250) | 51,750 (49,750) | 0.740 / 0.620 / 0.565 | 0.34 / 0.40 / 0.07 | 0.05 / 0.16 / 0.13 |
|
| 146 |
+
|
| 147 |
+
**Saturation.**
|
| 148 |
+
- Every r16 run stopped by 40k: after 20k, the best inner-validation loss improved by less than 1 % of the total.
|
| 149 |
+
- r64 kept improving 2-3 % per block up to 40-60k and stopped at 39-69k.
|
| 150 |
+
|
| 151 |
+
**Test metrics vs training length.**
|
| 152 |
+
- **r16:** within ±0.02 of its 20k value.
|
| 153 |
+
- **r64:** improved with training in Giroux composition (0.49 → 0.41) and in Imperial on every metric. Coverage fell in ImMicro.
|
| 154 |
+
- **Disease signal:** in r16 it tends to fall with training (Ji 0.14 → 0.05).
|
| 155 |
+
|
| 156 |
+
**r64 vs r16.**
|
| 157 |
+
- Better in Imperial and Ji.
|
| 158 |
+
- Worse in ImMicro, and in sepsis composition and coverage, although sepsis disease signal is higher.
|
| 159 |
+
- Similar in Giroux.
|
| 160 |
+
|
| 161 |
+
**Against the zero-pair calibration control and the cohort's own pairs.**
|
| 162 |
+
- Neither rank beats the calibration on composition, except Imperial r64.
|
| 163 |
+
- None comes near the cohort's own-pair LoRA.
|
| 164 |
+
|
| 165 |
+
Full fine-tuning (same protocol) started at 10:13.
|
| 166 |
+
|
| 167 |
+
## K = 1000 complete (2026-10-03 19:28): all three modes at step saturation
|
| 168 |
+
|
| 169 |
+
Source: `scores/k1000_saturated_summary.csv`; each model's last milestone. Steps: LoRA r16 26-40k, r64 39-69k, full 65-120k.
|
| 170 |
+
|
| 171 |
+
| held out | best on composition (L1) | best on coverage | best on disease logFC r |
|
| 172 |
+
|---|---|---|---|
|
| 173 |
+
| ImMicro | calibration 0.172 (r16 0.175, r64 0.199, full 0.213) | calibration 0.57 (r16 0.45) | – |
|
| 174 |
+
| Sepsis | calibration 0.444 (r16 0.491, r64 0.570, full 0.585) | calibration 0.46 (r16/full 0.34) | r64 0.23 (others 0.07-0.10) |
|
| 175 |
+
| Imperial | full 0.580 / r64 0.594 (calibration 0.651) | r64 0.72 (calibration 0.64, full 0.61) | calibration 0.69 (r64 0.58, full 0.46) |
|
| 176 |
+
| Giroux | calibration 0.202 (r64 0.410, full 0.465) | calibration 0.89 (r16 0.82) | r16 0.30 (calibration 0.24, full 0.20) |
|
| 177 |
+
| Ji (whole blood) | calibration 0.565 (r64 0.620, full 1.030) | r64 0.40 (calibration 0.07, full 0.08) | r64 0.16 (calibration 0.13) |
|
| 178 |
+
|
| 179 |
+
**Findings.**
|
| 180 |
+
- **Full fine-tuning never wins.** Its test metrics fall as training continues, even though the training cohorts' inner-validation loss keeps falling. Examples: Ji L1 0.84 → 1.03, ImMicro coverage 0.39 → 0.35, sepsis partial r 0.05 → 0.00. Full fine-tuning on the cohort's own pairs is among the best arms (ImMicro L1 0.157, sepsis logFC r 0.53), so its extra capacity helps only when it trains on the target cohort.
|
| 181 |
+
- **LoRA rank.** r64 beats r16 in Imperial and Ji, ties in Giroux, and loses in ImMicro and on sepsis composition.
|
| 182 |
+
- **Calibration control.** The zero-pair cross-cohort calibration is best or tied on composition in 4/5 cohorts and on coverage in 3/5.
|
| 183 |
+
- **Own pairs.** Nothing that uses zero target pairs comes near the cohort's own-pair LoRA on any metric (L1 0.16-0.50, coverage 0.78-0.86, logFC r 0.46-0.82).
|
| 184 |
+
|
| 185 |
+
## Files
|
| 186 |
+
|
| 187 |
+
- `tools/prepare_loco.py` → `data/<cohort>/`, `splits/`, `PREPARE.json` (CPU; run 2026-10-02 20:31, all checks true)
|
| 188 |
+
- `tools/ft_sdd_multi.py`: trainer (CPU smoke and 20-step GPU smoke passed)
|
| 189 |
+
- `runs/<split>/K<K>/<tag>/` (RUN.json, history.json with per-cohort inner-val loss, checkpoint)
|
| 190 |
+
- `generated/<cohort>/{zs_K2000.npz, <split>/xcal_K<K>.npz, <split>/K<K>_<tag>.npz}` + receipts
|
| 191 |
+
- `scores/<cohort>/<arm>/`, `scores_nosex/giroux2022/<arm>/`
|
paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/queues/loco_liu_sat_20261003.txt
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Cross-cohort LOCO with Liu (splits hoL_*), step-saturation protocol (user decision 2026-10-03 01:55): every
|
| 2 |
+
# fine-tune runs in 20k-step blocks and continues while a block lowers the best inner-val loss by >= 1 % of the total
|
| 3 |
+
# improvement (cap 200k); every block-end checkpoint is sampled and scored. Order: LoRA r16 and r64 at K = 1000 first
|
| 4 |
+
# (check saturation), then full fine-tuning; then K = 2000 (zero-shot, calibration, three modes).
|
| 5 |
+
# Replaces queues/loco_liu_20261002.txt (20k cap; its finished units stay as the 20k-cap results).
|
| 6 |
+
loco|hoL_giroux2022|1000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 7 |
+
loco|hoL_ji2025_chili|1000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 8 |
+
loco|hoL_ye2026_sepsis|1000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 9 |
+
loco|hoL_immicro|1000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 10 |
+
loco|hoL_imperial_eskd|1000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 11 |
+
loco|hoL_giroux2022|1000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 12 |
+
loco|hoL_ji2025_chili|1000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 13 |
+
loco|hoL_ye2026_sepsis|1000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 14 |
+
loco|hoL_immicro|1000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 15 |
+
loco|hoL_imperial_eskd|1000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 16 |
+
loco|hoL_giroux2022|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 17 |
+
loco|hoL_ji2025_chili|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 18 |
+
loco|hoL_ye2026_sepsis|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 19 |
+
loco|hoL_immicro|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 20 |
+
loco|hoL_imperial_eskd|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 21 |
+
zs|giroux2022|2000
|
| 22 |
+
zs|ji2025_chili|2000
|
| 23 |
+
zs|ye2026_sepsis|2000
|
| 24 |
+
zs|immicro|2000
|
| 25 |
+
zs|imperial_eskd|2000
|
| 26 |
+
xcal|hoL_giroux2022|2000
|
| 27 |
+
xcal|hoL_ji2025_chili|2000
|
| 28 |
+
xcal|hoL_ye2026_sepsis|2000
|
| 29 |
+
xcal|hoL_immicro|2000
|
| 30 |
+
xcal|hoL_imperial_eskd|2000
|
| 31 |
+
loco|hoL_giroux2022|2000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 32 |
+
loco|hoL_ji2025_chili|2000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 33 |
+
loco|hoL_ye2026_sepsis|2000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 34 |
+
loco|hoL_immicro|2000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 35 |
+
loco|hoL_imperial_eskd|2000|lora16sat|lora|5e-4|--lora-rank|16|--lora-alpha|16|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 36 |
+
loco|hoL_giroux2022|2000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 37 |
+
loco|hoL_ji2025_chili|2000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 38 |
+
loco|hoL_ye2026_sepsis|2000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 39 |
+
loco|hoL_immicro|2000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 40 |
+
loco|hoL_imperial_eskd|2000|lora64sat|lora|5e-4|--lora-rank|64|--lora-alpha|64|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 41 |
+
loco|hoL_giroux2022|2000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 42 |
+
loco|hoL_ji2025_chili|2000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 43 |
+
loco|hoL_ye2026_sepsis|2000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 44 |
+
loco|hoL_immicro|2000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 45 |
+
loco|hoL_imperial_eskd|2000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/queues/loco_liu_sat_rerun_full_20261003.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rerun on server_1 of two K = 1000 full fine-tunes started on server_2 (2026-10-03 11:10-12:18): ji was stopped by the
|
| 2 |
+
# server_2 memory guard at 11:16 (another user's vLLM grew); sepsis was stopped by the coordinator at 12:18 for the same risk.
|
| 3 |
+
# Their partial logs are in runs/<split>/K1000/fullsat_server2_attempt_20261003/.
|
| 4 |
+
loco|hoL_ji2025_chili|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
| 5 |
+
loco|hoL_ye2026_sepsis|1000|fullsat|full|5e-5|--block|20000|--max-steps|200000|--saturation-frac|0.01
|
paper-releases/pbisc-diffusion/updates/20261003T103040Z-crosscohort-k1000-saturation/diffusion/dataset/server_1/model8/plans/paired_crosscohort_20261002/tools/wait_new_scores.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Exit (printing them) as soon as at least one arm gets a summary.json that was not there at start; also exit when
|
| 3 |
+
# both LOCO queues and the scorer are inactive. Used to report each new score to the user right away.
|
| 4 |
+
P=/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_crosscohort_20261002
|
| 5 |
+
snap() { ls -d "$P"/scores/*/*/summary.json "$P"/scores_nosex/*/*/summary.json 2>/dev/null | sort; }
|
| 6 |
+
before=$(snap)
|
| 7 |
+
while true; do
|
| 8 |
+
sleep 20
|
| 9 |
+
new=$(comm -13 <(echo "$before") <(snap))
|
| 10 |
+
if [[ -n $new ]]; then sleep 90; comm -13 <(echo "$before") <(snap) | sed "s|$P/||"; exit 0; fi
|
| 11 |
+
systemctl --user is-active --quiet loco-queue-s1 || systemctl --user is-active --quiet loco-score-s1 || { echo "queues and scorer inactive"; exit 0; }
|
| 12 |
+
done
|