ogb
Open Graph Benchmark
What it is and what it does
OGB is a collection of standardized benchmark datasets and tools for evaluating graph machine learning methods. It provides easy-to-use data loaders compatible with popular graph deep learning frameworks, handling dataset downloading, standardized train/validation/test splits, and unified evaluation metrics. The package covers three core graph ML tasks—node prediction, link prediction, and graph prediction—across datasets of varying scales (from single-GPU to multi-GPU) and diverse domains including scientific networks, social networks, and heterogeneous knowledge graphs.
The package is designed to enable reliable comparison of different graph neural network methods by providing consistent dataset preparation and evaluation protocols. Researchers use OGB to benchmark their models against established baselines on real-world graph problems, avoiding the friction of manual dataset curation and metric implementation.
Use it for:
- Benchmark a new graph neural network architecture against standardized datasets and compare results using OGB's unified evaluators.
- Download and prepare graph datasets with automatic splitting for training node, link, or graph classification models.
- Evaluate graph ML methods on datasets spanning different scales and domains without manual preprocessing.
- Reproduce published results on OGB benchmarks to validate research or baseline implementations.
- Access diverse real-world graphs from scientific, social, and knowledge-graph domains for algorithm development.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OGB provides standardized benchmark datasets, data loaders, and evaluators for graph machine learning tasks across node, link, and graph prediction problems.
Yes, if you are working on graph neural networks and need standardized benchmarks. The package is well-established with 2093 GitHub stars, has no known vulnerabilities, and provides genuine value through unified data loading and evaluation. However, maintenance is aging (last release 2023-04-07)—verify compatibility with your PyTorch and graph framework versions before relying on it for new research.
Install
ogb on PyPI
pip
pip install ogbuv
uv add ogbpoetry
poetry add ogbInstalling ogb
Before you install
Low install friction with a pure-Python wheel. Maintenance is aging—last release was 2023-04-07, over 1225 days ago—but the repository remains active with 2093 stars and recent commits. Dependencies are stable and widely used.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions. You must include a copy of the license and copyright notice.
Quickstart
pip install ogb
from ogb.graphproppred import PygGraphPropPredDataset
dataset = PygGraphPropPredDataset(name='ogbg-molhiv')
split_idx = dataset.get_idx_split()
Requires PyTorch>=1.6 and either DGL>=0.5.0 or torch-geometric>=2.0.2 installed separately; OGB itself does not bundle these.
Verify before relying
- Whether the aging maintenance status affects compatibility with recent PyTorch or graph framework versions.
- Current test coverage and whether benchmarks remain aligned with modern graph ML research standards.
- Actual monthly download volume and whether the 2093 GitHub stars reflect active research adoption.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — torch, numpy, tqdm, scikit-learn, pandas, six, urllib3, outdated |
| Maintenance | aging — 1,225 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,963/month — #12,227 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ogb-1.3.6-py3-none-any.whl
Keywords: pytorch, graph machine learning, graph representation learning, graph neural networks
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
pytdcPyTDC provides unified access to multimodal…
permissive · top 15,000 on PyPI
torch-geometricPyTorch Geometric is a library for building and…
permissive · top 5,000 on PyPI
clip-benchmarkEvaluates CLIP-like vision-language models on…
permissive · top 15,000 on PyPI
mtebMTEB evaluates text and multimodal embeddings…
permissive · top 5,000 on PyPI
recboleRecBole provides a unified framework for…
permissive · top 15,000 on PyPI
rf100vlProvides programmatic access to RF100-VL, a…
permissive · top 15,000 on PyPI
objaverseDownloads and processes Objaverse-XL, an open…
permissive · top 15,000 on PyPI
benchpotsBenchPOTS provides standardized preprocessing…
permissive · top 15,000 on PyPI
datazetsDatazets provides a simple interface to…
permissive · top 15,000 on PyPI
arckitLoad, visualize, and evaluate solutions on the…
permissive · top 15,000 on PyPI