dgl  by dmlc

Python package for deep learning on graphs

created 7 years ago
14,010 stars

Top 3.6% on sourcepulse

GitHubView on GitHub
Project Summary

DGL (Deep Graph Library) is a Python package designed for deep learning on graphs, offering a framework-agnostic approach that integrates with PyTorch, MXNet, and TensorFlow. It targets researchers and practitioners in graph deep learning, providing tools for building, training, and deploying graph neural networks (GNNs) efficiently on large-scale graphs, including multi-GPU and multi-machine setups.

How It Works

DGL provides a high-performance graph object that can reside on CPU or GPU, bundling structural data and features. Its core strength lies in its customizable message-passing primitives, enabling efficient computation for various GNN architectures. The library supports distributed training and is optimized for communication, memory, and synchronization, allowing it to scale to billion-node graphs.

Quick Start & Requirements

  • Install: pip install dgl or conda install dgl
  • Prerequisites: Python, PyTorch/MXNet/TensorFlow. GPU support requires compatible CUDA drivers. Docker images are available on NVIDIA NGC.
  • Resources: Official documentation, tutorials, and examples are available.

Highlighted Details

  • Framework-agnostic design (PyTorch, MXNet, TensorFlow).
  • Scalable to billion-node graphs across multiple GPUs/machines.
  • Rich collection of example GNN models and layers.
  • Supports standard benchmarks like OGB and GNNBenchmarks.

Maintenance & Community

DGL is developed by NYU, NYU Shanghai, AWS Shanghai AI Lab, and AWS MXNet Science Team. Community channels include a Slack channel and a discussion forum.

Licensing & Compatibility

DGL uses the Apache License 2.0, which is permissive and generally compatible with commercial and closed-source applications.

Limitations & Caveats

While DGL is robust, users should consult the documentation for specific framework backend requirements and potential compatibility nuances. The rapid evolution of GNN research means staying updated with the latest DGL features and best practices is recommended.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
3
Star History
172 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.