Add ptpl-xattn-pma-p07 (PTPL-XAttn-PMA-B-p07)
Browse files
ptpl-xattn-pma-p07/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-PMA-B-p07
|
| 11 |
+
|
| 12 |
+
EMA-only inference weights for the **PTPL-XAttn-PMA-B-p07** row reported in the
|
| 13 |
+
ICML 2026 SD4H workshop submission *Transcriptomics-Conditioned Virtual Tissue
|
| 14 |
+
Synthesis via Diffusion Transformers*.
|
| 15 |
+
|
| 16 |
+
- **Source checkpoint**: `step_2617000_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-pma-p07/model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2fc60af6865b1876bde573547ef94499a67108b5d90653d943206fab98557f2
|
| 3 |
+
size 630725612
|
ptpl-xattn-pma-p07/training_config.yaml
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training Configuration - PTPL-XAttn-PMA-B p=0.7
|
| 2 |
+
# =================================================
|
| 3 |
+
# Pooling by Multihead Attention: 32 learned seeds attend over CF tokens.
|
| 4 |
+
# Dropout p=0.7 (weights 9/21/21/49).
|
| 5 |
+
# Trained on PTPL features (corrected normalization).
|
| 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-pma-B-p07"
|
| 11 |
+
device: "cuda"
|
| 12 |
+
|
| 13 |
+
model:
|
| 14 |
+
type: "pixart_ge_xattn"
|
| 15 |
+
variant: "B"
|
| 16 |
+
ge_encoder_type: "cancerfoundation"
|
| 17 |
+
ge_hidden_dim: 512
|
| 18 |
+
cf_model_dir: "/cluster/home/pvlachas/leomed-home/pretrained_model_weights/cancer-foundation"
|
| 19 |
+
cf_freeze_backbone: true
|
| 20 |
+
ge_token_source: "pma"
|
| 21 |
+
ge_num_tokens: 32
|
| 22 |
+
ge_xattn_fusion: "xattn_only"
|
| 23 |
+
|
| 24 |
+
data:
|
| 25 |
+
features_dir: "/cluster/work/grlab/projects/projects2025-virtual-tissue-gen/scratch/10x_TuPro-PTPL/feat-extraction/features_train"
|
| 26 |
+
load_gene_expression: true
|
| 27 |
+
load_gene_expression_binned: true
|
| 28 |
+
num_workers: 8
|
| 29 |
+
pin_memory: true
|
| 30 |
+
val_split: 0.1
|
| 31 |
+
|
| 32 |
+
diffusion:
|
| 33 |
+
timesteps: 1000
|
| 34 |
+
beta_schedule: "linear"
|
| 35 |
+
image_size: 256
|
| 36 |
+
latent_size: 32
|
| 37 |
+
|
| 38 |
+
training:
|
| 39 |
+
batch_size: 32
|
| 40 |
+
batch_size_val: 32
|
| 41 |
+
gradient_accumulation_steps: 4
|
| 42 |
+
num_epochs: 1000
|
| 43 |
+
seed: 42
|
| 44 |
+
gradient_clip: 0.01
|
| 45 |
+
ema_rate: 0.9999
|
| 46 |
+
|
| 47 |
+
optimizer:
|
| 48 |
+
lr: 2e-5
|
| 49 |
+
weight_decay: 0.01
|
| 50 |
+
betas: [0.9, 0.999]
|
| 51 |
+
|
| 52 |
+
scheduler:
|
| 53 |
+
warmup_steps: 1000
|
| 54 |
+
min_lr_ratio: 0.1
|
| 55 |
+
|
| 56 |
+
classifier_free_guidance:
|
| 57 |
+
conditioning_schedule:
|
| 58 |
+
- mask: [uni, ge]
|
| 59 |
+
weight: 9
|
| 60 |
+
- mask: [ge]
|
| 61 |
+
weight: 21
|
| 62 |
+
- mask: [uni]
|
| 63 |
+
weight: 21
|
| 64 |
+
- mask: []
|
| 65 |
+
weight: 49
|
| 66 |
+
|
| 67 |
+
convergence:
|
| 68 |
+
monitor_timestep_range: [900, 1000]
|
| 69 |
+
patience: 10
|
| 70 |
+
min_epochs: 50
|
| 71 |
+
|
| 72 |
+
distributed:
|
| 73 |
+
precision: "bf16-mixed"
|
| 74 |
+
compile_model: true
|
| 75 |
+
|
| 76 |
+
checkpoint:
|
| 77 |
+
save_every: 1000
|
| 78 |
+
resume: null
|
| 79 |
+
|
| 80 |
+
logging:
|
| 81 |
+
log_every: 100
|
| 82 |
+
validate_every: 0
|
| 83 |
+
gpu_monitor: true
|
| 84 |
+
gpu_monitor_interval: 60.0
|
| 85 |
+
sample_every_epochs: 10
|
| 86 |
+
sample_every_steps: 0
|
| 87 |
+
num_samples: 16
|
| 88 |
+
sample_guidance_scale: 3.0
|
| 89 |
+
sample_num_steps: 20
|
| 90 |
+
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"
|