/ Модель

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

Лицензия
MIT
Архитектура
esmfold2 · dense
Библиотека
transformers
Опубликована
15 сен 2026

ESMFold2-300

Классификация текстаТекст → label3 профессии

Экспериментальная модель Synthyra предсказывает структуры белков и оценки уверенности по аминокислотным последовательностям и описаниям молекулярных комплексов.

485скачиваний за 30 дней0лайковвеса обновлены9 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Synthyra/ESMFold2-300 — экспериментальная модель Synthyra для предсказания пространственной структуры белков и оценки уверенности предсказания. Она упаковывает чекпойнт biohub/ESMFold2-Experimental-Fast-base300M-step1500k с FastPLMs runtime и адаптированной головой уверенности для Transformers. В основе — замороженный 300-миллионный ESM++ backbone и 24 блока сворачивания; модель принимает аминокислотные последовательности и типизированные описания комплексов белковых цепей или молекул. Доступны оценки pLDDT, PAE, pTM и ipTM.

Модель работает без MSA-кондиционирования: входы и признаки, полученные из MSA, не поддерживаются. Значения суффикса 300 относятся к масштабу backbone, а не к общему числу параметров. Классификационные классы Transformers используют backbone, но их головы инициализированы заново и требуют дообучения; их исходные логиты не следует считать готовыми предсказаниями. Уверенность оценивалась на тестовых целях, но эти результаты сами по себе не подтверждают эквивалентность качества структур production-версии ESMFold2.

Модель опубликована под лицензией MIT. Для выполнения требуется Transformers с загрузкой через trust_remote_code=True; описанный режим использует BF16 backbone и CUDA BF16 autocast для FP32 параметров сворачивания, а FP8 не поддерживается.

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

  • предсказание структуры белковой цепи по аминокислотной последовательности
  • совместное сворачивание нескольких белковых цепей
  • предсказание структуры белок-молекулярного комплекса
  • оценка уверенности структуры по pLDDT, PAE, pTM и ipTM

Ограничения

Модель не поддерживает MSA-кондиционирование и отвергает MSA-входы и производные от них признаки. Классификационные головы не обучены, FP8 не поддерживается, а оценки уверенности не доказывают равенство качества структур production-версии ESMFold2.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

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

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

Открыть на Hugging Face

ESMFold2-300

Quick start

Load the published model, fold two protein chains together, and write an mmCIF file. This example uses 15 diffusion steps, matching the experimental config.

import torch

from pathlib import Path
from transformers import AutoModel


model = AutoModel.from_pretrained(
    "Synthyra/ESMFold2-300",
    trust_remote_code=True,
    dtype=torch.float32,
    device_map="cuda",
    esmc_precision="bf16",
    attn_implementation="sdpa",
).eval()
model.set_chunk_size(32)

types = model.input_types
complex_input = types.StructurePredictionInput(
    sequences=[
        types.ProteinInput(id="A", sequence="MSTNPKPQRKTKRNT"),
        types.ProteinInput(id="B", sequence="MKTIIALSYIFCLVFA"),
    ]
)
with torch.inference_mode():
    result = model.fold(
        complex_input,
        num_loops=3,
        num_sampling_steps=15,
        num_diffusion_samples=1,
        seed=17,
        verbose=True,
    )
Path("complex.cif").write_text(model.result_to_cif(result), encoding="utf-8")

Set verbose=False to silence the folding progress display. This variant has a Synthyra-adapted native confidence head and returns pLDDT, PAE, pTM, and iPTM fields. Confidence calculation is optional.

Confidence training and evaluation

The packaged model includes the trained confidence head and enables it by default.

The confidence head completed 780 training updates in 18.1 hours on AtlasFold-Data. The backbone and folding model stayed frozen, and evaluation used the final exponential moving-average checkpoint. Training sampled from 475,969 eligible structures, including monomers, dimers, and larger complexes.

The results below use 512 targets from the existing, already-used test split, with 5 predictions per target, 3 recycling loops, and 50 diffusion steps. Intervals are 95% bootstrap intervals over targets. Longer sequences were evaluated separately and are not included in these tables.

ModelStandard targets evaluatedLong targets evaluated
ESMFold2-30051264
Production ESMFold251246
MeasurementESMFold2-30095% interval
pLDDT against all-atom lDDT, Spearman0.880030.85090 to 0.90258
pTM against TM-score, Spearman0.840040.80621 to 0.86693
ipTM against DockQ, Spearman0.814030.76544 to 0.85119
Atom pLDDT mean absolute error0.078670.07617 to 0.08124
Calibration error, 10 bins0.004260.00241 to 0.00831
pLDDT cross-entropy2.727222.68388 to 2.77285
PAE cross-entropy2.816772.76512 to 2.86575
Within-target lDDT selection accuracy0.585050.50357 to 0.66201
Within-target ipTM against DockQ selection accuracy0.571730.50567 to 0.63475
Top-1 selection regret0.023120.01814 to 0.02899
Random-choice regret0.02556
Unresolved against resolved residue AUROC0.855910.83319 to 0.87786
Resolved residue mean pLDDT0.755500.74226 to 0.76848
Unresolved residue mean pLDDT0.499500.48104 to 0.51862
Resolved residues below pLDDT 0.50.113320.08916 to 0.13865
Unresolved residues below pLDDT 0.50.569340.52484 to 0.61523

Confidence scores, errors, accuracies, and fractions use a 0–1 scale. Lower error, cross-entropy, and regret are better; higher correlation, ranking accuracy, and AUROC are better. Ranking accuracy compares predictions of the same target, with 0.5 representing chance. Regret is the quality lost by selecting a prediction instead of the best available one. Unresolved residues are a proxy for disorder, not definitive disorder labels.

Agreement with production ESMFold2Spearman correlationMean difference
Mean pLDDT0.68423-0.07777
pTM0.79666-0.03602
ipTM0.73161+0.01022

Production agreement compares each model's average confidence per target: 512 targets for pLDDT and pTM, and 320 multichain targets for ipTM. Differences are ESMFold2-300 minus production. Each model predicts its own structures, so these correlations do not measure folding accuracy or scores of identical structures.

See the FastPLMs confidence training guide for the training recipe, evaluation methods, and detailed records.

Model overview

Synthyra/ESMFold2-300 packages the biohub/ESMFold2-Experimental-Fast-base300M-step1500k checkpoint with the FastPLMs runtime and a Synthyra-adapted native confidence head for Hugging Face Transformers. It accepts raw amino-acid sequences or typed molecular-complex specifications; low-level forward accepts prepared feature tensors.

The repository uses the standard Transformers loading interface with trust_remote_code=True. See Technical details for each registered class and whether its weights come from the checkpoint.

The sequence- and token-classification classes reuse the pretrained backbone, but their task heads are newly initialized. Fine-tune those heads before interpreting their logits as predictions.

Install and platform requirements

Install the direct dependencies published with this model:

python -m pip install -r \
  "https://huggingface.co/Synthyra/ESMFold2-300/resolve/main/requirements.txt"

The FastPLMs implementation itself is embedded in the model repository. Transformers loads it through trust_remote_code=True.

This model requires Python 3.12-3.14, PyTorch 2.14, and Transformers 5.17.

The artifact requirements include the structure dependencies.

Validation runs in Docker on any compatible CUDA device. Record the container, hardware, precision, and inputs; no GPU product or workstation is required.

The Hub quick start needs network access for the first download. For an air-gapped run, build the manifest-pinned local artifact first and use the offline example.

Attention backends

The quick start uses sdpa.

Available backends are eager, sdpa, flex_attention. Requesting an unavailable backend raises instead of silently changing implementation.

output_attentions=True can use the documented one-call eager fallback to materialize attention tensors. The configured backend does not change.

Downstream prediction

The sequence and token prediction AutoClasses use the checkpoint backbone and create a new, untrained classifier. Sequence labels have shape (b,). Residue labels have shape (b, l) and use -100 outside biological positions. The folding trunk is skipped. The classifier uses the checkpoint's learned pLM state mixture and projection, followed by one trainable transformer probe.

import torch

from transformers import (
    AutoModelForSequenceClassification,
    AutoModelForTokenClassification,
)


model_id = "Synthyra/ESMFold2-300"
sequence_model = AutoModelForSequenceClassification.from_pretrained(
    model_id, num_labels=2, trust_remote_code=True
).eval()
token_model = AutoModelForTokenClassification.from_pretrained(
    model_id, num_labels=3, trust_remote_code=True
).eval()
sequences = ["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"]
batch = sequence_model.prepare_classifier_inputs(sequences)
biological = batch["attention_mask"].bool()  # (b, l)

sequence_labels = torch.zeros(len(sequences), dtype=torch.long)  # (b,)
token_labels = torch.full_like(batch["input_ids"], -100)  # (b, l)
token_labels[biological] = 0  # selected biological positions; labels stay (b, l)

with torch.inference_mode():
    sequence_output = sequence_model(**batch, labels=sequence_labels)
    token_output = token_model(**batch, labels=token_labels)
print(sequence_output.logits.shape)  # (b, 2)
print(token_output.logits.shape)     # (b, l, 3)

PEFT fine-tuning

Install the training dependencies. Then attach LoRA to the loaded checkpoint:

python -m pip install "datasets>=5.0" "peft>=0.21"
from peft import LoraConfig, TaskType, get_peft_model


peft_model = get_peft_model(
    sequence_model,
    LoraConfig(
        task_type=TaskType.SEQ_CLS,
        r=8,
        lora_alpha=16,
        target_modules="all-linear",
        modules_to_save=["classifier"],
    ),
)

This checkpoint advertises a classification head. Save the separately trained classifier with the adapter. All FastPLMs checkpoints follow the Transformers PreTrainedModel contract and can use PEFT. The ESM2-specific shipped CLI is an example, not a support boundary. Record the target modules, base revision, data identity, and trainable parameter scope.

Protein folding

This experimental Fast checkpoint has 24 folding blocks and uses the frozen Synthyra/ESMplusplus_small backbone. The config-declared step-1500000 backbone and the pinned ESM++ weights are tensor-exact in BF16 after layout conversion.

import torch


model = model.cuda().eval()
with torch.inference_mode():
    output = model.infer_protein(
        "MQYKLILNGKTLKGETTTEAVDAATAEKVFKQYANDNGVDGEWTYDDATKTFTVTE",
        seed=17,
        num_diffusion_samples=1,
    )
print(output.sample_atom_coords.shape)

Folding parameters remain FP32 with CUDA BF16 autocast. The backbone uses BF16; FP8 requests fail. The 15-step sampler and three folding loops remain the checkpoint defaults. Protein inputs require msa=None. This checkpoint was trained without MSA conditioning. It rejects ProteinInput.msa and MSA-derived features. Typed multichain and multimolecule inputs remain supported without MSA conditioning.

The Synthyra-adapted native confidence head returns pLDDT, PAE, pTM, and iPTM. Confidence calculation is optional. The 300 and 600 suffixes describe backbone scale, not total model parameters.

Folding speed settings

Two runtime settings trade memory or exactness for speed on long proteins. They need no extra package and no compilation, and neither is stored in the configuration.

model.set_chunk_size(None)            # unchunked pair updates
model.set_atom_attention("windowed")  # the official flash-attn atom window, through PyTorch

set_chunk_size(None) removes the row chunking of the pair-update blocks, which costs most of a long fold's time on a data-center GPU and saves little peak memory; pass a chunk such as 512 when the unchunked fold does not fit. set_atom_attention("windowed") restricts each atom to 64 real neighbors on each side, as the official model does when flash-attn is installed. It needs CUDA and changes numerical output, within sampling spread on the measured panel. The ESMFold2 guide records the conditions, the dense-versus-windowed comparison, and the figure.

ResiduesFastPLMs defaults (s)Optimized (s)
2561.11.0
1,0243510
2,048not measured40

Measured on one NVIDIA H100 80GB HBM3 with PyTorch 2.13.0+cu130: one fixed pseudo-random protein per length, 3 trunk loops, 50 requested sampling steps under the official noise cap, 1 diffusion sample, BF16 autocast over FP32 folding parameters, median of end-to-end folds. "Defaults" changes no setting.

Learned representation and ESMC precision

The learned projection maps H: (b, l, 31, 960) -> Z: (b, l, 256). embed_dataset returns one (l, 256) residue representation per sequence. The experimental architecture does not expose folding TTT.

Notes and limitations

Experimental Fast model with a frozen 300M ESM++ backbone, 24 folding blocks, no MSA conditioning, and a Synthyra-trained confidence head enabled by default. BF16 execution uses FP32 folding parameters with CUDA autocast; FP8 is unsupported. Confidence evaluation does not establish full structure-model equivalence to production ESMFold2.

Technical details

  • Inputs: Raw amino-acid sequences or typed molecular-complex specifications; low-level forward accepts prepared feature tensors
  • Transformers classes: AutoConfig, AutoModel, AutoModelForSequenceClassification, AutoModelForTokenClassification
  • Checkpoint weights: AutoConfig = FastPLMs extension, AutoModel = pretrained, AutoModelForSequenceClassification = base weights + untrained task head, AutoModelForTokenClassification = base weights + untrained task head
  • Attention backends: eager, sdpa, flex_attention
  • Precision: auto, fp32, bf16
  • BF16 execution: fp32_parameters_autocast
  • Generation contract: not_applicable
  • Dependencies: core + structure
  • Weight publication allowed: true
  • Weight license status: resolved
  • Redistributable: true
  • Complete weight publication required: false

Validation and sources

FastPLMs pins the checkpoint, upstream source revisions, state transformation, and required files in models.toml. Built artifacts record exact source identities and conversion details in source-record.json.

  • FastPLMs checkpoint: Synthyra/ESMFold2-300
  • Runtime revision: recorded separately in the built artifact and published commit
  • Runtime source identities: recorded in source-record.json
  • Official checkpoint: biohub/ESMFold2-Experimental-Fast-base300M-step1500k
  • Artifact source: fast
  • State transform: identity
  • Pinned upstreams: biohub-esm, biohub-transformers, protein-ttt
  • Release tiers: check, compliance, structure, feature, artifact, benchmark
  • Unresolved required file identities: 0

The confidence evaluation above uses the existing test split. It does not establish full structure-model equivalence.

Declared tiers compare configuration, tokenizer behavior, state, and representative inference with the pinned reference. A nonzero unresolved count blocks release. Metadata alone does not show that a build passed, that a backend is faster, or that an output is biologically valid.

License

Checkpoint terms: MIT. The Hub model-card identifier is mit. The local artifact contains applicable source licenses, notices, attribution, and conversion records. Review them before use.

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

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

GPU в ailist

Универсальный рантайм · transformers · text-classification

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

Для архитектуры esmfold2 нет загрузчика под задачу text-classification.

Класс архитектуры
ESMFold2ExperimentalModel
Ревизия весов
b76d9e3

0 моделей