AMPLIFY is an efficient, state-of-the-art protein language model pre-trained using masked language modeling on UniRef100, OAS, and SCOP (
UR100P
). AMPLIFY can generate residue and protein embeddings, suggest mutations, differentiate disordered proteins from non-protein sequences, and much more. AMPLIFY is available in two sizes, 120M and 350M parameters, with the
_base
models not extended beyond 512 residues (Stage 1). The model architecture and pre-training procedure are detailed below. For more details, please refer to the
accompanying paper
.
from transformers import AutoModel
from transformers import AutoTokenizer
from datasets import load_dataset
# Load AMPLIFY and tokenizer
model = AutoModel.from_pretrained("chandar-lab/AMPLIFY_350M", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("chandar-lab/AMPLIFY_350M", trust_remote_code=True)
# Move the model to GPU (required due to Flash Attention)
model = model.to("cuda")
# Load the UniProt validation set
dataset = load_dataset("chandar-lab/UR100P", data_dir="UniProt", split="test")
for sample in dataset:
# Proteinprint("Sample: ", sample["name"], sample["sequence"])
# Tokenize the proteininput = tokenizer.encode(sample["sequence"], return_tensors="pt")
print("Input: ", input)
# Move to the GPU and make a predictioninput = input.to("cuda")
output = model(input)
print("Output: ", output)
break
Citations
If you find the models useful in your research, we ask that you cite the paper:
@article{Fournier2024.09.23.614603,
title = {Protein Language Models: Is Scaling Necessary?},
author = {Fournier, Quentin and Vernon, Robert M. and van der Sloot, Almer and Schulz, Benjamin and Chandar, Sarath and Langmead, Christopher James},
year = {2024},
journal = {bioRxiv},
publisher = {Cold Spring Harbor Laboratory},
doi = {10.1101/2024.09.23.614603},
url = {https://www.biorxiv.org/content/early/2024/09/23/2024.09.23.614603},
elocation-id = {2024.09.23.614603},
eprint = {https://www.biorxiv.org/content/early/2024/09/23/2024.09.23.614603.full.pdf}
}
Runs of chandar-lab AMPLIFY_350M on huggingface.co
22.2K
Total runs
-1.4K
24-hour runs
-3.2K
3-day runs
-14.7K
7-day runs
-37.6K
30-day runs
More Information About AMPLIFY_350M huggingface.co Model
AMPLIFY_350M huggingface.co is an AI model on huggingface.co that provides AMPLIFY_350M's model effect (), which can be used instantly with this chandar-lab AMPLIFY_350M model. huggingface.co supports a free trial of the AMPLIFY_350M model, and also provides paid use of the AMPLIFY_350M. Support call AMPLIFY_350M model through api, including Node.js, Python, http.
AMPLIFY_350M huggingface.co is an online trial and call api platform, which integrates AMPLIFY_350M's modeling effects, including api services, and provides a free online trial of AMPLIFY_350M, you can try AMPLIFY_350M online for free by clicking the link below.
chandar-lab AMPLIFY_350M online free url in huggingface.co:
AMPLIFY_350M is an open source model from GitHub that offers a free installation service, and any user can find AMPLIFY_350M on GitHub to install. At the same time, huggingface.co provides the effect of AMPLIFY_350M install, users can directly use AMPLIFY_350M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.