esmfold2
하는 일
이 스킬은 Biohub 릴리스의 ESMFold2와 관련 ESMC 언어 모델을 실행하는 방법을 에이전트에게 가르칩니다. 정렬을 쓰거나 쓰지 않는 복합체 접기, 단백질 서열의 점수화와 임베딩을 다룹니다.
사용하는 경우
- ✓연구자가 정렬 단계 없이 복합체 구조를 빠르게 예측하려고 할 때.
- ✓과학자가 단백질 언어 모델의 임베딩이나 돌연변이 점수를 원하는 경우.
- ✓팀이 설계된 서열이 리간드나 DNA와 어떻게 접히는지 예측하려고 할 때.
스킬 링크
https://github.com/aipoch/open-science/blob/main/resources/skills/esmfold2/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 항체와 항원의 구조를 ESMFold2로 예측하고 신뢰도를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 필요한 환경을 설정하는데, 최신 GPU와 Python 3.12가 필요합니다. 그다음 단일 서열 모드 또는 정렬 모드로 접기 모델을 실행하고, 구조와 신뢰도 지표를 돌려줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
ESMFold2 (Biohub)
All-atom diffusion co-folding from the Biohub ESM release (2026). ESMFold2 = 48 pair layers with MSA support; ESMFold2-Fast = 24 layers, single-sequence only, ~1.7x faster.
License: MIT (code github.com/Biohub/esm + weights HF biohub/*).
Paper: "Language Modeling Materializes a World Model of Protein Biology" (2026).
Install
CUDA 12.x GPU (H100/A100-class); Python 3.12 only. Fresh venv; needs egress to HF Hub, GitHub, PyPI:
pip install --no-cache-dir uv
uv venv --python 3.12 /work/venv && source /work/venv/bin/activate
uv pip install \
"torch>=2.5,<2.8" einops "biotite>=1.0" rdkit msgpack-numpy biopython \
scikit-learn brotli attrs pandas cloudpathlib httpx tenacity zstd pydssp \
pygtrie accelerate huggingface_hub safetensors "numpy<3" networkx \
sentencepiece tokenizers regex packaging filelock pyyaml typing_extensions \
"transformers @ git+https://github.com/Biohub/transformers.git@3a8956fb4d4ea16b0ec8e71deef2c2909b6a5cbf"
uv pip install --no-deps "esm @ git+https://github.com/Biohub/esm.git@f652b471"
# OPTIONAL — only affects ESMC attention; trunk speedup comes from set_kernel_backend("fused")
uv pip install ninja packaging wheel setuptools
MAX_JOBS=8 uv pip install --no-deps --no-build-isolation "flash-attn<3"
# Do NOT install transformer-engine — RuntimeError (not ImportError) on import
# slips ESMC's guard and kills ESMFold2Model import.
The bundled esmfold2_gpu Modal env (remote-compute-modal skill) is the
canonical, version-pinned recipe.
Gotchas:
- Default kernel backend is
None(reference PyTorch, ~12x slower than paper). Callmodel.set_kernel_backend('fused')afterfrom_pretrained(). See section below. - Match torch CUDA build to your driver; the pin
<2.8targets CUDA 12.2. - Weights via Xet bridge ~300 MB/s: ESMFold2 1.36 GB, ESMFold2-Fast 0.76 GB. Set
HF_HOME=/work/hf_cache.
Usage — local model
from esm.models.esmfold2 import (
ESMFold2InputBuilder, StructurePredictionInput,
ProteinInput, DNAInput, RNAInput, LigandInput, Modification,
)
from transformers.models.esmfold2.modeling_esmfold2 import ESMFold2Model
model = ESMFold2Model.from_pretrained("biohub/ESMFold2").cuda().eval()
# or "biohub/ESMFold2-Fast" (24 layers, no MSA, ~1.7x faster)
# or "biohub/ESMFold2-Experimental{,-Fast}{,-Cutoff2025}" (4 design-critic models)
spi = StructurePredictionInput(sequences=[
ProteinInput(id="A", sequence=target_seq),
ProteinInput(id="B", sequence=binder_seq),
# DNAInput(id="C", sequence="ACGT", modifications=[Modification(position=5, ccd="C36")]),
# RNAInput(id="D", sequence="ACGU"),
# LigandInput(id="L", ccd=["SAH"]), # or smiles="..."
])
# Homodimer: ProteinInput(id=["A","B"], sequence=seq)
results = ESMFold2InputBuilder().fold(
model, spi,
num_loops=10, # paper FoldBench eval: 10; 20-loop variant: 20
num_sampling_steps=68, # paper eval: 68 (truncated EDM)
num_diffusion_samples=5, # paper eval: 5/seed
seed=0,
)
# fold() returns list[Prediction], one per diffusion sample. Each carries
# .plddt [L], .ptm, .iptm, .pae [L,L], .pair_chains_iptm, .complex.to_mmcif().
# Rank by ipTM for complexes / mean pLDDT for monomers:
best = max(results, key=lambda r: float(r.iptm if r.iptm is not None
else r.plddt.mean()))
open("pred.cif", "w").write(best.complex.to_mmcif())
Paper-faithful FoldBench settings: 10 loops, 68 sampling steps, 25 seeds
x 5 diffusion samples; rank by ipTM (complexes) or pLDDT (monomers); MSA mode
adds msa_depth=1024 with 10% column masking and ESMC dropout 0.3.
Model variants on HF biohub/
| repo | size | pair layers | MSA | use |
|---|---|---|---|---|
ESMFold2 |
0.94 GB + ccd.pkl 0.42 GB | 48 | yes | full eval |
ESMFold2-Fast |
0.76 GB | 24 | no | fast single-seq |
ESMFold2-Experimental{,-Fast} |
0.90 / 0.72 GB | 48 / 24 | — | design search (Alg 11) |
ESMFold2-Experimental{,-Fast}-Cutoff2025 |
0.90 / 0.72 GB |
자주 묻는 질문
어떤 하드웨어가 필요한가요?
스킬은 H100 또는 A100 급의 CUDA GPU와 Python 3.12가 필요하다고 설명합니다.
다중 서열 정렬이 필요한가요?
아닙니다. 스킬은 단일 서열 모드와 정렬 모드를 모두 다룹니다.
어떤 라이선스가 적용되나요?
스킬은 코드와 가중치가 MIT 라이선스라고 설명합니다.
상세 정보
작성자의 원본 설명
Biohub ESMFold2 / ESMFold2-Fast all-atom co-folding (Candido et al. 2026, github.com/Biohub/esm). Single-sequence and MSA modes; protein, DNA, RNA, ligand (CCD/SMILES), modified residues. FoldBench Ab-Ag 50-55%, PPI 70-77% DockQ-pass. Also covers the ESMC-{300M,600M,6B} protein language models from the same release: masked-LM logits, hidden states, mutation scoring, contact prediction, and the SAE interpretability head. MIT-licensed weights on HuggingFace org `biohub`. Use this skill when: (1) Predicting complex structures with single-sequence input, (2) Validating designed binders with ESMFol
repo: aipoch/open-science
인기도
- GitHub 스타
- 5.4k
- 순위
- #14858
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
alphafold2
5.4k에이전트가 ColabFold 러너를 통해 AlphaFold2로 단백질 서열의 3차원 구조를 예측하고, 단백질 복합체도 다루도록 돕습니다.
boltz
5.4k에이전트가 오픈 소스 Boltz-2 모델로 단백질, DNA, RNA, 저분자 복합체의 구조를 예측하도록 돕고, 선택적으로 결합 친화도 추정도 제공합니다.
borzoi
5.4k에이전트가 DNA 서열로부터 발현과 접근성 같은 게놈 전체의 활성 트랙을 예측하고, 예측된 효과로 변이를 비교하도록 돕습니다.
chai1
5.4k에이전트가 Apache 라이선스의 Chai-1 모델을 사용해, 하나의 FASTA 파일로 단백질, 핵산, 리간드 복합체의 구조를 예측하도록 돕습니다.