ogb-workflows
Run and adapt the repository's OGB node, graph, and link benchmark workflows with DeeperGCN/GENConv, partitioned or batched data, feature encoders, reversible proteins models, and the optional DGL RevGAT teacher/student path. Use this skill for OGB task configuration, checkpoint contracts, memory boundaries, and safe synthetic validation; route generic layer APIs to graph-layers, PPI to ppi-workflows, and point-cloud tasks to point-cloud-workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ogb-workflows
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Run and adapt the repository's OGB node, graph, and link benchmark workflows with DeeperGCN/GENConv, partitioned or batched data, feature encoders, reversible proteins models, and the optional DGL RevGAT teacher/student path. Use this skill for OGB task configuration, checkpoint contracts, memory boundaries, and safe synthetic validation; route generic layer APIs to graph-layers, PPI to ppi-workflows, and point-cloud tasks to point-cloud-workflows.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/data-and-checkpoints.md4.9 KB
- 参考文档references/ogb-tasks.md7.4 KB
- 参考文档references/reversible-ogb.md5.4 KB
- 参考文档references/troubleshooting.md5.4 KB
- 脚本scripts/ogb_model_smoke.py5.8 KB
03 SKILL.md 正文
OGB workflows
Use this skill when the request names OGB, ogbn-*, ogbg-*, ogbl-collab,
DeeperGCN, GENConv, RevGNN, RevGAT, or graph knowledge distillation. It is an
operating guide for the documented workflows, not a promise to download data or
reproduce a large benchmark in the current session.
Route first
- Node classification:
ogbn-arxivis full-batch;ogbn-productsuses random induced partitions;ogbn-proteinsuses partitioning and edge-derived initial features. Use ogb-tasks.md. - Graph property prediction:
ogbg-molhiv,ogbg-molpcba, andogbg-ppause PyG graph batches, categorical/edge feature handling, and graph pooling. - Link prediction:
ogbl-collabuses a full node encoder plus a batched MLP link predictor and Hits@10/50/100 evaluation. - Memory-efficient proteins: use reversible-ogb.md only when the user explicitly needs the RevGCN backbone or depth/memory tradeoff.
- DGL RevGAT: optional and separately gated; it needs a DGL-compatible CUDA environment. Do not substitute it for the PyG GENConv workflows.
- Route a request about a layer constructor, aggregation implementation, KNN, or generic reversible primitive to graph-layers. Route PPI to ppi-workflows and point-cloud datasets to point-cloud-workflows.
Safe operating sequence
- Confirm dataset, task type, metric, device, available cached data, and checkpoint availability. A CPU model smoke does not establish large-graph memory or benchmark accuracy.
- Start with the task-specific defaults and change only the flags needed by
the requested comparison. The task parsers use
conv=gen; the liveGENConvAPI defaults are documented in the references and are not always identical to task-parser defaults. - Prepare the data without implicit network access. OGB constructors may download when data is absent; stop and ask for an approved, already-cached dataset location rather than allowing a bundled helper to fetch it.
- Use the command shape only from the task reference. Native task modules use directory-local imports; an independently staged implementation must provide an equivalent task-local entrypoint rather than relying on arbitrary dotted imports.
- Save and load the complete checkpoint expected by the task. Check the model
and predictor separately for
ogbl-collab; usemodel_state_dictfrom the repository's standard training checkpoints. Never infer a result from a checkpoint whose architecture flags differ. - For a bounded check, run
scripts/ogb_model_smoke.py --helpand then its tiny synthetic validation. It never creates a dataset, accesses a network, or loads a checkpoint.
GENConv and block choices
The task models use sparse GENConv inside plain, res, or res+ blocks;
dense is advertised by some parsers but the OGB model implementations raise
NotImplementedError. The important knobs are --gcn_aggr, --t, --p,
--y, --learn_t, --learn_p, --learn_y, --msg_norm,
--learn_msg_scale, --norm, and --mlp_layers. Edge-aware molecular and
protein models additionally use --conv_encode_edge; molecular models use
--add_virtual_node and --graph_pooling.
Do not silently carry generic layer assumptions into a benchmark workflow: use graph-layers for constructor-level semantics, shape debugging, or unsupported convolution alternatives. See the four bundled references for exact task flags, data layouts, checkpoints, reversible memory, and failure diagnosis.
Evidence boundary
Numbers printed in the README-derived tables are documented benchmark results, tied to the repository's historical PyTorch/PyG environment and external pretrained files. They are not results verified by this skill. The bundled helper provides only a verified tiny synthetic smoke when it passes; it does not validate OGB splits, ROC-AUC/accuracy/Hits, GPU memory, or training quality. The selected inspection environment had PyTorch 2.11.0+cu128, PyG 2.8.0.post1, matching scatter/cluster extensions, and OGB 1.3.6; DGL was not selected. Modern PyG also has a known incompatibility in the repository's SAGE wrapper; do not present that route as supported.
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).