forked from IntelLabs/SAR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pr-staging-branch' into single-node-merge-branches
- Loading branch information
Showing
37 changed files
with
2,664 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: SAR tests | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sar_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Pull SAR | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pytest | ||
python -m pip install oneccl_bind_pt -f https://developer.intel.com/ipex-whl-stable-cpu | ||
python setup.py install | ||
- name: Run pytest | ||
run: | | ||
set +e | ||
python -m pytest tests/ -sv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Python cache | ||
__pycache__/ | ||
*.pyc | ||
|
||
# Jupyter notebook checkpoints | ||
.ipynb_checkpoints/ | ||
|
||
# Compiled Python files | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
__pycache__/ | ||
|
||
# Build directories | ||
build/ | ||
dist/ | ||
*.egg-info/ | ||
|
||
|
||
# Package distribution | ||
*.egg | ||
*.egg-info | ||
|
||
# IDE and editor files | ||
.vscode/ | ||
.idea/ | ||
*.iml | ||
*.iws | ||
*.ipr | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Datasets and partitions | ||
dataset/ | ||
datasets/ | ||
partition_data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## SIGN: Scalable Inception Graph Neural Networks | ||
|
||
Original script: https://github.com/dmlc/dgl/tree/master/examples/pytorch/sign | ||
|
||
Provided `train_sign_with_sar.py` script is an example how to intergrate SAR to preprocess graph data for training. | ||
|
||
### Results | ||
Obtained results for two partitions: | ||
- ogbn-products: 0.7832 | ||
- reddit: 0.9639 | ||
|
||
### Run command: | ||
|
||
``` | ||
python train_sign_with_sar.py --partitioning-json-file partition_data/reddit.json --ip-file ip_file --backend ccl --rank 0 --world-size 2 | ||
python train_sign_with_sar.py --partitioning-json-file partition_data/reddit.json --ip-file ip_file --backend ccl --rank 1 --world-size 2 | ||
``` |
Oops, something went wrong.