Chuyển đến nội dung
Skillpedia
Học máy5.4k · #14866

openfold3

Skill này làm gì

Skill này chạy OpenFold3, một công cụ dự đoán cách các phân tử như protein và ligand khớp với nhau trong 3D. Skill dành cho nhà nghiên cứu cần dự đoán cấu trúc mà không dùng công cụ thương mại đóng.

Khi nào nên dùng

  • ✓Khi bạn muốn dự đoán cấu trúc 3D của một protein gắn với một phân tử nhỏ.
  • ✓Khi bạn cần cấu trúc của một phức hợp protein và DNA hoặc RNA.
  • ✓Khi bạn muốn một lựa chọn mở, cấp phép Apache thay cho AlphaFold3.

Liên kết skill

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

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/aipoch/open-science/blob/main/resources/skills/openfold3/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể dự đoán cấu trúc 3D của protein này khi gắn với một phân tử nhỏ bằng OpenFold3 không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn đưa cho agent các trình tự và phân tử cần mô hình hóa. Agent chạy mô hình dự đoán trên một GPU mạnh và trả về các file cấu trúc.

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.

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
Câu hỏi thường gặp

Cần phần cứng gì?

Cần một GPU mạnh, khuyến nghị ít nhất 24 GB bộ nhớ, cộng khoảng 3 GB đĩa cho trọng số mô hình.

Tôi có cần tài khoản để tải mô hình không?

Có. Kho mô hình có kiểm soát truy cập, nên bạn phải chấp nhận biểu mẫu truy cập và đăng nhập trước khi tải.

Nó dùng giấy phép gì?

Mô tả của skill nêu trọng số mô hình theo Apache-2.0.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
5.4k
Vị trí xếp hạng
#14866
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự