Views
No views yet
fdc2ae0scripts/run_cellflow.pydata/norman/manifest.yamlsuppl_fig/norman/downstream_analysis/cellflow/ configs verbatim:
condition_embedding_dim=1024, hidden_dims=(4096,4096,4096), decoder_dims=(4096,4096,4096), decoder_dropout=0.2time_encoder_dims=(2048,2048,2048), time_freqs=1024, cond_output_dropout=0.9layers_before_pool.target_gene = mlp[1024,1024] dropout 0.5, layers_after_pool = mlp[1024,1024] dropout 0.2match_fn = match_linear(epsilon=0.1, scale_cost='mean', tau_a=1.0, tau_b=1.0)optimizer = optax.MultiSteps(optax.adam(5e-5), 20)probability_path = {'constant_noise': 1.0}pooling = 'attention_token'sample_rep='X_pca'), fit on the train split cells and projected onto val and test.adata.uns['esm2'] and referenced via perturbation_covariate_reps={'target_gene': 'esm2'}.| iterations | 200,000 |
| batch size | 1024 |
| valid_freq | 400,000 (larger than budget = no mid-training eval) |
| wall clock | 0.7 hours (H100 PCIe) |
| sample_rep | X_pca (50 dims) |
| esm model | esm2_t36_3B_UR50D |
| metric | mean | median | max |
|---|---|---|---|
| pearson_delta | 0.6061 | 0.7359 | 0.9654 |
| discrimination_score_l1 | 0.7609 | 0.8687 | 1.0000 |
| discrimination_score_l2 | 0.7736 | 0.8889 | 1.0000 |
| discrimination_score_cosine | 0.7484 | 0.9091 | 1.0000 |
| pearson_edistance | 0.6883 | 0.6883 | 0.6883 |
| clustering_agreement | 0.4352 | 0.4352 | 0.4352 |
| overlap_at_N | 0.0266 | 0.0245 | 0.1076 |
| precision_at_N | 0.0939 | 0.0981 | 0.2302 |
| mse | 0.0028 | 0.0018 | 0.0132 |
| mae | 0.0146 | 0.0127 | 0.0341 |
overlap_at_N, precision_at_N) are unchanged. This suggests larger protein language models help CellFlow's condition encoder learn broader cell-state structure but not specific regulatory gene identification.valid_freq > num_iterations so there is no mid-training val evaluation. Convergence was not verified via a val curve; future runs should use a smaller valid_freq to plot the learning curve.overlap_at_N, precision_at_N) did not improve from the 8M ESM variant to this 3B variant, suggesting that the DE gene bottleneck is architectural/data, not gene-embedding quality.CellFlow.pkl — Trained CellFlow model, pickled via cf.save(). Load via cellflow.model.CellFlow.load(path).training_stats.json — iterations, wall clock, wandb run URL.1from huggingface_hub import hf_hub_download
2from cellflow.model import CellFlow
3
4path = hf_hub_download(
5 repo_id="matthewshu/cellflow-norman-esm3b",
6 filename="CellFlow.pkl",
7)
8cf = CellFlow.load(path)
9# Then use sc-interp's run_cellflow.py with --esm-model esm2_t36_3B_UR50D