stmdit-anon commited on
Commit
758aec5
·
verified ·
1 Parent(s): ec29403

Add ptpl-xattn-perceiver-p05 (PTPL-XAttn-Perceiver-B (p=0.5))

Browse files
ptpl-xattn-perceiver-p05/README.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - histopathology
5
+ - diffusion
6
+ - spatial-transcriptomics
7
+ - icml-2026-sd4h-workshop
8
+ ---
9
+
10
+ # PTPL-XAttn-Perceiver-B (p=0.5)
11
+
12
+ EMA-only inference weights for the **PTPL-XAttn-Perceiver-B (p=0.5)** row reported in the
13
+ ICML 2026 SD4H workshop submission *Transcriptomics-Conditioned Virtual Tissue
14
+ Synthesis via Diffusion Transformers*.
15
+
16
+ - **Source checkpoint**: `step_1289000_ema.pt`
17
+ - **Architecture**: see `training_config.yaml` in this folder.
18
+ - **License**: Apache-2.0.
19
+
20
+ See the umbrella repo README at `stmdit-anon/stmdit-checkpoints` for usage.
ptpl-xattn-perceiver-p05/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ddd87291ff44cc6571e638f3538d5169fd9d433be1934ce5ba533a32391e0dc
3
+ size 715792736
ptpl-xattn-perceiver-p05/training_config.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Training Configuration - PTPL-XAttn-Perceiver-B (Multi-Layer Perceiver Resampler)
2
+ # =================================================================================
3
+ # Multi-layer Perceiver Resampler: 32 latent tokens, depth=4.
4
+ # Trained on PTPL features (DeepSpot predicted GE, corrected normalization).
5
+ # Uses best dropout from ablation study: p=0.5 (weights 25/25/25/25).
6
+ #
7
+ # Usage:
8
+ # run-training configs/training.yaml --lightning
9
+
10
+ output_dir: "/cluster/work/grlab/projects/projects2025-virtual-tissue-gen/scratch/10x_TuPro/PixCell-PTPL-XAttn/training/ptpl-xattn-perceiver-B"
11
+ device: "cuda"
12
+
13
+ # ============================================================================
14
+ # MODEL
15
+ # ============================================================================
16
+
17
+ model:
18
+ type: "pixart_ge_xattn"
19
+ variant: "B" # 130M params: depth=12, hidden=768, heads=12
20
+ ge_encoder_type: "cancerfoundation"
21
+ ge_hidden_dim: 512
22
+ cf_model_dir: "/cluster/home/pvlachas/leomed-home/pretrained_model_weights/cancer-foundation"
23
+ cf_freeze_backbone: true
24
+ ge_token_source: "perceiver"
25
+ ge_num_tokens: 32
26
+ ge_perceiver_depth: 4
27
+ ge_xattn_fusion: "xattn_only"
28
+
29
+ # ============================================================================
30
+ # DATA — PTPL features (DeepSpot predicted GE, same VAE/UNI as Visium)
31
+ # ============================================================================
32
+
33
+ data:
34
+ features_dir: "/cluster/work/grlab/projects/projects2025-virtual-tissue-gen/scratch/10x_TuPro-PTPL/feat-extraction/features_train"
35
+ load_gene_expression: true
36
+ load_gene_expression_binned: true
37
+ num_workers: 8
38
+ pin_memory: true
39
+ val_split: 0.1
40
+
41
+ # ============================================================================
42
+ # DIFFUSION
43
+ # ============================================================================
44
+
45
+ diffusion:
46
+ timesteps: 1000
47
+ beta_schedule: "linear"
48
+ image_size: 256
49
+ latent_size: 32
50
+
51
+ # ============================================================================
52
+ # TRAINING
53
+ # ============================================================================
54
+
55
+ training:
56
+ batch_size: 32
57
+ batch_size_val: 32
58
+ gradient_accumulation_steps: 4 # effective batch = 128
59
+ num_epochs: 1000
60
+ seed: 42
61
+ gradient_clip: 0.01
62
+ ema_rate: 0.9999
63
+
64
+ optimizer:
65
+ lr: 2e-5
66
+ weight_decay: 0.01
67
+ betas: [0.9, 0.999]
68
+
69
+ scheduler:
70
+ warmup_steps: 1000
71
+ min_lr_ratio: 0.1
72
+
73
+ # Best dropout from ablation: p=0.5 (25/25/25/25)
74
+ classifier_free_guidance:
75
+ conditioning_schedule:
76
+ - mask: [uni, ge] # full conditioning (UNI + GE active)
77
+ weight: 25
78
+ - mask: [ge] # GE only (UNI dropped)
79
+ weight: 25
80
+ - mask: [uni] # UNI only (GE dropped)
81
+ weight: 25
82
+ - mask: [] # unconditional (both dropped)
83
+ weight: 25
84
+
85
+ convergence:
86
+ monitor_timestep_range: [900, 1000]
87
+ patience: 10
88
+ min_epochs: 50
89
+
90
+ # ============================================================================
91
+ # DISTRIBUTED
92
+ # ============================================================================
93
+
94
+ distributed:
95
+ precision: "bf16-mixed"
96
+ compile_model: true
97
+
98
+ # ============================================================================
99
+ # CHECKPOINT
100
+ # ============================================================================
101
+
102
+ checkpoint:
103
+ save_every: 1000
104
+ resume: null
105
+
106
+ # ============================================================================
107
+ # LOGGING
108
+ # ============================================================================
109
+
110
+ logging:
111
+ log_every: 100
112
+ validate_every: 0
113
+ gpu_monitor: true
114
+ gpu_monitor_interval: 60.0
115
+ sample_every_epochs: 10
116
+ sample_every_steps: 0
117
+ num_samples: 16
118
+ sample_guidance_scale: 3.0
119
+ sample_num_steps: 20
120
+ sample_vae_path: "/cluster/home/pvlachas/leomed-home/pretrained_model_weights/stability-ai-stable-diffusion-3-5-large/models--stabilityai--stable-diffusion-3.5-large/snapshots/ceddf0a7fdf2064ea28e2213e3b84e4afa170a0f/vae"