跳到正文
Skillpedia
机器学习5.4k · #14866

openfold3

它能做什么

这项技能运行 OpenFold3,这是一个预测蛋白质和配体等分子如何在三维空间中结合的工具。它适用于需要结构预测、又不想使用闭源商业工具的研究人员。

适用场景

  • ✓当你想预测与小分子结合的蛋白质的三维结构时。
  • ✓当你需要蛋白质与 DNA 或 RNA 复合物的结构时。
  • ✓当你想要一个开放的、Apache 许可的 AlphaFold3 替代方案时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/aipoch/open-science/blob/main/resources/skills/openfold3/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能