본문으로 건너뛰기
Skillpedia
머신러닝5.4k · #14852

chai1

하는 일

이 스킬은 단백질, RNA, DNA, 저분자의 복합체를 예측하는 오픈 모델 Chai-1을 실행하는 방법을 에이전트에게 가르칩니다. 항체, 결합체, 리간드 연구에 쓰입니다.

사용하는 경우

  • ✓연구자가 FASTA 파일로부터 항체와 항원의 복합체를 예측하고 싶을 때.
  • ✓과학자가 단백질과 리간드 예측을 확인할 두 번째 모델을 원하는 경우.
  • ✓팀이 GPU에서 복합체 예측 배치를 실행할 때.

스킬 링크

https://github.com/aipoch/open-science/blob/main/resources/skills/chai1/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“이 항체와 항원의 복합체를 FASTA 파일 하나로 예측하고, 결과의 순위를 매겨 주세요.”

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

작동 방식

에이전트는 각 사슬이나 리간드를 담은 FASTA 파일을 쓰고, 재순환과 샘플링 설정으로 Chai-1을 실행한 뒤 순위 점수를 읽습니다. 출력에는 신뢰도 지표가 있는 구조 파일이 포함됩니다.

기술 내용 (원본 SKILL.md)

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

Chai-1

Chai-1 is an all-atom diffusion co-folder in the same family as Boltz-2 and AlphaFold3: a multi-entity FASTA in, mmCIF plus pTM/ipTM/pLDDT out, with protein, RNA, DNA, and SMILES-ligand chains all first-class. It and boltz cover the same surface; running both and keeping designs that pass either is a common consensus filter, and Chai's Python entry point makes it the easier of the two to embed in a loop. Code and weights are Apache-2.0 — commercial use including drug discovery is explicitly permitted (github.com/chaidiscovery/chai-lab).

Running it

from pathlib import Path
from chai_lab.chai1 import run_inference

Path("complex.fasta").write_text("""
>protein|name=target
MVTPEGNVSLVDESLLVGVTDEDRAVRS...
>protein|name=binder
AIQRTPKIQVYSRHPAENG...
>ligand|name=cofactor
CCCCCCCCCCCCCC(=O)O
""".strip())

candidates = run_inference(
    fasta_file=Path("complex.fasta"),
    output_dir=Path("out/"),
    num_trunk_recycles=3,
    num_diffn_timesteps=200,
    seed=42,
    device="cuda:0",
    use_esm_embeddings=True,
)
print([rd.aggregate_score.item() for rd in candidates.ranking_data])

The FASTA header is >{entity_type}|name={id} with entity_type ∈ {protein, rna, dna, ligand}; ligand records carry a SMILES string as the sequence body, and modified residues are written inline as ...AAK(SEP)AAG.... From the shell the same job is chai-lab fold complex.fasta out/ --use-msa-server. Without --use-msa-server (or use_msa_server=True in Python) the model runs on ESM embeddings alone, which is faster but typically a few ipTM points behind the MSA-backed run.

output_dir receives pred.model_idx_{0..4}.cif plus a matching scores.model_idx_{N}.npz per sample with aggregate_score, ptm, iptm, per_chain_ptm, and clash flags. Rank by aggregate_score; treat iptm > 0.5 as a soft pass for an interface. The function refuses a non-empty output_dir, so clear or rotate it between calls.

Unset CHAI_DOWNLOADS_DIR fails mid-run with PermissionError on a read-only image

Chai downloads ~5 GB on the first inference call (not at install time), including its own traced ESM2-3B for the embedding path. If CHAI_DOWNLOADS_DIR is unset, the default is inside site-packages: on a read-only image that fails with a confusing PermissionError mid-run, and on a writable one it silently re-downloads ~5 GB into the container on every cold start. Export the variable to a persisted volume so the download happens once.

No-MSA mode still loads a 3 B-parameter ESM — same VRAM, not less

use_esm_embeddings=True without an MSA still loads a 3-billion-parameter language model into GPU memory alongside the trunk; it removes the MSA-server round-trip, not the VRAM cost. If you OOM, drop num_diffn_timesteps or fold fewer chains per call rather than expecting the no-MSA mode to fit a smaller card.

Errors worth recognizing

You see It means / do this
PermissionError under site-packages/chai_lab/... CHAI_DOWNLOADS_DIR not set on a read-only image — export it to a writable path or the pre-populated mount.
RuntimeError: CUDA out of memory during ESM embedding The traced ESM2-3B is loading alongside the trunk — use an 80 GB tier or split chains across calls.

Next: filter survivors on confidence/clash metrics or feed them back to proteinmpnn for the next design round.

자주 묻는 질문

어떤 라이선스를 쓰나요?

스킬은 코드와 가중치가 Apache 2.0이며, 상업적 사용을 허용한다고 설명합니다.

리간드를 포함할 수 있나요?

네. 리간드는 FASTA 파일 안에 SMILES 문자열로 줍니다.

반복문에서 쓸 수 있나요?

네. 스킬은 Python 진입점 덕분에 배치 반복문에서 쉽게 실행할 수 있다고 설명합니다.

상세 정보

작성자의 원본 설명

Structure prediction for protein, nucleic-acid, and small-molecule complexes with the Chai-1 foundation model (Chai Discovery 2024, github.com/chaidiscovery/chai-lab). Reach for this skill to predict an antibody-antigen or protein-ligand complex from a single FASTA, to re-fold designed binders as an AlphaFold-multimer alternative, or to drive co-folding from Python for batched campaigns on a GPU.

repo: aipoch/open-science

인기도

GitHub 스타
5.4k
순위
#14852
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬