ogb
Routes OGB graph dataset, evaluator, conversion, and export workflows.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ogb
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes OGB graph dataset, evaluator, conversion, and export workflows.
- disable-model-invocation
- true
02 资源文件 9
- 参考文档references/api-overview.md3.7 KB
- 参考文档references/dataset-catalog.md3.0 KB
- 参考文档references/installation.md1.6 KB
- 参考文档references/repo-provenance.md1020 B
- 参考文档references/repo-routing-metadata.json324 B
- 参考文档references/troubleshooting.md3.5 KB
- 脚本scripts/check-install.py1.9 KB
- 脚本scripts/list-datasets.py1.3 KB
- 脚本scripts/smiles2graph-smoke.py467 B
03 SKILL.md 正文
OGB
Use this skill for the Open Graph Benchmark package when the task is about loading OGB datasets, choosing an evaluator, converting molecules or code into OGB graphs, or packaging a new OGB-style dataset.
Read this skill when
- The request names
ogb,ogbg-*,ogbn-*,ogbl-*,PCQM4M,MAG240M,WikiKG90M, orDatasetSaver. - The task asks for
GraphPropPredDataset,NodePropPredDataset,LinkPropPredDataset,PCQM4MDataset,PCQM4Mv2Dataset,MAG240MDataset,WikiKG90MDataset, or the matching evaluator. - The task mentions
smiles2graph,py2graph,meta_dict.pt,mapping/,split_dict.pt,test-dev,test-challenge, or OGB submission files. - The task asks for PyG or DGL dataset wrappers and the corresponding backend packages are installed.
Install
python -m pip install -e .
If you need the molecular helper, install rdkit as well. If you need the PyG
or DGL wrapper classes, install the matching optional backend package too.
Start here
- Read
references/api-overview.mdfor the public class map and the common loader/evaluator shapes. - Read
references/installation.mdfor the package install command and the optional backend notes. - Read
references/dataset-catalog.mdwhen you need the exact dataset names or metrics. - Read
references/troubleshooting.mdwhen imports fail, downloads are interrupted, or shapes do not match.
Route by task family
- Use
sub-skills/graph-property-prediction/SKILL.mdforogbg-*, molecular graph workflows,smiles2graph, andogbg-code2. - Use
sub-skills/node-property-prediction/SKILL.mdforogbn-*datasets and node-level evaluators. - Use
sub-skills/link-property-prediction/SKILL.mdforogbl-*datasets, ranking metrics, and knowledge-graph completion. - Use
sub-skills/lsc-benchmarks/SKILL.mdfor PCQM4M, MAG240M, WikiKG90M, submission files, and large-scale benchmark notes. - Use
sub-skills/dataset-contribution/SKILL.mdforDatasetSaverand OGB-compatible dataset packaging.
Quick install check
After installing the package, run the bundled smoke helper:
python scripts/check-install.py
If you need the molecule helper, also run:
python scripts/smiles2graph-smoke.py
What this skill does not do
- It does not tell you to run the original repository's heavy training examples as the runtime skill.
- It does not depend on the source checkout remaining available once the skill is generated.
- It does not treat the vendored WikiKG90M external framework tree as bundled runtime content.
Useful bundled helpers
scripts/check-install.py: verifies the installed package, optional backend presence, and core imports.scripts/list-datasets.py: prints the dataset catalog from the installed package metadata.scripts/smiles2graph-smoke.py: runs a tiny molecule-to-graph smoke check.
Provenance and routing
Read references/repo-provenance.md to see
which repo state this skill was distilled from, and
references/repo-routing-metadata.json
for the router scenario metadata used during import.
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).