AGENT SKILL

cli-and-inference

Build safe Protenix prediction commands and debug CLI inference setup, model selection, output layout, cache/checkpoint expectations, and user-facing kernel choices.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
cli-and-inference
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Build safe Protenix prediction commands and debug CLI inference setup, model selection, output layout, cache/checkpoint expectations, and user-facing kernel choices.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Protenix CLI and Inference

Use this sub-skill when a user needs help with protenix pred, root CLI help, prediction model selection, inference flags, cache/checkpoint side effects, output locations, or command-shape diagnosis. It is designed for planning and debugging without launching expensive inference.

Fast Triage

  1. Confirm the installed command shape first: protenix --help and protenix pred --help. The verified console commands are pred, json, msa, mt, and prep.
  2. For command planning, use the bundled no-run builder: python sub-skills/cli-and-inference/scripts/build_protenix_pred_command.py --input input.json --out-dir output --print-warnings. It prints a shell-quoted protenix pred command and never imports or runs Protenix.
  3. Prefer explicit boolean values for protenix pred: use --use_template true, --use_rna_msa false, and similar value pairs rather than bare flags.
  4. Start routine prediction commands from --model_name protenix_base_default_v1.0.0 --use_default_params true unless the user explicitly needs Protenix-v2, a 2025 cutoff model, or a mini/tiny smoke-test shape.
  5. Set only user-provided data/cache roots at runtime. Do not invent checkpoint paths; Protenix derives the checkpoint directory from the runtime PROTENIX_ROOT_DIR environment variable and auto-downloads needed cache/checkpoint files when missing.
  6. For CUDA/kernel failures, first build a no-run fallback command with --trimul-kernel torch --triatt-kernel torch; route deeper kernel installation, CUTLASS, cuEquivariance, or config surgery to ../advanced-model-configuration/SKILL.md.

References

  • references/cli-reference.md covers root command registry facts, pred flag names, boolean handling, and no-run command construction.
  • references/model-selection.md covers model capabilities, default parameters, seed behavior, dtype, TFG routing, cache/checkpoint expectations, and user-facing kernel choices.
  • references/output-layout.md covers prediction output directories, sample/confidence file naming, atom-confidence output, and ERR behavior.
  • references/troubleshooting.md covers missing CLI/version mismatches, accidental launches, missing caches/checkpoints, preprocessing dependencies, kernel errors, output surprises, and feature/model mismatches.

Route Elsewhere

  • Input JSON schemas, entity fields, ligands, constraints, modelSeeds, templatesPath, rna_msa fields, and example JSON interpretation belong to ../input-data-and-features/SKILL.md.
  • Protein MSA, template search, RNA MSA search, external databases, FASTA inputs, and preprocessing workflows belong to ../msa-template-and-prep/SKILL.md.
  • Training, finetuning, training data preparation, torchrun training, and dataset configs belong to ../training-and-data-pipeline/SKILL.md.
  • Deep kernel installation/debugging, model config internals, TFG internals, and backend performance tuning belong to ../advanced-model-configuration/SKILL.md.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351