ferritin_plms/esm2/mod.rs
1//! ESM-2 protein language model from Facebook/Meta Research.
2//!
3//! This module implements **ESM-2** (`EsmForMaskedLM`), a BERT-style masked language model
4//! trained on UniRef50. Weights are publicly available on HuggingFace without any license gate.
5//!
6//! HuggingFace repos (facebook/esm2_t{6,12,30,33,36,48}_UR50D):
7//! - <https://huggingface.co/facebook/esm2_t6_8M_UR50D>
8//! - <https://huggingface.co/facebook/esm2_t12_35M_UR50D>
9//! - <https://huggingface.co/facebook/esm2_t30_150M_UR50D>
10//! - <https://huggingface.co/facebook/esm2_t33_650M_UR50D>
11//!
12//! Features: sequence embeddings, per-residue logits, contact head predictions.
13//! Loads weights from HuggingFace safetensors format via `ESM2Runner`.
14//!
15//! **Note**: Architecturally distinct from `esmc` (EvolutionaryScale ESM-C/ESM-3), which is
16//! multimodal and gated. ESM-2 is sequence-only and publicly accessible.
17
18pub mod esm2;
19pub mod esm2_runner;