clane9 commited on
Commit
42fc4b5
·
verified ·
1 Parent(s): f7f16bc

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -138,3 +138,4 @@ finetune/fomo_tune_baseline/output/task5/task5.sif filter=lfs diff=lfs merge=lfs
138
  finetune/fomo_tune_baseline/output/task3/task3.sif filter=lfs diff=lfs merge=lfs -text
139
  finetune/fomo_tune_baseline/output/task6_and_7/task6_and_7.sif filter=lfs diff=lfs merge=lfs -text
140
  finetune/fomo_tune_baseline/output/task2/task2.sif filter=lfs diff=lfs merge=lfs -text
 
 
138
  finetune/fomo_tune_baseline/output/task3/task3.sif filter=lfs diff=lfs merge=lfs -text
139
  finetune/fomo_tune_baseline/output/task6_and_7/task6_and_7.sif filter=lfs diff=lfs merge=lfs -text
140
  finetune/fomo_tune_baseline/output/task2/task2.sif filter=lfs diff=lfs merge=lfs -text
141
+ finetune/fomo_tune_v2/output/task1/task1.sif filter=lfs diff=lfs merge=lfs -text
finetune/fomo_tune_v2/build.sh ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Package each trained run into its challenge .sif. Run on the login node, after launch.sh:
3
+ # apptainer lives there and on a couple of compute nodes only, and a build needs no GPU driver.
4
+ #
5
+ # Slow. Apptainer always re-runs %post, so each run re-downloads ~3G of wheels.
6
+
7
+ set -euo pipefail
8
+
9
+ ROOT="$(git rev-parse --show-toplevel)"
10
+ cd $ROOT
11
+
12
+ set -a
13
+ source .env
14
+ set +a
15
+
16
+ EXP_DIR="experiments/fomo_tune_v2"
17
+ OUT_DIR="${EXP_DIR}/output"
18
+
19
+ runs=(task1)
20
+
21
+ for name in "${runs[@]}"; do
22
+ # build.py names the sif after `task` in the run's saved config, which is the run name here
23
+ sif="${OUT_DIR}/${name}/${name}.sif"
24
+
25
+ if [[ -f "${sif}" ]]; then
26
+ echo "sif ${sif} exists; skipping"
27
+ continue
28
+ fi
29
+
30
+ echo "=== ${name} ==="
31
+ uv run --no-sync python -m fomo_tune.build "${OUT_DIR}/${name}"
32
+ done
33
+
34
+ echo "=== sifs ==="
35
+ ls -lh "${OUT_DIR}"/*/*.sif
finetune/fomo_tune_v2/launch.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #SBATCH --job-name=fomo_tune_v2
3
+ #SBATCH --nodes=1
4
+ #SBATCH --ntasks-per-node=1
5
+ #SBATCH --cpus-per-task=16
6
+ #SBATCH --gpus-per-task=1
7
+ #SBATCH --time=2:00:00
8
+ #SBATCH --partition=main
9
+ #SBATCH --output=slurms/slurm-%j.out
10
+ #SBATCH --account=sophont
11
+ #SBATCH --qos=high
12
+
13
+ set -euo pipefail
14
+
15
+ ROOT="$(git rev-parse --show-toplevel)"
16
+ cd $ROOT
17
+
18
+ set -a
19
+ source .env
20
+ set +a
21
+
22
+ EXP_DIR="experiments/fomo_tune_v2"
23
+ OUT_DIR="${EXP_DIR}/output"
24
+
25
+ runs=(
26
+ "task1 main_task1"
27
+ )
28
+
29
+ for run in "${runs[@]}"; do
30
+ read -r name module <<<"${run}"
31
+
32
+ if [[ -f "${OUT_DIR}/${name}/metrics.json" ]]; then
33
+ echo "result ${name} exists; skipping"
34
+ continue
35
+ fi
36
+
37
+ echo "=== ${name} ==="
38
+ uv run --no-sync python -m "fomo_tune.${module}" train \
39
+ output_root="${OUT_DIR}" \
40
+ name="${name}"
41
+ done
42
+
43
+ echo "=== results ==="
44
+ cat "${OUT_DIR}"/*/metrics.json
finetune/fomo_tune_v2/output/task1/config.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: task1
2
+ ckpt_path: hf://medarc/walnut/checkpoints/walnut-v0-1/vitl/sub-52k/checkpoint-last.pth
3
+ modalities:
4
+ - dwi_b1000
5
+ output_root: experiments/fomo_tune_v2/output
6
+ name: task1
7
+ device: cuda
8
+ seed: 4466
9
+ pooling: ensemble
10
+ sweet_k: 8
11
+ top_k: 32
12
+ masking: zero
13
+ normalize_volume: true
14
+ normalize_test_volume: true
finetune/fomo_tune_v2/output/task1/log.txt ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 20:23:13 run task1 (git 5e078be)
2
+ 20:23:13 config:
3
+ task: task1
4
+ ckpt_path: hf://medarc/walnut/checkpoints/walnut-v0-1/vitl/sub-52k/checkpoint-last.pth
5
+ modalities:
6
+ - dwi_b1000
7
+ output_root: experiments/fomo_tune_v2/output
8
+ name: task1
9
+ device: cuda
10
+ seed: 4466
11
+ pooling: ensemble
12
+ sweet_k: 8
13
+ top_k: 32
14
+ masking: zero
15
+ normalize_volume: true
16
+ normalize_test_volume: true
17
+ 20:23:16 dataset: 21 subjects, 13 positive
18
+ 20:23:27 fold 1/21 sub-01 y=1 p=0.491 (6s)
19
+ 20:23:28 fold 2/21 sub-02 y=1 p=0.609 (8s)
20
+ 20:23:30 fold 3/21 sub-03 y=0 p=0.291 (9s)
21
+ 20:23:31 fold 4/21 sub-04 y=1 p=0.556 (11s)
22
+ 20:23:33 fold 5/21 sub-05 y=1 p=0.690 (12s)
23
+ 20:23:35 fold 6/21 sub-06 y=1 p=0.570 (14s)
24
+ 20:23:36 fold 7/21 sub-07 y=0 p=0.375 (16s)
25
+ 20:23:38 fold 8/21 sub-08 y=0 p=0.171 (17s)
26
+ 20:23:40 fold 9/21 sub-09 y=1 p=0.598 (19s)
27
+ 20:23:41 fold 10/21 sub-10 y=1 p=0.439 (21s)
28
+ 20:23:43 fold 11/21 sub-11 y=0 p=0.218 (22s)
29
+ 20:23:45 fold 12/21 sub-12 y=0 p=0.163 (24s)
30
+ 20:23:46 fold 13/21 sub-13 y=1 p=0.683 (25s)
31
+ 20:23:48 fold 14/21 sub-14 y=1 p=0.735 (27s)
32
+ 20:23:49 fold 15/21 sub-15 y=0 p=0.376 (29s)
33
+ 20:23:51 fold 16/21 sub-16 y=0 p=0.356 (30s)
34
+ 20:23:53 fold 17/21 sub-17 y=1 p=0.820 (32s)
35
+ 20:23:54 fold 18/21 sub-18 y=1 p=0.613 (33s)
36
+ 20:23:56 fold 19/21 sub-19 y=1 p=0.548 (35s)
37
+ 20:23:57 fold 20/21 sub-20 y=1 p=0.697 (37s)
38
+ 20:23:59 fold 21/21 sub-21 y=0 p=0.442 (38s)
39
+ 20:24:03 result: auroc=0.9904 auroc_ci_low=0.9423 auroc_ci_high=1.0000 (38s)
finetune/fomo_tune_v2/output/task1/metrics.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"name": "task1", "auroc": 0.9903846153846154, "auroc_ci_low": 0.9423076923076923, "auroc_ci_high": 1.0, "run_time": 38.3}
finetune/fomo_tune_v2/output/task1/model/config.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ task: task1
2
+ ckpt_path: hf://medarc/walnut/checkpoints/walnut-v0-1/vitl/sub-52k/checkpoint-last.pth
3
+ modalities:
4
+ - dwi_b1000
5
+ output_root: experiments/fomo_tune_v2/output
6
+ name: task1
7
+ device: cuda
8
+ seed: 4466
9
+ pooling: ensemble
10
+ sweet_k: 8
11
+ top_k: 32
12
+ masking: zero
13
+ normalize_volume: true
14
+ normalize_test_volume: true
finetune/fomo_tune_v2/output/task1/model/head.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9fd56b28f2a61e495313bfd26299a0586591803829cde6423f0204854f9c8ce
3
+ size 451042
finetune/fomo_tune_v2/output/task1/preds.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"subject": "sub-01", "label": 1, "pred": 0.491472136704304}
2
+ {"subject": "sub-02", "label": 1, "pred": 0.6093199237426591}
3
+ {"subject": "sub-03", "label": 0, "pred": 0.2909684699367543}
4
+ {"subject": "sub-04", "label": 1, "pred": 0.5558893095188939}
5
+ {"subject": "sub-05", "label": 1, "pred": 0.690261512795603}
6
+ {"subject": "sub-06", "label": 1, "pred": 0.570306563352876}
7
+ {"subject": "sub-07", "label": 0, "pred": 0.3748935751485348}
8
+ {"subject": "sub-08", "label": 0, "pred": 0.1709205118398878}
9
+ {"subject": "sub-09", "label": 1, "pred": 0.598045599963261}
10
+ {"subject": "sub-10", "label": 1, "pred": 0.43883673681300184}
11
+ {"subject": "sub-11", "label": 0, "pred": 0.2175847096462739}
12
+ {"subject": "sub-12", "label": 0, "pred": 0.16316933421097388}
13
+ {"subject": "sub-13", "label": 1, "pred": 0.6829394784044932}
14
+ {"subject": "sub-14", "label": 1, "pred": 0.7350728259020902}
15
+ {"subject": "sub-15", "label": 0, "pred": 0.37598677859422797}
16
+ {"subject": "sub-16", "label": 0, "pred": 0.3555539841165052}
17
+ {"subject": "sub-17", "label": 1, "pred": 0.8199131412961741}
18
+ {"subject": "sub-18", "label": 1, "pred": 0.613348945548139}
19
+ {"subject": "sub-19", "label": 1, "pred": 0.5479371701641191}
20
+ {"subject": "sub-20", "label": 1, "pred": 0.6966580161087733}
21
+ {"subject": "sub-21", "label": 0, "pred": 0.4418168239812025}
finetune/fomo_tune_v2/output/task1/task1.sif ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f41f2beaf9a6995502dd5f263f74a5e99c50f0aa9a5659c6e8126326ed57c693
3
+ size 5327015936
finetune/fomo_tune_v2/slurms/slurm-389736.out ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === task1 ===
2
+ 20:23:13 run task1 (git 5e078be)
3
+ 20:23:13 config:
4
+ task: task1
5
+ ckpt_path: hf://medarc/walnut/checkpoints/walnut-v0-1/vitl/sub-52k/checkpoint-last.pth
6
+ modalities:
7
+ - dwi_b1000
8
+ output_root: experiments/fomo_tune_v2/output
9
+ name: task1
10
+ device: cuda
11
+ seed: 4466
12
+ pooling: ensemble
13
+ sweet_k: 8
14
+ top_k: 32
15
+ masking: zero
16
+ normalize_volume: true
17
+ normalize_test_volume: true
18
+ 20:23:16 dataset: 21 subjects, 13 positive
19
+ 20:23:27 fold 1/21 sub-01 y=1 p=0.491 (6s)
20
+ 20:23:28 fold 2/21 sub-02 y=1 p=0.609 (8s)
21
+ 20:23:30 fold 3/21 sub-03 y=0 p=0.291 (9s)
22
+ 20:23:31 fold 4/21 sub-04 y=1 p=0.556 (11s)
23
+ 20:23:33 fold 5/21 sub-05 y=1 p=0.690 (12s)
24
+ 20:23:35 fold 6/21 sub-06 y=1 p=0.570 (14s)
25
+ 20:23:36 fold 7/21 sub-07 y=0 p=0.375 (16s)
26
+ 20:23:38 fold 8/21 sub-08 y=0 p=0.171 (17s)
27
+ 20:23:40 fold 9/21 sub-09 y=1 p=0.598 (19s)
28
+ 20:23:41 fold 10/21 sub-10 y=1 p=0.439 (21s)
29
+ 20:23:43 fold 11/21 sub-11 y=0 p=0.218 (22s)
30
+ 20:23:45 fold 12/21 sub-12 y=0 p=0.163 (24s)
31
+ 20:23:46 fold 13/21 sub-13 y=1 p=0.683 (25s)
32
+ 20:23:48 fold 14/21 sub-14 y=1 p=0.735 (27s)
33
+ 20:23:49 fold 15/21 sub-15 y=0 p=0.376 (29s)
34
+ 20:23:51 fold 16/21 sub-16 y=0 p=0.356 (30s)
35
+ 20:23:53 fold 17/21 sub-17 y=1 p=0.820 (32s)
36
+ 20:23:54 fold 18/21 sub-18 y=1 p=0.613 (33s)
37
+ 20:23:56 fold 19/21 sub-19 y=1 p=0.548 (35s)
38
+ 20:23:57 fold 20/21 sub-20 y=1 p=0.697 (37s)
39
+ 20:23:59 fold 21/21 sub-21 y=0 p=0.442 (38s)
40
+ 20:24:03 result: auroc=0.9904 auroc_ci_low=0.9423 auroc_ci_high=1.0000 (38s)
41
+ === results ===
42
+ {"name": "task1", "auroc": 0.9903846153846154, "auroc_ci_low": 0.9423076923076923, "auroc_ci_high": 1.0, "run_time": 38.3}