Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ISM
|
2 |
+
|
3 |
+
By [Jeffrey Ouyang-Zhang](https://jozhang97.github.io/), [Chengyue Gong](https://sites.google.com/view/chengyue-gong), [Yue Zhao](https://zhaoyue-zephyrus.github.io), [Philipp Krähenbühl](http://www.philkr.net/), [Adam Klivans](https://www.cs.utexas.edu/users/klivans/), [Daniel J. Diaz](http://danny305.github.io)
|
4 |
+
|
5 |
+
This repository contains the model presented in the paper [Distilling Structural Representations into Protein Sequence Models](https://www.biorxiv.org/content/10.1101/2024.11.08.622579v1).
|
6 |
+
The official github can be found at https://github.com/jozhang97/ism.
|
7 |
+
|
8 |
+
**TL; DR.** ESM2 with enriched structural representations
|
9 |
+
|
10 |
+
## Quickstart
|
11 |
+
|
12 |
+
This quickstart assumes that the user is already working with ESM-C and is interested in replacing ESM-C with ISM-C. First, download ISM-C.
|
13 |
+
```bash
|
14 |
+
# recommended
|
15 |
+
huggingface-cli download jozhang97/ismc-600m-2024-12 --local-dir /path/to/save/ismc
|
16 |
+
|
17 |
+
# alternative
|
18 |
+
git clone https://huggingface.co/jozhang97/ismc-600m-2024-12
|
19 |
+
```
|
20 |
+
|
21 |
+
Add the following lines of code.
|
22 |
+
```
|
23 |
+
from esm.models.esmc import ESMC
|
24 |
+
model = ESMC.from_pretrained("esmc_600m").to("cuda")
|
25 |
+
state_dict = torch.load('/path/to/ismc_600m_2024_12_v0.pth')
|
26 |
+
model.load_state_dict(state_dict)
|
27 |
+
```
|