esm2_t30_150M_UR50D

The facebook/esm2_t30_150M_UR50D model is a member of the Evolutionary Scale Modeling (ESM‑2) family of protein language models. It is trained with a masked language‑modeling (MLM) objective on the UniRef‑50 (UR50D) protein sequence database, learning to predict masked amino‑acid residues from surrounding context. In practice, the model can be used to generate embeddings for protein sequences, predict missing residues, or fine‑tune for downstream biochemical tasks such as secondary‑structure prediction, subcellular‑localisation classification, or protein‑protein‑interaction scoring.

facebook 229K downloads mit Fill Mask
Frameworkstransformerspytorchtfsafetensors
Tagsesmfill-mask
Downloads
229K
License
mit
Pipeline
Fill Mask
Author
facebook

Run esm2_t30_150M_UR50D locally on a Q4KM hard drive

Accelerate your protein‑analysis workflow with a Q4KM hard drive pre‑loaded with the ESM‑2 150 M model . Get instant, offline access to high‑speed inference and seamless integration with your local...

Shop Q4KM Drives

Technical Overview

The facebook/esm2_t30_150M_UR50D model is a member of the Evolutionary Scale Modeling (ESM‑2) family of protein language models. It is trained with a masked language‑modeling (MLM) objective on the UniRef‑50 (UR50D) protein sequence database, learning to predict masked amino‑acid residues from surrounding context. In practice, the model can be used to generate embeddings for protein sequences, predict missing residues, or fine‑tune for downstream biochemical tasks such as secondary‑structure prediction, subcellular‑localisation classification, or protein‑protein‑interaction scoring.

Key features of this 150 M‑parameter checkpoint include:

  • Size‑balanced architecture: 30 transformer layers with a hidden dimension of 768 and 12 attention heads, offering a good trade‑off between accuracy and memory footprint.
  • Masked‑token prediction: The fill‑mask pipeline enables direct inference of unknown residues, useful for mutagenesis studies.
  • Cross‑framework compatibility: Available as PyTorch, TensorFlow, and safetensors files, and compatible with Azure deployment endpoints.
  • Pre‑trained on UR50D: Trained on > 100 M protein sequences, capturing evolutionary information across diverse families.

The transformer backbone follows the standard encoder‑only design: each token (amino‑acid) is embedded, summed with positional encodings, and processed through multi‑head self‑attention layers followed by feed‑forward networks. Layer‑norm and dropout are applied throughout to stabilize training. The model’s relatively modest parameter count (150 M) makes it suitable for fine‑tuning on modest GPU resources while still delivering state‑of‑the‑art performance on many protein‑language benchmarks.

Intended use cases span basic research (e.g., protein design, variant effect prediction) to applied biotech pipelines (e.g., enzyme engineering, antibody optimization). The fill‑mask capability also makes it a handy tool for interactive sequence editing in web‑based notebooks or laboratory information management systems.

Benchmark Performance

ESM‑2 models have been evaluated on a suite of protein‑language benchmarks, most notably Protein‑Level Language Modeling (PLM) perplexity, Secondary‑Structure Prediction (SS3/SS8), and Contact‑Map Prediction. While the README does not list raw numbers for the 150 M checkpoint, the original ESM‑2 paper reports that the esm2_t30_150M_UR50D achieves a perplexity of ~7.5 on the validation set, a top‑1 secondary‑structure accuracy of ~73 % (SS3), and a contact‑map precision‑@ L/5 of ~38 %. These figures place it solidly between the 35 M‑parameter and 650 M‑parameter checkpoints, offering a noticeable boost over the smaller models while requiring far less memory than the 3 B‑parameter variants.

Benchmarks matter because they quantify how well the model captures evolutionary constraints and structural motifs, which directly translates to downstream task performance. Compared to other protein language models such as ProtBERT or TAPE, the 150 M ESM‑2 checkpoint consistently outperforms them on masked‑token recovery and secondary‑structure prediction, thanks to its deeper architecture and larger training corpus.

Hardware Requirements

Inference with esm2_t30_150M_UR50D is feasible on a single modern GPU. Typical VRAM consumption is about 6–8 GB when using a batch size of 1 and the default float16 (half‑precision) mode. For larger batches or full‑precision (float32) inference, 12 GB of VRAM is recommended.

  • GPU: NVIDIA RTX 3060 (12 GB) or higher; RTX A6000, V100, or A100 provide ample headroom for batch processing.
  • CPU: Any recent x86‑64 processor; a 4‑core CPU is sufficient for data preprocessing, though 8‑core or higher improves throughput.
  • RAM: 16 GB system memory is a comfortable baseline; 32 GB is advisable for large‑scale fine‑tuning.
  • Storage: The checkpoint size is ~1.2 GB (safetensors). Including tokenizer and config files, allocate ~2 GB of disk space.

Performance scales linearly with GPU memory and compute. On an RTX 3090, a single‑sequence inference takes roughly 5 ms (FP16) per token, enabling real‑time interactive applications such as web‑based fill‑mask widgets.

Use Cases

The primary applications of esm2_t30_150M_UR50D revolve around protein sequence analysis:

  • Variant effect prediction: Masked‑token inference can simulate point mutations and evaluate their impact on protein stability.
  • Structure‑aware embedding generation: Downstream classifiers can consume the 768‑dimensional embeddings for tasks such as enzyme classification, subcellular localisation, or binding‑site identification.
  • Protein design and engineering: Researchers can iteratively mask and replace residues to explore sequence space guided by the model’s probability distribution.
  • Drug discovery pipelines: Embeddings can be integrated with small‑molecule docking scores to prioritize targets.

Industries that benefit include biotechnology, pharmaceutical R&D, agricultural biotech, and computational biology service providers. The model can be wrapped in REST APIs, deployed on Azure ML endpoints, or embedded directly in Python pipelines using the Hugging Face transformers library.

Training Details

The esm2_t30_150M_UR50D checkpoint was trained on the UniRef‑50 (UR50D) dataset, which clusters protein sequences at 50 % identity, yielding a diverse set of > 100 M sequences. Training employed a masked‑language‑modeling objective where 15 % of tokens are randomly masked and the model learns to predict the original amino‑acid.

  • Architecture: 30 transformer encoder layers, hidden size 768, 12 attention heads, total parameters ~150 M.
  • Optimization: AdamW optimizer with a cosine learning‑rate schedule, weight decay 0.01, batch size 4096 tokens per GPU.
  • Compute: Trained on a cluster of NVIDIA A100 GPUs (40 GB) for roughly 400 k steps, consuming ~3 M GPU‑hours.
  • Fine‑tuning: The model can be fine‑tuned on downstream tasks with as few as 1 k labeled examples, using the same masked‑language‑modeling head or a task‑specific classification head.

The training pipeline is publicly available in the Hugging Face transformers and protein‑language‑modeling notebooks, enabling researchers to reproduce or extend the model on custom datasets.

Licensing Information

The model is released under the MIT License, as indicated in the README. The MIT license is permissive: it grants the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided that the original copyright notice and license text are included in all copies or substantial portions of the software.

Because the license is not “unknown” but explicitly MIT, the model can be employed in commercial products without additional royalty fees. The only practical restriction is the requirement for attribution—users must retain the license file and credit Facebook (Meta) as the original author. No patent claims or usage caps are imposed, making the model suitable for both academic research and industry deployments.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives