openfold3
它能做什么
这项技能运行 OpenFold3,这是一个预测蛋白质和配体等分子如何在三维空间中结合的工具。它适用于需要结构预测、又不想使用闭源商业工具的研究人员。
适用场景
- ✓当你想预测与小分子结合的蛋白质的三维结构时。
- ✓当你需要蛋白质与 DNA 或 RNA 复合物的结构时。
- ✓当你想要一个开放的、Apache 许可的 AlphaFold3 替代方案时。
技能链接
https://github.com/aipoch/open-science/blob/main/resources/skills/openfold3/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“能用 OpenFold3 预测这个与小分子结合的蛋白质的三维结构吗?”
每周 5 个新技能,1 分钟读完。
工作原理
你把需要建模的序列和分子交给智能体。它会在高性能显卡上运行预测模型,并返回结构文件。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
OpenFold3 Structure Prediction
Prerequisites
| Requirement | Minimum | Recommended |
|---|---|---|
| Python | 3.10+ | 3.11 |
| CUDA | 12.1+ | 12.4+ |
| GPU VRAM | 24GB | 80GB (H100) |
| RAM | 32GB | 64GB |
| Disk (weights) | 3GB | - |
How to run
Installation
pip install 'openfold3[cuequivariance]==0.4.1'
The default attention kernel is DeepSpeed DS4Sci_EvoformerAttention. If
DeepSpeed is unavailable, switch to the cuEquivariance triangle kernels (no
build-from-source) by overriding the eval memory settings in
model_config.py (use_deepspeed_evo_attention: False,
use_cueq_triangle_kernels: True). Some pre-built environments already ship
this override; check before re-patching.
Weights
Apache-2.0, ~2.3 GB from HF OpenFold/OpenFold3. The repo is gated (auto-approval) — accept the access form on the HF model page and authenticate (huggingface-cli login or HF_TOKEN) before downloading:
export OPENFOLD_CACHE=~/.openfold3
huggingface-cli download OpenFold/OpenFold3 checkpoints/of3-p2-155k.pt \
--local-dir "$OPENFOLD_CACHE"
run_openfold will also auto-download to $OPENFOLD_CACHE on first run if
egress is open and HF credentials are available (either HF_TOKEN or a prior
huggingface-cli login) with repo access granted. The interactive
setup_openfold helper exists but prompts on stdin; prefer the explicit
download above for non-interactive runs.
Running
export OPENFOLD_CACHE=/path/to/cache
run_openfold predict \
--query_json=queries.json \
--output-dir out/ \
--use-msa-server false \
--use-templates false
run_openfold discovers the checkpoint under $OPENFOLD_CACHE automatically.
Only pass --inference-ckpt-path <file.pt> if you have a non-standard layout
or multiple checkpoints and need to pin one explicitly.
For MSA + templates (slower, higher accuracy), drop the two false flags. The
MSA server is api.colabfold.com; template chain-ID remap hits
data.rcsb.org (GraphQL) — both must be reachable.
Query JSON format
OpenFold3 does not read FASTA. Queries are a JSON object validated by
InferenceQuerySet (pydantic, extra: forbid — unknown keys reject):
{
"queries": {
"my_complex": {
"chains": [
{ "molecule_type": "protein", "chain_ids": ["A"], "sequence": "MQIFVK…" },
{ "molecule_type": "protein", "chain_ids": ["B", "C"], "sequence": "MVLSPA…" },
{ "molecule_type": "ligand", "chain_ids": ["L"], "smiles": "CC(=O)Oc1ccccc1C(=O)O" }
],
"use_msas": true
}
},
"seeds": [42]
}
molecule_type |
required field |
|---|---|
protein / dna / rna |
sequence |
ligand |
smiles or ccd_codes: ["HEM"] |
chain_ids is a list — repeat the same sequence across multiple chain IDs
for homo-oligomers. Per-chain paired_msa_file_paths / main_msa_file_paths
let you supply your own a3m instead of the server.
Key parameters
| Flag | Default | Description |
|---|---|---|
--num-diffusion-samples |
5 | Structures per (query, seed) |
--num-model-seeds |
1 | Number of model seeds per query (multiplies output count alongside JSON seeds and diffusion samples) |
--use-msa-server |
true | ColabFold MMseqs2 server for MSA |
--use-templates |
true | ColabFold template search + RCSB remap |
--inference-ckpt-path |
auto-discovered under $OPENFOLD_CACHE |
Override only — for non-standard layouts or to pin a specific checkpoint file |
Output format
out/
├── summary.txt
├── mode
常见问题
需要什么硬件?
需要高性能显卡,建议至少 24 GB 显存,另外还需要约 3 GB 磁盘空间来存放模型权重。
下载模型需要账户吗?
需要。模型仓库有访问限制,因此下载前必须接受其访问申请表并登录。
它使用什么许可证?
技能描述列出模型权重采用 Apache-2.0 许可证。
详情
作者的原始描述
Structure prediction using OpenFold3, an open-weights PyTorch reproduction of AlphaFold3 from the AlQuraishi Lab. Use this skill when predicting protein/nucleic-acid/ligand complex structures with an Apache-2.0-licensed AF3 reimplementation.
repo: aipoch/open-science
热度
- GitHub 星标
- 5.4k
- 排名
- #14866
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
alphafold2
5.4k帮你的智能体通过 ColabFold 运行器,使用 AlphaFold2 根据蛋白质序列预测其三维结构,包括蛋白质复合物。
boltz
5.4k帮你的智能体使用开源的 Boltz-2 模型预测蛋白质、DNA、RNA 和小分子复合物的结构,并可选择估算结合亲和力。
borzoi
5.4k帮你的智能体根据 DNA 序列预测全基因组的活性轨迹,例如表达和可及性,并通过预测效果比较变异。
chai1
5.4k帮你的智能体通过一个 FASTA 文件,使用 Apache 许可的 Chai-1 模型预测蛋白质、核酸和配体复合物的结构。