Skip to content
Back to skills

Model Api

ASecurity

"Use OmegaFold programmatically: configs, model construction,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpythondebuggingapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill model-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-api-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-api-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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](../inference-cli/SKILL.md). For FASTA normalization, generated input tensors, and PDB output details, use [data and outputs](../data-and-outputs/SKILL.md).

## Quick Routes

- Inspect installed API safely with [`scripts/inspect_model_api.py`](scripts/inspect_model_api.py); it imports OmegaFold, prints signatures/config summaries, and avoids downloads.
- Build configs and call the model with [`references/api-reference.md`](references/api-reference.md).
- Understand model 1 vs model 2 and major modules with [`references/model-architecture.md`](references/model-architecture.md).
- Debug invalid model ids, state-dict mismatches, NumPy/Torch/CUDA/MPS issues, and API OOM with [`references/troubleshooting.md`](references/troubleshooting.md).

## 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.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md6.5 KB
  • references/model-architecture.md4 KB
  • references/troubleshooting.md4.9 KB
  • scripts/inspect_model_api.py7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.