chai1
Skill này làm gì
Skill này dạy agent cách chạy Chai-1, một mô hình mở dự đoán phức hợp của protein, RNA, DNA và phân tử nhỏ. Skill dành cho nghiên cứu kháng thể, chất gắn và ligand.
Khi nào nên dùng
- ✓Khi nhà nghiên cứu muốn dự đoán phức hợp kháng thể và kháng nguyên từ một file FASTA.
- ✓Khi nhà khoa học muốn một mô hình thứ hai để kiểm tra dự đoán protein và ligand.
- ✓Khi một đội chạy các lô dự đoán phức hợp trên GPU.
Liên kết skill
https://github.com/aipoch/open-science/blob/main/resources/skills/chai1/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dự đoán phức hợp của kháng thể này và kháng nguyên của nó từ một file FASTA, rồi xếp hạng các kết quả.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent ghi file FASTA với từng chuỗi hoặc ligand, chạy Chai-1 với các thiết lập tái chế và lấy mẫu, rồi đọc điểm xếp hạng. Đầu ra gồm các file cấu trúc với chỉ số tin cậy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Nó dùng giấy phép gì?
Skill nói mã và trọng số theo Apache 2.0, cho phép sử dụng thương mại.
Có thể đưa ligand vào không?
Có. Ligand được cho dưới dạng chuỗi SMILES trong file FASTA.
Có thể dùng trong vòng lặp không?
Có. Skill nói điểm vào Python của nó giúp chạy dễ dàng trong các vòng lặp hàng loạt.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14852
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
alphafold2
5.4kGiúp agent của bạn dự đoán cấu trúc 3D của protein từ trình tự của nó, kể cả phức hợp protein, bằng AlphaFold2 qua công cụ chạy ColabFold.
boltz
5.4kGiúp agent của bạn dự đoán cấu trúc của phức hợp protein, DNA, RNA và phân tử nhỏ bằng mô hình mã nguồn mở Boltz-2, với ước tính ái lực liên kết tùy chọn.
borzoi
5.4kGiúp agent của bạn dự đoán các track hoạt động trên toàn bộ genome, như biểu hiện gen và khả năng tiếp cận, từ trình tự DNA, và so sánh các biến thể theo tác động dự đoán.
compute-env-setup
5.4kGiúp agent của bạn chuẩn bị một môi trường phần mềm dùng lại được trên máy tính Open Science qua SSH, để các công việc từ xa có thể tải những gói cần thiết.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.