question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

[Roadmap] GraphGym via PyTorch Lightning and Hydra ๐Ÿš€

See original GitHub issue

๐Ÿš€ The feature, motivation and pitch

The overall goal of this roadmap is to ensure a tighter connection between PyG core and the GraphGym configuration manager. Furthermore, an additional goal is to not re-invent the wheel in GraphGym and make use of popular open-source frameworks whenever applicable, e.g., for configuration managament, training, logging, and autoML.

As such, this roadmap structures itself into different components such as general improvements (e.g., tighter connection between PyG and GraphGym), PyTorch Lightning integration, and Hydra integration as our configuration tool.

General Roadmap

  • Add register functionality to models in PyG core
  • Remove any layer/model definition of GraphGym and move it to PyG core
  • Expose a graphgym bash script in a bin/ folder - GraphGym usage should not require manually cloning of PyG
  • Better and more user-friendly documentation
  • Adding HeteroData support
  • Adding pooling layers
  • โ€ฆ

PyTorch Lightning Integration

GraphGym training experience can be improved for scalability, mixed precision support, logging and checkpoints with PyTorch Lightning integration.

  • Integrate a LightningModule into GraphGym
  • Update train method with PL Trainer and the LightningModule implementations
  • Refactor load_ckpt and save_ckpt with PL checkpoint save and load method
  • Integrate LightningDataset, LightningNodeData and LightningLinkData modules
  • โ€ฆ

Hydra Integration

Users of PyG should be able to write GraphGym configurations by being able to make full use of PyG functionality. In particular, we want to allow access to any dataset, any data transformation pipeline, and any GNN layer/model. For this, we need to follow a structured/composable configuration, e.g., as introduced here

defaults:
  - dataset: KarateClub
  - transform@dataset.transform:
      - NormalizeFeatures
      - AddSelfLoops
  - model: GCN
  - optimizer: Adam
  - lr_scheduler: ReduceLROnPlateau
  - _self_

model:
  in_channels: 34
  out_channels: 4
  hidden_channels: 16
  num_layers: 2
  • Use variable interpolation, e.g., model.in_channels = ${dataset.num_features} and model.out_channels = ${dataset.num_classes}
  • โ€ฆ

Weights & Biases Integration (TBD)

  • โ€ฆ

AutoML (TBD)

  • โ€ฆ

cc @pyg-team/biotax-team

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shenoynikhilcommented, Oct 25, 2022

Iโ€™ll spend sometime going through the links you shared and start a draft PR regarding this. Hope to get your guidance on it as well ๐Ÿ˜ƒ.

1reaction
rusty1scommented, Oct 25, 2022

This is amazing. We should collect some information about how we want to integrate Hydra into GraphGym, as I believe we need a new config layout. I have started something a long time ago but did not finish it, see here, here and here. Would very much appreciate some advice and insights from you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keeping Up with PyTorch Lightning and Hydra โ€” 2nd Edition
How I shrank my training script by 50% using the new features from PyTorch lightning 1.1 and Hydra 1.0. Short note on the...
Read more >
Getting Started with PyTorch Lightning - KDnuggets
Introduction to PyTorch Lightning and how it can be used for the model ... iterating through batches of data for training and validation....
Read more >
[P] Pytorch Lightning + Hydra + Tensorboard project template ...
I recently created a Deep Learning template on Github for project that use Pytorch Lightning, Hydra and Tensorboard.
Read more >
Issues - pytorch_geometric - PyG - Geeks
Graph Neural Network Library for PyTorch - PyG. ... [Roadmap] GraphGym via PyTorch Lightning and Hydra ๐Ÿš€ ... [Roadmap] GNN Explainability Support ๐Ÿš€....
Read more >
Issues ยท pyg-team/pytorch_geometric ยท GitHub
[Roadmap] GraphGym via PyTorch Lightning and Hydra ๐Ÿš€. #5132 opened on Aug 4 by rusty1s. Open 2 ยท [Roadmap] Temporal Graph Support ๐Ÿš€....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found