chai1
Fungsinya
Skill ini mengajari agent cara menjalankan Chai-1, model terbuka yang memprediksi kompleks protein, RNA, DNA, dan molekul kecil. Skill ini untuk riset antibodi, pengikat, dan ligan.
Kapan dipakai
- βSaat peneliti ingin kompleks antibodi dan antigen diprediksi dari file FASTA.
- βSaat ilmuwan ingin model kedua untuk memeriksa prediksi protein dan ligan.
- βSaat tim menjalankan batch prediksi kompleks di GPU.
Link skill
https://github.com/aipoch/open-science/blob/main/resources/skills/chai1/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPrediksi kompleks antibodi ini dan antigennya dari satu file FASTA, lalu urutkan hasilnya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menulis file FASTA yang berisi setiap rantai atau ligan, menjalankan Chai-1 dengan pengaturan recycling dan sampling, lalu membaca skor peringkatnya. Keluarannya mencakup file struktur dengan metrik kepercayaan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Lisensi apa yang dipakai?
Skill ini menyebutkan kode dan bobot model berlisensi Apache 2.0, yang memungkinkan penggunaan komersial.
Bisakah ligan disertakan?
Bisa. Ligan diberikan sebagai string SMILES dalam file FASTA.
Bisakah saya memakainya dalam loop?
Bisa. Skill ini menyebutkan titik masuk Python-nya memudahkan menjalankan dalam loop batch.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14852
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
alphafold2
5.4kMembantu agent Anda memprediksi struktur tiga dimensi protein dari urutannya, termasuk kompleks protein, dengan AlphaFold2 lewat runner ColabFold.
boltz
5.4kMembantu agent Anda memprediksi struktur kompleks protein, DNA, RNA, dan molekul kecil dengan model open-source Boltz-2, dengan estimasi afinitas pengikatan opsional.
borzoi
5.4kMembantu agent Anda memprediksi trek aktivitas seluruh genom, seperti ekspresi dan aksesibilitas, dari urutan DNA, dan membandingkan varian berdasarkan efek yang diprediksi.
compute-env-setup
5.4kMembantu agent Anda menyiapkan lingkungan perangkat lunak yang bisa dipakai ulang di host komputasi SSH Open Science, sehingga pekerjaan jarak jauh bisa memuat paket yang dibutuhkan.
Skill serupa
pytorch-patterns
280kMembantu agent Anda menggunakan PyTorch untuk model machine learning. Menerapkan praktik terbaik untuk pelatihan model yang efisien dan hasil yang dapat direproduksi.
evm-token-decimals
280kMembantu agent menghindari kesalahan angka desimal di berbagai jaringan blockchain. Memastikan nilai token akurat dalam transaksi dan perhitungan.
ito-inference
280kMemungkinkan agent Anda mengecek ketersediaan model AI untuk digunakan. Menghubungkan permintaan komputasi dengan layanan model yang siap.