westlake-repl / SaProt_650M_PDB

huggingface.co
Total runs: 17.1K
24-hour runs: 0
7-day runs: 140
30-day runs: 13.6K
Model's Last Updated: December 11 2024
fill-mask

Introduction of SaProt_650M_PDB

Model Details of SaProt_650M_PDB

We provide two ways to use SaProt, including through huggingface class and through the same way as in esm github . Users can choose either one to use.

Huggingface model

The following code shows how to load the model.

from transformers import EsmTokenizer, EsmForMaskedLM

model_path = "/your/path/to/SaProt_650M_PDB"
tokenizer = EsmTokenizer.from_pretrained(model_path)
model = EsmForMaskedLM.from_pretrained(model_path)

#################### Example ####################
device = "cuda"
model.to(device)

seq = "MdEvVpQpLrVyQdYaKv"
tokens = tokenizer.tokenize(seq)
print(tokens)

inputs = tokenizer(seq, return_tensors="pt")
inputs = {k: v.to(device) for k, v in inputs.items()}

outputs = model(**inputs)
print(outputs.logits.shape)

"""
['Md', 'Ev', 'Vp', 'Qp', 'Lr', 'Vy', 'Qd', 'Ya', 'Kv']
torch.Size([1, 11, 446])
"""
esm model

The esm version is also stored in the same folder, named SaProt_650M_AF2.pt . We provide a function to load the model.

from utils.esm_loader import load_esm_saprot

model_path = "/your/path/to/SaProt_650M_PDB.pt"
model, alphabet = load_esm_saprot(model_path)

Runs of westlake-repl SaProt_650M_PDB on huggingface.co

17.1K
Total runs
0
24-hour runs
102
3-day runs
140
7-day runs
13.6K
30-day runs

More Information About SaProt_650M_PDB huggingface.co Model

More SaProt_650M_PDB license Visit here:

https://choosealicense.com/licenses/mit

SaProt_650M_PDB huggingface.co

SaProt_650M_PDB huggingface.co is an AI model on huggingface.co that provides SaProt_650M_PDB's model effect (), which can be used instantly with this westlake-repl SaProt_650M_PDB model. huggingface.co supports a free trial of the SaProt_650M_PDB model, and also provides paid use of the SaProt_650M_PDB. Support call SaProt_650M_PDB model through api, including Node.js, Python, http.

westlake-repl SaProt_650M_PDB online free

SaProt_650M_PDB huggingface.co is an online trial and call api platform, which integrates SaProt_650M_PDB's modeling effects, including api services, and provides a free online trial of SaProt_650M_PDB, you can try SaProt_650M_PDB online for free by clicking the link below.

westlake-repl SaProt_650M_PDB online free url in huggingface.co:

https://huggingface.co/westlake-repl/SaProt_650M_PDB

SaProt_650M_PDB install

SaProt_650M_PDB is an open source model from GitHub that offers a free installation service, and any user can find SaProt_650M_PDB on GitHub to install. At the same time, huggingface.co provides the effect of SaProt_650M_PDB install, users can directly use SaProt_650M_PDB installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SaProt_650M_PDB install url in huggingface.co:

https://huggingface.co/westlake-repl/SaProt_650M_PDB

Url of SaProt_650M_PDB

Provider of SaProt_650M_PDB huggingface.co

westlake-repl
ORGANIZATIONS

Other API from westlake-repl