boltz2-nim
Use Boltz2 NIM for biomolecular structure prediction and binding affinity. Invoke for Boltz2, protein structures, protein-ligand/DNA/RNA complexes, SMILES or CCD ligands, pIC50/IC50 affinity scoring, mmCIF output, hosted NVIDIA API calls, or local Docker deployment.
- 0
- Installs
- —
- Rating
- —
- Success rate
- 12
- Files scanned
Security scan
Needs reviewSuspicious-but-common patterns. Skim the findings before installing.
- mediumReads credential files or secret env vars
config/skillspector-baseline.yml:14
NGC_API_KEY loading snippet (`[ -f .env ] && . ./.env`), which reads the
Legitimate for some tools, but a skill touching secrets deserves a human look.
- mediumReads credential files or secret env vars
evals/evals.json:39
"expected_output": "Step-by-step Docker setup commands that use shell env first and optional repo-root .env overrides, require NGC_API_KEY or NVIDIA_API_KEY …
Legitimate for some tools, but a skill touching secrets deserves a human look.
- mediumReads credential files or secret env vars
evals/evals.json:44
"[env-contract-and-cache] Local setup uses the repo env contract and LOCAL_NIM_CACHE: Output sources repo-root .env only if present, supports NVIDIA_API_KEY …
Legitimate for some tools, but a skill touching secrets deserves a human look.
Content sha256 6ab465c1db680f78… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Boltz2 NIM
Predict biomolecular structures and optional ligand affinity. Use this guide for first-pass hosted/local usage; load supplemental files only when needed:
references/api.md: exact endpoints, schemas, Docker flags, response fields.references/science.md: purpose, strengths, limitations, and handoffs.references/parameters.md: prediction, sampling, MSA, template, affinity tuning.references/validation.md: mmCIF, confidence, affinity, and chemistry checks.references/examples.md: compact hosted/local payload patterns.
Instructions
Read credentials from the environment only when needed. Check presence with
bool(os.getenv("NGC_API_KEY")); keep key values and Authorization headers out of
terminal output, logs, saved artifacts, and the final response. Avoid environment
dumps when diagnosing authentication. If the hosted key is absent, report the
missing variable before submitting a request.
Choose Mode
Ask only when context is unclear:
Hosted NVIDIA API or local Docker NIM?
- Hosted:
https://health.api.nvidia.com/v1/biology/mit/boltz2/predict - Local:
http://localhost:8000/biology/mit/boltz2/predict
Hosted requests use Authorization: Bearer $NGC_API_KEY. Supported local Docker
startup uses NGC_API_KEY (or NVIDIA_API_KEY via the preflight) for
registry login, entitlement checks, and first-run model downloads; pass it
into the container with -e NGC_API_KEY. Local inference requests use no
auth header after readiness. Warm-cache key-free startup varies by
image/version and should not be assumed.
Local Docker
For local setup answers, copy the preflight below before docker login,
docker run, readiness, and the no-auth local request. Do not invent a cache
default or drop the .env load or NVIDIA_API_KEY fallback.
set -a
[ -f .env ] && . ./.env
set +a
if [ -z "${NGC_API_KEY:-}" ] && [ -n "${NVIDIA_API_KEY:-}" ]; then
export NGC_API_KEY="$NVIDIA_API_KEY"
fi
: "${NGC_API_KEY:?Set NGC_API_KEY or NVIDIA_API_KEY}"
: "${LOCAL_NIM_CACHE:?Set LOCAL_NIM_CACHE}"
echo "$NGC_API_KEY" | docker login nvcr.io --username '$oauthtoken' --password-stdin
mkdir -p "${LOCAL_NIM_CACHE}"
chmod 755 "${LOCAL_NIM_CACHE}"
docker run --rm --name boltz2 --gpus all \
--shm-size=16G \
-e NGC_API_KEY \
-v "${LOCAL_NIM_CACHE}:/opt/nim/.cache" \
-p 8000:8000 \
nvcr.io/nim/mit/boltz2:1.6.0
Readiness:
until curl -sf http://localhost:8000/v1/health/ready; do sleep 5; done
First startup downloads about 30 GB of model weights.
Examples
Prediction Request
import os
import requests
HOSTED = True
url = (
"https://health.api.nvidia.com/v1/biology/mit/boltz2/predict"
if HOSTED else "http://localhost:8000/biology/mit/boltz2/predict"
)
headers = {"Content-Type": "application/json"}
if HOSTED:
api_key = os.getenv("NGC_API_KEY")
if not api_key:
raise SystemExit("NGC_API_KEY is required for the hosted API")
headers["Authorization"] = f"Bearer {api_key}"
payload = {
"polymers": [{
"id": "A",
"molecule_type": "protein",
"sequence": "MTEYKLVVVGACGVGKSALTIQLIQNHFVDEYDPT",
}],
"recycling_steps": 3,
"sampling_steps": 50,
"diffusion_samples": 1,
"step_scale": 1.638,
"output_format": "mmcif",
}
response = requests.post(url, headers=headers, json=payload, timeout=300)
response.raise_for_status()
result = response.json()
Payload essentials:
- Protein polymer:
{"molecule_type": "protein", "sequence": "..."}. - DNA/RNA polymer: add another polymer with
molecule_type"dna"or"rna". - Ligand by SMILES:
{"id": "L1", "smiles": "CC(=O)OC1=CC=CC=C1C(=O)O"}. - Ligand by CCD:
{"id": "L1", "ccd": "ATP"}. - Affinity: set
"predict_affinity": Trueon exactly one ligand; reportaffinity_pic50,affinity_pred_value, andaffinity_probability_binary. - Precomputed A3M MSA goes under the protein polymer. The A3M record uses
alignment,format, andrank; do not use a staledatafield.
protein_with_msa = {
"id": "A",
"molecule_type": "protein",
"sequence": "MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPT",
"msa": {"msa_search": {"a3m": {
"alignment": ">query\nMTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPT",
"format": "a3m",
"rank": 0,
}}},
}
Save And Report Output
Save every .cif artifact and read the confidence/affinity fields using the
snippet in references/examples.md under Save
Structures And Affinity. Visualize in PyMOL, ChimeraX, or UCSF Chimera. For
confidence/affinity sanity checks, read references/validation.md.
Limits And Troubleshooting
- Polymers/request: 12. Ligands/request: 20. Chain length: 4096 residues.
- Affinity prediction supports one ligand per request and adds runtime.
422: invalid sequence, invalid CCD/SMILES, malformed MSA, or multiple affinity ligands.- Local URL/auth: local path has no hosted auth header; wait on
/v1/health/ready. - Local startup: use
--gpus all,--shm-size=16G, and the/opt/nim/.cachemount.
Files
12- BENCHMARK.md
8a00e73cea6.8 KB - SKILL.md
afd96c38f85.4 KB - config/skillspector-baseline.yml
9faf95ea72865 B - evals/config.yml
ba2b8cf0ea117 B - evals/evals.json
931c0eb2e56.7 KB - evals/trigger_evals.json
498192f1412.3 KB - references/api.md
c8a62e0a8f5.7 KB - references/examples.md
01eb5749cb2.0 KB - references/parameters.md
131b8a9ecd1.7 KB - references/science.md
048f7a5ef31.7 KB - references/validation.md
0940c9a8ca1.3 KB - skill-card.md
5eb61173c64.1 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from NVIDIA/skills8
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.
Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.
Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.
Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.
Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.
Calibrates pre-recorded `cam_*.mp4` datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live RTSP streams to `amc-run-rtsp-calibration`.
Launch AutoMagicCalib microservice and web UI from NGC release images via Docker Compose. Use when user says 'deploy auto calibration', 'launch auto calibration', 'launch AMC', 'start MS+UI', or 'set up auto-magic-calib'. Requires NGC API key.
Related devops skillsscan passed
Build monitoring dashboards that answer real operator questions for Grafana, SigNoz, and similar platforms. Use when turning metrics into a working dashboard instead of a vanity board.
Configure deployment settings for /land-and-deploy.
Design, configure, troubleshoot, or review Cloudflare One Zero Trust and SASE deployments. Use cloudflare-one-migrations for migration planning from other vendors.
Deploy tRPC on AWS Lambda with awsLambdaRequestHandler() from @trpc/server/adapters/aws-lambda for API Gateway v1 (REST, APIGatewayProxyEvent) and v2 (HTTP, APIGatewayProxyEventV2), and Lambda Function URLs. Enable response streaming with awsLambdaStreamingRequestHandler() wrapped in awslambda.strea
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.
Deploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App Hosting. Use when deploying Next.js/Angular apps, configuring apphosting.yaml or firebase.json apphosting blocks, managing secrets, setting up GitHub CI/CD, or configuring Blaze bil