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
- 参考文档references/cli-reference.md7.9 KB
- 参考文档references/model-selection.md6.5 KB
- 参考文档references/output-layout.md4.2 KB
- 参考文档references/troubleshooting.md8.7 KB
- 脚本scripts/build_protenix_pred_command.py7.6 KB
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
- Confirm the installed command shape first:
protenix --helpandprotenix pred --help. The verified console commands arepred,json,msa,mt, andprep. - 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-quotedprotenix predcommand and never imports or runs Protenix. - Prefer explicit boolean values for
protenix pred: use--use_template true,--use_rna_msa false, and similar value pairs rather than bare flags. - Start routine prediction commands from
--model_name protenix_base_default_v1.0.0 --use_default_params trueunless the user explicitly needs Protenix-v2, a 2025 cutoff model, or a mini/tiny smoke-test shape. - Set only user-provided data/cache roots at runtime. Do not invent checkpoint paths; Protenix derives the checkpoint directory from the runtime
PROTENIX_ROOT_DIRenvironment variable and auto-downloads needed cache/checkpoint files when missing. - 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.mdcovers root command registry facts,predflag names, boolean handling, and no-run command construction.references/model-selection.mdcovers model capabilities, default parameters, seed behavior, dtype, TFG routing, cache/checkpoint expectations, and user-facing kernel choices.references/output-layout.mdcovers prediction output directories, sample/confidence file naming, atom-confidence output, andERRbehavior.references/troubleshooting.mdcovers 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_msafields, 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
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.
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.
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.
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.
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.
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).