Downloads · 30 days
147
1% of all-time downloads
jozhang97/ism_t33_650M_uc30pdb
ism_t33_650M_uc30pdb is a machine learning model from jozhang97. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
By Jeffrey Ouyang-Zhang, Chengyue Gong, Yue Zhao, Philipp Krähenbühl, Adam Klivans, Daniel J. Diaz
Downloads · 30 days
147
1% of all-time downloads
All-time downloads
18.1K
Public
Parameters
652M
7.8 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors2.6 GB · 50%
From the Hugging Face model README
By Jeffrey Ouyang-Zhang, Chengyue Gong, Yue Zhao, Philipp Krähenbühl, Adam Klivans, Daniel J. Diaz
This repository contains the model presented in the paper Distilling Structural Representations into Protein Sequence Models. The official github can be found at https://github.com/jozhang97/ism.
TL; DR. ESM2 with enriched structural representations
This quickstart assumes that the user is already working with ESM2 and is interested in replacing ESM with ISM. First, download ISM.
# recommended
huggingface-cli download jozhang97/ism_t33_650M_uc30pdb --local-dir /path/to/save/ism
# alternative
git clone https://huggingface.co/jozhang97/ism_t33_650M_uc30pdb
If the user is starting from fair-esm, add the following lines of code.
import esm
model, alphabet = esm.pretrained.esm2_t33_650M_UR50D()
ckpt = torch.load('/path/to/ism_t33_650M_uc30pdb/checkpoint.pth')
model.load_state_dict(ckpt)
If the user is starting from huggingface, replace the model and tokenizer with the following line of code.
from transformers import AutoTokenizer, AutoModel
config_path = "/path/to/ism_t33_650M_uc30pdb/"
model = AutoModel.from_pretrained(config_path)
tokenizer = AutoTokenizer.from_pretrained(config_path)
Please change /path/to/ism_t33_650M_uc30pdb to the path where the model is downloaded.
If you find ISM useful in your research, please consider citing:
@article{ouyangzhang2024distilling,
title={Distilling Structural Representations into Protein Sequence Models},
author={Ouyang-Zhang, Jeffrey and Gong, Chengyue and Zhao, Yue and Kr{\"a}henb{\"u}hl, Philipp and Klivans, Adam and Diaz, Daniel J},
journal={bioRxiv},
doi={10.1101/2024.11.08.622579},
year={2024},
publisher={Cold Spring Harbor Laboratory}
}