/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
esm2_t30_150M_UR50D
Опубликована
18 ноя 2026

esm2-protein-subcellular-localization-signal-peptide

Классификация текстаТекст → label
214скачиваний за 30 дней0лайковвеса обновлены1 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Дообученная модель ESM-2 для предсказания субклеточной локализации белка и наличия сигнального пептида по аминокислотной последовательности.

Модель quorumbio предсказывает субклеточную локализацию белка и наличие N-концевого сигнального пептида по аминокислотной последовательности. Это дообученная версия ESM-2 с 150 млн параметров, обученная на записях UniProtKB/Swiss-Prot с разделением данных по сходству последовательностей. Для каждой из 10 локализаций модель выдаёт вероятность, позволяя белку иметь несколько меток, а также вероятность сигнального пептида. Для сигнальных пептидов показано высокое качество; предсказания распространённых локализаций приемлемы, а результаты для аппарата Гольджи, лизосом и вакуолей, пероксисом, эндоплазматического ретикулума и клеточной мембраны слабее или умеренные.

Модель предназначена для биоинформатического анализа белковых последовательностей. Для последовательностей длиннее 1000 остатков реализация использует первые 600 и последние 400. В репозитории есть веса SafeTensors и ONNX, включая INT8-квантованный вариант; на небольшой проверочной выборке INT8 давал близкие, но не идентичные результаты, и не оценивался на полном тестовом наборе. Ограничения также включают неполные и неоднородные аннотации, только 10 укрупнённых локализаций и отсутствие предсказания сайта отщепления сигнального пептида. Лицензия Apache-2.0.

Сценарии применения

  • оценка вероятности сигнального пептида у белка
  • предсказание локализации белка в клетке
  • поиск белков, вероятно секретируемых во внеклеточную среду
  • отбор кандидатов для последующего анализа белковых последовательностей

Ограничения

Качество слабее для аппарата Гольджи, лизосом и вакуолей, пероксисом, а также умеренное для эндоплазматического ретикулума и клеточной мембраны; предсказания охватывают только 10 укрупнённых локализаций и не включают сайт отщепления пептида. Аннотации могут быть неполными или противоречивыми, а качество на белках, отличающихся от Swiss-Prot, может быть ниже.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Protein subcellular localization and signal peptide prediction (ESM-2 150M)

Takes a protein sequence and returns (1) probabilities for 10 subcellular locations (a protein can have more than one) and (2) the probability that it has an N-terminal signal peptide. Fine-tuned from facebook/esm2_t30_150M_UR50D on UniProtKB/Swiss-Prot with a homology-reduced split. 150M parameters.

Short version. Signal peptide detection is strong (AUROC 0.994, MCC 0.956). Location prediction is decent for common compartments (nucleus, cytoplasm, extracellular, plastid) and weak for Golgi, lysosome/vacuole and peroxisome: do not rely on those three.

Larger version. quorumbio/esm2-650m-protein-subcellular-localization-signal-peptide (ESM-2 650M, same data and split) ranks locations slightly better (macro AUROC +0.010 on the same test proteins) but is not better on signal peptides or rare classes, and is about 4x larger. This 150M model remains the default.

Use

from huggingface_hub import snapshot_download
import sys; folder = snapshot_download("quorumbio/esm2-protein-subcellular-localization-signal-peptide"); sys.path.insert(0, folder)
from quorum_loc import load, predict
m = load(folder)
# Example input only: a serum albumin-like sequence, not a verified UniProt entry. Use your own sequence.
predict(m, "MKWVTFISLLLLFSSAYSRGVFRRDTHKSEIAHRFKDLGEEHFKGLVLIAFSQYLQQCPFDEHVKLVNELTEFAKTCVADESHAGCEKSLHTLFGDELCKVASLRETYGDMADCCEKQEPERNECFLSHKDDSPDLPKLKPDPNTLCDEFKADEKKFWGKYLYEIARRHPYFYAPELLYYANKYNGVFQECCQAEDKGACLLPKIETMREKVLASSARQRLRCASIQKFGERALKAWSVARLSQKFPKAEFVEVTKLVTDLTKVHKECCHGDLLECADDRADLAKYICDNQDTISSKLKECCDKPLLEKSHCIAEVEKDAIPENLPPLTADFAEDKDVCKNYQEAKDAFLGSFLYEYSRRHPEYAVSVLLRLAKEYEATLEECCAKDDPHACYSTVFDKLKHLVDEPQNLIKQNCDQFEKLGEYGFQNALIVRYTRKVPQVSTPTLVEVSRSLGKVGTRCCTKPESERMPCTEDYLSLILNRLCVLHEKTPVSEKVTKCCTESLVNRRPCFSALTPDETYVPKAFDEKLFTFHADICTLPDTEKQIKKQTALVELLKHKPKATEEQLKTVMENFVAFVDKCCAADDKEACFAVEGPKLVVSTQTALA")

Each location result has a probability and a yes/no using a per-class threshold picked on the validation set. predict handles sequences over 1000 residues by keeping the first 600 and last 400. ONNX files (onnx/model.onnx fp32 591.7 MB, onnx/model_quantized.onnx int8 149.9 MB) take input_ids and attention_mask and return loc_logits (10, apply sigmoid) and sp_logit (apply sigmoid). Checked against PyTorch on 150 test sequences up to 500 residues: max absolute probability difference 9.2e-06 (fp32) and 0.100 (int8); decisions agree with PyTorch on 100.0% (fp32) and 99.9% (int8) of class decisions. The int8 file is smaller and faster but not identical, and its accuracy was only checked on this small sample, not the full test set.

Results (test set, scored once)

Test set: 2336 proteins from Swiss-Prot, split by sequence similarity (see Data). Released checkpoint: seed 13; seed variation is measured below. Checkpoint and thresholds were chosen on the validation set only.

Signal peptide (450 positives among 2336 test proteins): AUROC 0.994, MCC 0.956 at threshold 0.9.

Locations (macro AUROC 0.926, macro F1 0.650). AUROC looks flattering when a class is rare, so average precision (AP) and F1 are the numbers to trust. Last column is the smaller ESM-2 35M version of the same recipe, for reference.

ClassTest positivesAUROCAPF1F1 (35M)
Nucleus7160.9290.8740.7850.769
Cytoplasm8420.8990.8200.7790.763
Extracellular3510.9770.8920.8610.840
Mitochondrion2210.9310.7730.7370.701
Cell membrane2950.9240.7280.6930.680
Endoplasmic reticulum1920.9320.6190.6300.521
Plastid840.9800.8840.8830.859
Golgi apparatus780.8850.3810.3420.311
Lysosome/Vacuole880.8790.3670.3610.299
Peroxisome350.9220.4050.4320.296

Rare-class AP is far above random guessing (for example peroxisome is about 1.5% of the test set) but low in absolute terms.

Seed variation

We retrained the 150M model with the same data and settings using 2 more seeds (1, 2), chosen before training; all 3 runs (with the released seed 13) are reported, none dropped. Test set, mean ± SD across seeds:

MetricMean ± SDRange
Location macro AUROC0.927 ± 0.0010.926 to 0.927
Location macro F10.645 ± 0.0090.635 to 0.650
Signal peptide AUROC0.993 ± 0.0010.992 to 0.994
Signal peptide MCC0.956 ± 0.0000.956 to 0.956
F1, Golgi apparatus0.376 ± 0.0300.342 to 0.400
F1, Lysosome/Vacuole0.354 ± 0.0100.343 to 0.361
F1, Peroxisome0.337 ± 0.1390.178 to 0.432
AP, Golgi apparatus0.375 ± 0.0110.362 to 0.383
AP, Lysosome/Vacuole0.356 ± 0.0100.349 to 0.367
AP, Peroxisome0.356 ± 0.0540.298 to 0.405

Rare-class F1 depends on a threshold picked on few validation positives, so it is much less stable than AUROC or AP. The released checkpoint's Peroxisome F1 (0.432) is the best of the 3 seeds, so the per-class table above overstates what a typical run gets for peroxisome (mean 0.337). 3 seeds is a small sample, so treat the SD as rough. It covers training randomness only, not test-set sampling. Per-class values for all classes: seed_results.json.

Test-set uncertainty

The seed variation above covers training randomness only. To show how much the small test set limits precision, we bootstrapped the released checkpoint's test predictions. We resampled the 1475 MMseqs2 test clusters rather than single proteins, because similar proteins are not independent. We used 2000 resamples, with the validation-chosen thresholds held fixed. 95% percentile intervals:

MetricPoint95% interval
Location macro AUROC0.9260.914 to 0.935
Location macro AP0.6740.642 to 0.708
Location macro F10.6500.614 to 0.680
AP, Golgi apparatus0.3810.243 to 0.513
AP, Lysosome/Vacuole0.3670.215 to 0.520
AP, Peroxisome0.4050.240 to 0.588
F1, Golgi apparatus0.3420.234 to 0.447
F1, Lysosome/Vacuole0.3610.218 to 0.484
F1, Peroxisome0.4320.219 to 0.613
Signal peptide AUROC0.9940.988 to 0.998
Signal peptide MCC0.9560.935 to 0.972

For the rare classes, this test-set uncertainty (roughly ±0.1 to 0.2 AP) is far larger than the seed SD. Treat their per-class numbers as rough magnitudes. All classes: bootstrap_ci.json; script: training/bootstrap_loc.py.

These numbers are not directly comparable to published tools such as SignalP or DeepLoc, which use different datasets, splits and label definitions. We have not run those tools on this test set.

Data

UniProtKB/Swiss-Prot reviewed entries (CC BY 4.0), retrieved 2026-11-17. Kept proteins of length 30 to 4000 with standard amino acids and at least one subcellular location backed by experimental evidence (ECO:0000269), mapped by name to 10 classes. Signal peptide label: the entry has a UniProt SIGNAL feature of any evidence type, so it can include predicted annotations. In practice most are predicted: of the 450 test positives, 340 (76%) carry sequence-model evidence (ECO:0000255; UniProt curators typically assign this from prediction tools such as SignalP) and only 77 (17%) have experimental evidence (ECO:0000269). On those 77 experimentally supported signal peptides the model's recall is 0.948 (73/77, 95% Wilson interval 0.87 to 0.98) and AUROC 0.995 against all test negatives, about the same as on the sequence-analysis ones (recall 0.950, AUROC 0.995). So the signal peptide score is not just agreement with predicted labels, but the experimental subset is small. Details: sp_evidence.json. Clustering: MMseqs2 at 30% identity (coverage 0.8), clusters assigned 80/10/10 to train/dev/test, then dev and test proteins with any hit at 30% or more identity to training proteins were removed. Final sizes: train 30134, dev 2457, test 2336; signal peptide positives 5636, 385, 450. Multiple isoform-specific locations are merged per protein. The exact split is published as the dataset quorumbio/swissprot-subcellular-localization-signal-peptide.

Training

training/ has the scripts and provenance.json (checksum of the downloaded data). Mean-pooled ESM-2 features feed a 10-way location head; the signal peptide head also sees the mean of the first 30 residues. Binary cross-entropy with class weights (max 10) for rare locations, bf16, gradient checkpointing, AdamW with warmup and linear decay, batch size 8, lr 5e-05, 2 epochs (best dev epoch kept), one RTX 3060, about 99 minutes.

Limitations

  • Weak on Golgi, lysosome/vacuole and peroxisome; mediocre on ER and cell membrane.
  • Labels come from curated annotations, which are incomplete and sometimes inconsistent; proteins with unknown or contested location are not represented.
  • Only 10 coarse locations; no sub-compartments, no membrane topology, no signal peptide cleavage site.
  • Isoform and condition-specific locations are merged.
  • Mostly well-studied proteins, so expect lower accuracy on proteins unlike Swiss-Prot.
  • Research use only. Seed variation measured with only 3 seeds; test-set intervals (cluster bootstrap) are above.

Files

SHA256SUMS lists checksums for every file.

Citation

If you use this model in published work, please cite it. Author: Misha Golubev (ORCID 0009-0008-8339-248X), Quorum Bio.

@misc{quorumbio2026loc_esm2_150m,
  author       = {Golubev, Misha},
  title        = {Protein subcellular localization and signal peptide prediction (ESM-2 150M)},
  year         = {2026},
  publisher    = {Hugging Face},
  doi          = {10.57967/hf/12059},
  howpublished = {\url{https://huggingface.co/quorumbio/esm2-protein-subcellular-localization-signal-peptide}},
  note         = {Technical report: \url{https://github.com/QuorumBio/quorum-bio/blob/main/docs/report.md}}
}

Please also cite the work it builds on:

  • Lin Z, et al. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 379:1123-1130 (2023).
  • The UniProt Consortium. UniProt: the Universal Protein Knowledgebase in 2025. Nucleic Acids Res 53(D1):D609-D617 (2025).
  • Steinegger M, Söding J. MMseqs2 enables sensitive protein sequence searching for the analysis of massive data sets. Nat Biotechnol 35:1026-1028 (2017).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Не удалось определить, чем загружать веса модели (нет library_name и architectures).

Ревизия весов
6302e21

0 моделей