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

Perforated AI OGBN Example #9926

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

Conversation

RorryB
Copy link
Contributor

@RorryB RorryB commented Jan 8, 2025

This PR is to include an example of how Perforated Backpropagation can be used to improve pytorch_geometric models. It adds on the previous PR which added a scheduler, 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 .
pip install safetensors
pip install perforatedai

Ran original with:

CUDA_VISIBLE_DEVICES=0 python examples/ogbn_train_perforatedai.py --dataset ogbn-products --batch_size 128

Results:

Test Accuracy: 77.19%

Run PAI with:

PAIEMAIL=YourEmail PAITOKEN=YourToken CUDA_VISIBLE_DEVICES=0 python ogbn_train_perforatedai.py --dataset ogbn-products --batch_size 128 --saveName ogbnPAI

Results:

Test Accuracy: 78.37%

@RorryB RorryB requested a review from wsad1 as a code owner January 8, 2025 22:01
@puririshi98
Copy link
Contributor

puririshi98 commented Jan 28, 2025

ERROR: Could not find a version that satisfies the requirement perforatedai (from versions: none)

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python -m pip install --upgrade pip
ERROR: No matching distribution found for perforatedai

using the copypastes given inside your fork

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.

2 participants