ppi-workflows
Operate the DeepGCNs PPI node-classification workflow with exact train/test flags, residual/plain/dense architecture choices, PyG loader and DataParallel boundaries, micro/macro F1 semantics, and checkpoint alignment without downloading data or running full training.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ppi-workflows
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate the DeepGCNs PPI node-classification workflow with exact train/test flags, residual/plain/dense architecture choices, PyG loader and DataParallel boundaries, micro/macro F1 semantics, and checkpoint alignment without downloading data or running full training.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/data-and-metrics.md5.7 KB
- 参考文档references/troubleshooting.md8.4 KB
- 参考文档references/workflows.md10.8 KB
03 SKILL.md 正文
PPI workflows
Use this skill for the source-evidenced protein-protein interaction (PPI) node classification workflow, including its residual/plain/dense backbones and F1-based evaluation. This is a reference-only operating skill. The original source example is evidence only, not a runtime dependency: use only a caller-supplied PPI entry point and staged local inputs. Do not copy or launch the full training program, download PPI data, fetch external-drive checkpoints, or claim that a CPU smoke reproduces the published GPU result.
Route first
- PPI node classification: read workflows.md, then validate the data and metric contract in data-and-metrics.md.
- Generic GraphConv, EdgeConv, MRConv, GAT/GIN/GCN/SAGE construction, KNN, GENConv, or block API questions: route to the sibling graph-layers skill. Keep this skill's architecture choices at the task level.
- OGB proteins or another OGB benchmark: route to ogb-workflows. OGB proteins is not the PyG PPI dataset and does not share its split, feature, label, or checkpoint conventions.
- ModelNet40, S3DIS, PartNet, or point-cloud layouts: route to the sibling point-cloud workflow skill.
Safe operating sequence
- Establish the requested phase (
trainortest), prepared local data root, feature and label dimensions, device/backend, loader mode, architecture tuple (block,conv,n_filters,n_blocks, andn_heads), and checkpoint path if any. - Verify that the data and checkpoint were staged by the caller. The upstream PyG dataset can auto-download when files are absent, but this skill never permits that side effect. Do not run a download or embed a downloader.
- Check the exact flags and source-observed defaults in workflows.md. In particular, do not rely on the README's prose default for filter width: the parser's default is authoritative for the source workflow.
- Align the checkpoint basename and tensor shapes with the requested model
before loading. A checkpoint is not interchangeable merely because it is
labelled
ppi. - Prefer a tiny, local, synthetic forward/parser check when validating an environment. Treat full PPI training, validation, and benchmark numbers as GPU/data/checkpoint-dependent prerequisites, not as bundled actions.
- Report micro F1 separately from macro F1. The source path computes micro F1 only; it does not produce macro F1.
Operating invariants
- PPI examples use static sparse graph convolutions over PyG
edge_index. Node features have shape[num_nodes, num_features]; output logits have shape[num_nodes, num_classes]. The model obtainsdata.batch, but the static PPI forward path does not use it to construct a graph. - The standard PyG PPI contract is 50 floating-point node features and 121
binary gene-ontology labels.
n_classesis inferred from the test dataset; it is not a CLI flag. - The loss is
BCEWithLogitsLoss. A positive prediction is formed by testing the raw logit without > 0, equivalent to a sigmoid threshold of 0.5. - The documented score is micro F1 (
average="micro") over multilabel node predictions. Macro F1 (average="macro") is a different statistic and must not be inferred from the source'smF1/m-F1log label. - Checkpoint architecture identity is
ppi-{block}-{conv}-{n_blocks}-{n_filters}, optionally followed by-{postname}. The phase suffix is_val_bestor_test_best; see the checkpoint section in the references for the save-directory date component. --multi_gpusselects PyGDataListLoaderfor training and wraps the model with PyGDataParallel. The source constructs ordinaryDataLoaderobjects for validation/test, so multi-GPU evaluation is a compatibility boundary and must be checked rather than assumed.
Scope boundary
The references preserve exact source-observed commands, flags, data fields, metric behavior, checkpoint naming, and failure modes without bundling the training implementation. No PPI configuration checker is included: the parser has source-era boolean and path behavior, while a safe checker that faithfully validates data/checkpoint contents would either duplicate the training stack or invite data access. This explicit reference-only choice keeps the runtime tree offline-safe and makes the unsupported parts visible.
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).