Sponsored by
Crazyrouter
-The enterprise-grade, cost-effective AI API gateway that provides one API key to access 300+ AI models through OpenAI-compatible endpoints, with
This model has been optimized using NVIDIA's
TransformerEngine
library. Slight numerical differences may be observed between the original model and the optimized
model. For instructions on how to install TransformerEngine, please refer to the
official documentation
.
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("nvidia/AMPLIFY_350M", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("nvidia/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 nvidia AMPLIFY_120M on huggingface.co
306
Total runs
-1
24-hour runs
9
3-day runs
-41
7-day runs
-487
30-day runs
More Information About AMPLIFY_120M huggingface.co Model
AMPLIFY_120M huggingface.co is an AI model on huggingface.co that provides AMPLIFY_120M's model effect (), which can be used instantly with this nvidia AMPLIFY_120M model. huggingface.co supports a free trial of the AMPLIFY_120M model, and also provides paid use of the AMPLIFY_120M. Support call AMPLIFY_120M model through api, including Node.js, Python, http.
AMPLIFY_120M huggingface.co is an online trial and call api platform, which integrates AMPLIFY_120M's modeling effects, including api services, and provides a free online trial of AMPLIFY_120M, you can try AMPLIFY_120M online for free by clicking the link below.
nvidia AMPLIFY_120M online free url in huggingface.co:
AMPLIFY_120M is an open source model from GitHub that offers a free installation service, and any user can find AMPLIFY_120M on GitHub to install. At the same time, huggingface.co provides the effect of AMPLIFY_120M install, users can directly use AMPLIFY_120M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.