CLI and local serving
Use this sub-skill when the task is to plan or operate the package's two
console entry points, construct a command without executing it, or explain the
local Gradio application's entity and cache lifecycle.
Route first
- For checkpoint format, model construction,
init_and_load, tensor shapes, or
inference internals, use model-inference.
- For sequence-to-
Alphafold3Input semantics, ligand chemistry, ion handling,
or output structure conversion, use
input-representation.
- Do not treat this sub-skill as a production deployment or public-server
hardening guide; the app launches a local Gradio UI with its own defaults.
Operating path
- Confirm that the target checkpoint is an existing regular file and that the
package entry point is available.
- Choose the plain CLI for a non-interactive run. Repeat
--protein, --rna,
and --dna once per entity; pass Click's boolean value explicitly when
using --use-cuda.
- Build and inspect a command with
build_cli_command.py. The helper validates
inputs and prints only a shell-quoted command; it never imports the package,
runs inference, creates output directories, or launches Gradio.
- Use the app only when an interactive local UI is wanted. Treat its cache
directory as disposable because startup removes the whole directory before
creating it again.
- Use the bundled references for exact flags, entity normalization, output
formats, CUDA fallback, cache/session cleanup, and the precision limitation.
The CLI writes a structure as mmCIF. The app writes per-session PDB files for
its molecule viewer. Neither entry point supplies a dry-run inference mode.
The app's --precision argument is accepted for compatibility/documentation,
but the current executable code does not convert model device or dtype; do not
claim that it enables mixed precision, quantization, or CUDA.
Bundled material
- CLI reference — exact entry points, flags,
Click syntax, repeated entities, and output behavior.
- Serving workflow — safe preflight,
non-interactive command construction, app lifecycle, and synthetic cases.
- Troubleshooting — checkpoint, input,
device, path, cache, UI normalization, and precision failure recovery.
- Safe command builder — validates a command
specification and prints a shell-safe command without running it.
1---2name: cli-serving3description: "Operate the alphafold3_pytorch CLI and alphafold3_pytorch_app4 Gradio entry points, construct safe multimolecule commands, and diagnose5 checkpoint, device, output, entity, cache, and precision behavior."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/cli-serving9 disco-role: operating10license: MIT11---1213# CLI and local serving1415Use this sub-skill when the task is to plan or operate the package's two16console entry points, construct a command without executing it, or explain the17local Gradio application's entity and cache lifecycle.1819## Route first2021- For checkpoint format, model construction, `init_and_load`, tensor shapes, or22 inference internals, use [model-inference](../model-inference/SKILL.md).23- For sequence-to-`Alphafold3Input` semantics, ligand chemistry, ion handling,24 or output structure conversion, use25 [input-representation](../input-representation/SKILL.md).26- Do not treat this sub-skill as a production deployment or public-server27 hardening guide; the app launches a local Gradio UI with its own defaults.2829## Operating path30311. Confirm that the target checkpoint is an existing regular file and that the32 package entry point is available.332. Choose the plain CLI for a non-interactive run. Repeat `--protein`, `--rna`,34 and `--dna` once per entity; pass Click's boolean value explicitly when35 using `--use-cuda`.363. Build and inspect a command with37 [`build_cli_command.py`](scripts/build_cli_command.py). The helper validates38 inputs and prints only a shell-quoted command; it never imports the package,39 runs inference, creates output directories, or launches Gradio.404. Use the app only when an interactive local UI is wanted. Treat its cache41 directory as disposable because startup removes the whole directory before42 creating it again.435. Use the bundled references for exact flags, entity normalization, output44 formats, CUDA fallback, cache/session cleanup, and the precision limitation.4546The CLI writes a structure as mmCIF. The app writes per-session PDB files for47its molecule viewer. Neither entry point supplies a dry-run inference mode.48The app's `--precision` argument is accepted for compatibility/documentation,49but the current executable code does not convert model device or dtype; do not50claim that it enables mixed precision, quantization, or CUDA.5152## Bundled material5354- [CLI reference](references/cli-reference.md) — exact entry points, flags,55 Click syntax, repeated entities, and output behavior.56- [Serving workflow](references/serving-workflow.md) — safe preflight,57 non-interactive command construction, app lifecycle, and synthetic cases.58- [Troubleshooting](references/troubleshooting.md) — checkpoint, input,59 device, path, cache, UI normalization, and precision failure recovery.60- [Safe command builder](scripts/build_cli_command.py) — validates a command61 specification and prints a shell-safe command without running it.