界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

model-api

model-api

【开发与工程】Use OmegaFold programmatically: configs, model construction, forward inputs and outputs, confidence helpers, architecture choices, and API debugging.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: model-api description: "Use OmegaFold programmatically: configs, model construction, forward inputs and outputs, confidence helpers, architecture choices, and API debugging." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

OmegaFold Model API

Use this sub-skill when an agent needs to call OmegaFold from Python, inspect its model/config API, load weights manually, or diagnose backend and dependency failures. For end-user command recipes, use inference CLI. For FASTA normalization, generated input tensors, and PDB output details, use data and outputs.

Quick Routes

Programmatic Inference Shape

A safe custom API flow is: create cfg = omegafold.make_config(1 or 2), instantiate omegafold.OmegaFold(cfg), load a matching state dict, move to a real device, prepare inputs through omegafold.pipeline.fasta2inputs, call model(input_data, predict_with_confidence=True, fwd_cfg=forward_config), then write PDBs through the data/output sub-skill.

Do not present OmegaFold as a training or fine-tuning toolkit. This release is inference code; unsupported training loops, gradient recipes, optimizer setup, or model surgery are outside this sub-skill.

我的收藏