Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Sage OGBN Example with Perforated Backpropagation #9877

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RorryB
Copy link

@RorryB RorryB commented Dec 17, 2024

This PR is to include an example of how Perforated Backpropagation can be used to improve pytorch_geometric models. As well as adding a scheduler to the original example. Both of which improve upon the original results.

Run docker from torch_geometric directory

docker run --gpus all -i --shm-size=8g -v .:/pai -w /pai -t nvcr.io/nvidia/pyg:24.11-py3 /bin/bash

Within Docker

pip install -e .
cd examples
pip install PAI wheel file

Run original with:

CUDA_VISIBLE_DEVICES=0 python ogbn_train_original.py --dataset ogbn-products --batch_size 128

Results:

Test Accuracy: 75.52%

Run original scheduler with:

CUDA_VISIBLE_DEVICES=0 python ogbn_train_scheduler.py --dataset ogbn-products --batch_size 128

Results:

Test Accuracy: 77.51%

Run PAI with:

CUDA_VISIBLE_DEVICES=0 python ogbn_trainPAI.py --dataset ogbn-products --batch_size 128 --saveName ogbnPAI

Results:

Test Accuracy: 78.10%

…ng, that file with an added scheduler, and the scheduler file with Perforated Backpropagation
@RorryB RorryB requested a review from wsad1 as a code owner December 17, 2024 20:09
@RorryB RorryB closed this Dec 18, 2024
@RorryB RorryB reopened this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant