Reddy-BIIE-ETHZ commited on
Commit
ab599c3
·
verified ·
1 Parent(s): a60fdd1

Add model card

Browse files
Files changed (1) hide show
  1. README.md +100 -0
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: pending-eth-biie
4
+ license_link: LICENSE
5
+ tags:
6
+ - biology
7
+ - bioinformatics
8
+ - immunology
9
+ - mhc
10
+ - peptide
11
+ - antigen-presentation
12
+ - vc-sfm
13
+ pipeline_tag: feature-extraction
14
+ ---
15
+
16
+ # mhcSFM — Peptide ↔ MHC Binding Specificity Foundation Model
17
+
18
+ **Paper:** Vibe Coding Specificity Foundation Models · doi: TBD · [bioRxiv — link added at submission]
19
+ **All VC-SFM models:** [huggingface.co/Reddy-BIIE-ETHZ](https://huggingface.co/Reddy-BIIE-ETHZ?search_models=VC-SFM)
20
+ **Code:** [github.com/Reddy-BIIE-ETHZ/CALM](https://github.com/Reddy-BIIE-ETHZ/CALM)
21
+
22
+
23
+ ---
24
+
25
+ ## What it does
26
+
27
+ mhcSFM learns a joint embedding space for **peptides** and **MHC alleles** via contrastive
28
+ learning on binding affinity data. Given a peptide, retrieve the MHC alleles most likely
29
+ to present it — enabling pan-allele binding prediction without per-allele fine-tuning.
30
+
31
+ | Component | Model |
32
+ |-----------|-------|
33
+ | Peptide encoder | ESM-2 |
34
+ | MHC encoder | ESM-2 (34-aa pseudo-sequence) |
35
+ | Training data | IEDB binding affinity (BA) data |
36
+ | Split | Sequence-identity 100% holdout · fold 0 |
37
+
38
+ ---
39
+
40
+ ## Performance (test set, identity-100 split)
41
+
42
+ | Metric | Value |
43
+ |--------|-------|
44
+ | Precision @ 1 · R@1 | **0.153** |
45
+ | MRR | **0.278** |
46
+ | Pred. accuracy | 0.153 |
47
+
48
+ *Retrieval over the full MHC allele library. Random baseline ≈ 0.5%. The identity-100 split enforces strict peptide novelty, making this a hard out-of-distribution task.*
49
+
50
+ ---
51
+
52
+ ## Quick start
53
+
54
+ ```python
55
+ from huggingface_hub import hf_hub_download
56
+ import torch, torch.nn.functional as F
57
+
58
+ ckpt_path = hf_hub_download("Reddy-BIIE-ETHZ/mhcSFM_VC-SFM", "model.pth")
59
+
60
+ from calm.encoder.model import CALMEncoder
61
+ model = CALMEncoder.from_pretrained(ckpt_path)
62
+ model.eval()
63
+
64
+ peptide_emb = model.encode_query("GILGFVFTL")
65
+ # MHC pseudo-sequence (34 aa from NetMHCpan convention)
66
+ mhc_emb = model.encode_target("YFAMYQENVAQTDVDTLYIIYRDAQTFQV")
67
+
68
+ score = F.cosine_similarity(peptide_emb, mhc_emb, dim=-1)
69
+ ```
70
+
71
+ ---
72
+
73
+ ## Files in this repo
74
+
75
+ | File | Description |
76
+ |------|-------------|
77
+ | `model.pth` | Final checkpoint · fold 0 · identity-100 split · epoch 4 |
78
+ | `results_train_val_test.csv` | Full per-epoch train / val / test metrics |
79
+
80
+ ---
81
+
82
+ ## Citation
83
+
84
+ ```bibtex
85
+ @article{vcsfm2025,
86
+ title = {Vibe Coding Specificity Foundation Models},
87
+ author = {Reddy, Sai T. and colleagues},
88
+ journal = {bioRxiv},
89
+ year = {2025},
90
+ doi = {TBD},
91
+ note = {Preprint — doi and link added at submission}
92
+ }
93
+ ```
94
+
95
+
96
+ ## License
97
+
98
+ License pending finalisation with ETH Zurich / BIIE.
99
+ For enquiries contact: sai.reddy@ethz.ch
100
+
Free AI Image Generator No sign-up. Instant results. Open Now