본문으로 건너뛰기
Skillpedia
에이전트51k · #3455

esm

하는 일

이 도구는 ESM이라는 도구 모음을 사용해 단백질의 모양을 만들고, 이해하고, 예측합니다. 새로운 단백질 서열을 만들고, 기존 서열의 수치 표현(임베딩)을 만들고, 단백질의 3D 구조(접힘)를 예측할 수 있습니다.

사용하는 경우

  • ✓패턴에 따라 새로운 단백질 서열을 만들고 싶을 때.
  • ✓추가 분석을 위해 단백질 서열의 수치 표현을 얻고 싶을 때.
  • ✓서열로부터 단백질의 3D 구조를 예측하고 싶을 때.

스킬 링크

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/esm/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/esm/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘MPRT___KEND’ 패턴을 바탕으로 새로운 단백질 서열을 만든 다음, 그 3D 구조를 예측해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

단백질 서열이나 패턴을 도구에 입력합니다. 도구는 미리 학습된 모델을 사용해 새로운 서열을 만들거나, 임베딩을 계산하거나, 3D 구조를 예측합니다. 결과는 돌려주기 전에 오류가 있는지 확인됩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

ESM: protein generation, embeddings, and folding

When to use

Use for Biohub's esm SDK: ESM3 masked multimodal generation, ESMC sequence representations, and ESMFold2 all-atom prediction. The former Forge platform migrated to https://biohub.ai, including ESM3; SDK class names still contain Forge. This skill targets the released esm 3.4.1.post1, verified against its wheel and current official documentation.

fair-esm is Meta's separate, older ESM2/ESMFold/ESM-IF distribution. Both packages import as esm; install them in separate environments. The legacy esm.pretrained.esm2_* interface is not the Biohub ESMC interface. Hugging Face Transformers' native ESMC implementation is another API: do not interchange its version requirements or output types with this SDK.

Setup and model choice

uv venv --python 3.12 .venv-esm
uv pip install --python .venv-esm/bin/python "esm==3.4.1.post1"

The release declares Python >=3.12, Torch >=2.11,<2.12 and Transformers

=4.57.6,<5. Python 3.12, Torch 2.11.0 and Transformers 4.57.6 were tested on CPU. Linux x86_64 installs include GPU-specific dependencies; use a supported inference machine and budget disk space. Flash Attention is optional; it is unnecessary for the tiny CPU tests. Do not install this stack into a shared environment containing incompatible Transformers or Torch pins.

Task Local model/API Hosted client/model
ESM3 sequence/structure/function generation ESM3.from_pretrained("esm3-sm-open-v1") client("esm3-medium-2024-08"); small/large IDs in the ESM3 reference
ESMC embeddings EsmcForMaskedLM and EsmcTokenizer; biohub/ESMC-300M, biohub/ESMC-600M, biohub/ESMC-6B esmc_client("esmc-600m-2024-12"); 300M/6B also documented
ESMFold2 all-atom structures EsmFold2Model, ESMFold2InputBuilder; biohub/ESMFold2 esmfold2_client("esmfold2-fast-2026-05")

ESMC 6B weights are now available locally. Current Biohub model cards identify MIT licensing, with ESMC cards also linking third-party notices; review the exact selected artifact's card and access requirements. The older ESMC class remains as a deprecated compatibility wrapper. Local model sizes, hosted availability and account quotas are different constraints; a larger model does not guarantee better performance on a particular assay.

Workflow

  1. Specify the sequence/chain/residue mapping and whether the objective is generation, representation extraction or folding. Preserve input IDs and source provenance. Reject accidental ..., spaces, FASTA headers or gaps in plain single-chain sequences rather than silently deleting them.
  2. Choose a local checkpoint or explicit hosted model ID. Record SDK, checkpoint revision, model settings, mask locations and random seed where supported.
  3. Check every SDK result for ESMProteinError. Hosted failures may be returned as values. Use finite request timeouts, context managers and bounded concurrency. See hosted contracts.
  4. Validate the output contract: sequence length and fixed residues, residue-only embedding axes, or chain/atom mapping and confidence. Keep model predictions separate from experimental validation.
  5. Save sequences/structures with settings and identifiers. Avoid caches keyed only by sequence when model, structure, function or generation settings differ.

ESM3 completion and fresh structure prediction

Illustrative pretrained inference; no weights or hosted jobs were run in this refresh. This toy sequence demonstrates API mechanics, not a functional design.

import torch
from esm.models.esm3 import ESM3
from esm.sdk.api import ESMProtein, ESMProteinError, GenerationConfig

model = ESM3.from_pretrained("esm3-sm-open-v1", device=torch.device("cpu"))
prompt = "MPRT___KEND"
completed = model.generate(
    ESMProtein(sequence=prompt),
    GenerationConfig(track="sequence", num_steps=3, temperature=0.7),
)
if isinstance(completed, ESMProteinError):
    raise completed
assert completed.sequence is not None and len(completed.sequence) == len(prompt)
assert "_" not in completed.sequence
assert all(a == "_" or a == b for a, b in zip(prompt, completed.sequence))

# A fresh sequence-only prompt prevents old coordinates conditioning the check.
folded = model.generate(
    ESMProtein(sequence=completed.sequence),
    GenerationConfig(track="structure", num_steps=8),
)
if isinstance(folded, ESMProteinError):

…
자주 묻는 질문

ESM3, ESMC, ESMFold2의 차이는 무엇인가요?

ESM3은 서열과 구조를 생성하는 모델입니다. ESMC는 서열의 수치 표현(임베딩)을 만들고, ESMFold2는 단백질의 3D 구조(접힘)를 예측합니다.

이 도구를 제 컴퓨터에서 실행할 수 있나요?

네, 모델을 설치해 로컬에서 실행할 수 있습니다. 다만 큰 모델은 성능이 좋은 컴퓨터가 필요할 수 있습니다.

‘임베딩(embedding)’이란 무엇인가요?

단백질 서열을 숫자의 집합으로 나타내는 방법입니다. 컴퓨터가 서로 다른 서열을 이해하고 비교하는 데 도움이 됩니다.

상세 정보

작성자의 원본 설명

Uses the Biohub esm Python SDK for ESM3 protein generation, ESMC embeddings, and ESMFold2 all-atom folding. Applies to local model inference and Biohub hosted clients, including former Forge workflows; distinguishes the separate legacy fair-esm distribution.

repo: K-Dense-AI/scientific-agent-skills

인기도

GitHub 스타
51k
순위
#3455
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬