Skip to content

Commit 2035cd8

Browse files
Prepare sdk release 3.3 (#36)
All changes for 3.3 SDK
1 parent d0af744 commit 2035cd8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4964
-976
lines changed
Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
# Copyright (c) 2022 Graphcore Ltd. All rights reserved.
2+
3+
_common_source_repository: &_common_source_repository
4+
origin: git@github.com:graphcore/examples-internal.git
5+
ref: sdk-release-3.3.0
6+
7+
_common_target_repository: &_common_target_repository
8+
origin: notebooks/
9+
ref: null
10+
11+
12+
pyg-cluster-GCN:
13+
source:
14+
paths:
15+
- path: gnn/cluster_gcn/pytorch_geometric/node_classification_with_cluster_gcn.ipynb
16+
- path: gnn/cluster_gcn/pytorch_geometric/requirements.txt
17+
repository:
18+
<<: *_common_source_repository
19+
prefix: gnn/cluster_gcn/pytorch_geometric
20+
target:
21+
renames: {node-prediction/node_classification_with_cluster_gcn.ipynb: node-prediction/cluster_gcn_training.ipynb}
22+
repository:
23+
<<: *_common_target_repository
24+
prefix: node-prediction
25+
26+
27+
pyg-message-passing:
28+
source:
29+
paths:
30+
- path: gnn/message_passing/pytorch_geometric/molecular_property_prediction_with_gin.ipynb
31+
- path: gnn/message_passing/pytorch_geometric/model.py
32+
- path: gnn/message_passing/pytorch_geometric/requirements.txt
33+
repository:
34+
<<: *_common_source_repository
35+
prefix: gnn/message_passing/pytorch_geometric
36+
target:
37+
renames: {graph-prediction/gin-molecular-prediction/molecular_property_prediction_with_gin.ipynb: graph-prediction/gin-molecular-prediction/gin_training.ipynb}
38+
repository:
39+
<<: *_common_target_repository
40+
prefix: graph-prediction/gin-molecular-prediction/
41+
42+
pyg-schnet:
43+
source:
44+
paths:
45+
- path: gnn/schnet/pytorch_geometric/molecular_property_prediction_with_schnet.ipynb
46+
- path: gnn/schnet/pytorch_geometric/utils.py
47+
- path: gnn/schnet/pytorch_geometric/requirements.txt
48+
repository:
49+
<<: *_common_source_repository
50+
prefix: gnn/schnet/pytorch_geometric/
51+
target:
52+
renames: {graph-prediction/schnet-molecular-prediction/molecular_property_prediction_with_schnet.ipynb: graph-prediction/schnet-molecular-prediction/schnet_training.ipynb }
53+
repository:
54+
<<: *_common_target_repository
55+
prefix: graph-prediction/schnet-molecular-prediction/
56+
57+
pyg-tgn:
58+
source:
59+
paths:
60+
- expression: '*'
61+
path: gnn/tgn/pytorch
62+
recursive: true
63+
excludes:
64+
- path: gnn/tgn/pytorch/README.md
65+
- path: gnn/tgn/pytorch/.gitignore
66+
- expression: '*'
67+
path: gnn/tgn/pytorch/.ci
68+
recursive: true
69+
repository:
70+
<<: *_common_source_repository
71+
prefix: gnn/tgn/pytorch
72+
target:
73+
renames: {}
74+
repository:
75+
<<: *_common_target_repository
76+
prefix: link-prediction/temporal-graph-networks
77+
78+
pyg-nbfnet-notebook:
79+
source:
80+
paths:
81+
- path: gnn/nbfnet/pytorch_geometric/NBFNet_training.ipynb
82+
- path: gnn/nbfnet/pytorch_geometric/requirements.txt
83+
repository:
84+
<<: *_common_source_repository
85+
prefix: gnn/nbfnet/pytorch_geometric
86+
target:
87+
renames: {}
88+
repository:
89+
<<: *_common_target_repository
90+
prefix: link-prediction/NBFNet-for-knowledge-graphs/
91+
92+
pyg-nbfnet-code:
93+
source:
94+
paths:
95+
- expression: '*'
96+
path: gnn/nbfnet/pytorch_geometric
97+
recursive: true
98+
excludes:
99+
- path: gnn/nbfnet/pytorch_geometric/NBFNet_training.ipynb
100+
- expression: '*'
101+
path: gnn/nbfnet/pytorch_geometric/.ci
102+
recursive: true
103+
repository:
104+
<<: *_common_source_repository
105+
prefix: gnn/nbfnet/pytorch_geometric
106+
target:
107+
renames: {}
108+
repository:
109+
<<: *_common_target_repository
110+
prefix: link-prediction/NBFNet-for-knowledge-graphs/nbfnet_utils/
111+
112+
# BENCHMARK
113+
pyg-benchmark:
114+
source:
115+
paths:
116+
- expression: '*'
117+
path: benchmarks/
118+
recursive: true
119+
repository:
120+
origin: https://github.com/graphcore/poppyg.git
121+
ref: adams/benchmark_gather_scatter
122+
prefix: benchmarks/
123+
target:
124+
renames: {benchmarks/benchmarking_message_passing_on_the_ipu.ipynb: benchmarks/benchmarking_gnn_on_ipus.ipynb}
125+
repository:
126+
<<: *_common_target_repository
127+
prefix: ipu-speed-advantage/
128+
129+
# tutorials
130+
pyg-1_at_a_glance:
131+
source:
132+
paths:
133+
- path: tutorials/tutorials/pytorch_geometric/1_at_a_glance/1_at_a_glance.ipynb
134+
repository:
135+
<<: *_common_source_repository
136+
prefix: tutorials/tutorials/pytorch_geometric/1_at_a_glance/
137+
target:
138+
renames: {}
139+
repository:
140+
<<: *_common_target_repository
141+
prefix: learning-pytorch-geometric-on-ipus/
142+
143+
pyg-2_a_worked_example:
144+
source:
145+
paths:
146+
- path: tutorials/tutorials/pytorch_geometric/2_a_worked_example/2_a_worked_example.ipynb
147+
repository:
148+
<<: *_common_source_repository
149+
prefix: tutorials/tutorials/pytorch_geometric/2_a_worked_example/
150+
target:
151+
renames: {}
152+
repository:
153+
<<: *_common_target_repository
154+
prefix: learning-pytorch-geometric-on-ipus/
155+
156+
pyg-3_small_graph_batching_with_padding:
157+
source:
158+
paths:
159+
- path: tutorials/tutorials/pytorch_geometric/3_small_graph_batching_with_padding/3_small_graph_batching_with_padding.ipynb
160+
repository:
161+
<<: *_common_source_repository
162+
prefix: tutorials/tutorials/pytorch_geometric/3_small_graph_batching_with_padding/
163+
target:
164+
renames: {}
165+
repository:
166+
<<: *_common_target_repository
167+
prefix: learning-pytorch-geometric-on-ipus/
168+
169+
pyg-4_small_graph_batching_with_packing:
170+
source:
171+
paths:
172+
- path: tutorials/tutorials/pytorch_geometric/4_small_graph_batching_with_packing/4_small_graph_batching_with_packing.ipynb
173+
repository:
174+
<<: *_common_source_repository
175+
prefix: tutorials/tutorials/pytorch_geometric/4_small_graph_batching_with_packing/
176+
target:
177+
renames: {}
178+
repository:
179+
<<: *_common_target_repository
180+
prefix: learning-pytorch-geometric-on-ipus/
181+
182+
pyg-tutorial-requirements:
183+
source:
184+
paths:
185+
- path: tutorials/tutorials/pytorch_geometric/requirements.txt
186+
repository:
187+
<<: *_common_source_repository
188+
prefix: tutorials/tutorials/pytorch_geometric/
189+
target:
190+
renames: {}
191+
repository:
192+
<<: *_common_target_repository
193+
prefix: learning-pytorch-geometric-on-ipus/

.github/workflows/2-local-vpod-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
type: string
1616
description: "Docker image used in notebook testing"
1717
required: false
18-
default: "graphcore/pytorch-geometric-jupyter:3.2.1-ubuntu-20.04-20230531"
18+
default: "localhost:5000/graphcore/pytorch-geometric-paperspace:3.3.0"
1919
notebooks:
2020
type: string
2121
description: "List of notebooks to test in JSON format"
@@ -45,7 +45,7 @@ jobs:
4545
tests:
4646
uses: graphcore/paperspace-automation/.github/workflows/subwf-vpod-tests-for-nb-repo.yml@main
4747
with:
48-
docker_image: ${{ inputs.docker_image || 'graphcore/pytorch-geometric-jupyter:3.2.1-ubuntu-20.04-20230531' }}
48+
docker_image: ${{ inputs.docker_image || 'localhost:5000/graphcore/pytorch-geometric-paperspace:3.3.0' }}
4949
notebooks: ${{ inputs.notebooks }}
5050
machine_types: ${{ inputs.machine_types }}
5151
test_env: ${{ inputs.test_env || 'Local' }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Copy notebooks from source repos
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
deployment_spec:
7+
required: false
8+
type: string
9+
description: "Spec file to be read for copying notebooks, must be valid input to deployment/deploy.py"
10+
default: .github/deployment-configs/deploy-pyg-paperspace.yaml
11+
pull_request:
12+
13+
14+
jobs:
15+
tests:
16+
uses: graphcore/paperspace-automation/.github/workflows/copy-to-nb-repo.yml@main
17+
with:
18+
deployment_spec: ${{ inputs.deployment_spec }}
19+
secrets:
20+
gh_token: ${{ secrets.GH_TOKEN_SYNC_REPOS }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.ipynb_checkpoints
1+
.ipynb_checkpoints

.gradient/automated-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# 3: Version ID
1111
# 4: Either the runtime in which we are running or 'upload-reports'
1212
# 5: Folder in which to save/look for tar.gz report archives
13-
# 6: Examples utils spec file to process and benchmark
13+
# 6: Examples utils spec file to process and benchmark
1414
# 7: Huggingface token
1515
# @:8 other arguments are passed to the `examples_utils platform_assesment` command
1616
# @:9 other arguments are passed to the `examples_utils platform_assesment` command

.gradient/available_ipus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
f" the Notebook ID: {nb_id}"
1919
) from err
2020
# to be captured as a variable in the bash script that calls this python script
21-
print(num_ipus)
21+
print(num_ipus)

.gradient/notebook-tests.yaml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,41 @@ pyg-cluster-GCN:
1111
notebook:
1212
file: cluster_gcn_training.ipynb
1313
timeout: 1200
14-
requirements_file: requirements.txt
1514

1615
pyg-message-passing:
1716
location: ../graph-prediction/gin-molecular-prediction
1817
generated: true
1918
notebook:
2019
file: gin_training.ipynb
2120
timeout: 1200
22-
requirements_file: requirements.txt
2321

2422
pyg-schnet:
2523
location: ../graph-prediction/schnet-molecular-prediction
2624
generated: true
2725
notebook:
2826
file: schnet_training.ipynb
2927
timeout: 1200
30-
requirements_file: requirements.txt
3128

3229
pyg-tgn:
3330
location: ../link-prediction/temporal-graph-networks
3431
generated: true
3532
notebook:
3633
file: Train_TGN.ipynb
3734
timeout: 1200
38-
requirements_file: requirements.txt
3935

4036
pyg-nbfnet:
4137
location: ../link-prediction/NBFNet-for-knowledge-graphs
4238
generated: true
4339
notebook:
4440
file: NBFNet_training.ipynb
45-
timeout: 1200
46-
requirements_file: requirements.txt
41+
timeout: 2400
4742

4843
pyg-ipu-speed-advantage:
4944
location: ../ipu-speed-advantage
5045
generated: true
5146
notebook:
5247
file: benchmarking_gnn_on_ipus.ipynb
5348
timeout: 1200
54-
requirements_file: requirements.txt
5549

5650
# tutorials
5751

@@ -61,46 +55,76 @@ pyg-tut1:
6155
notebook:
6256
file: 1_at_a_glance.ipynb
6357
timeout: 1200
64-
requirements_file: requirements.txt
6558

6659
pyg-tut2:
6760
location: ../learning-pytorch-geometric-on-ipus
6861
generated: true
6962
notebook:
7063
file: 2_a_worked_example.ipynb
7164
timeout: 1200
72-
requirements_file: requirements.txt
7365

7466
pyg-tut3:
7567
location: ../learning-pytorch-geometric-on-ipus
7668
generated: true
7769
notebook:
7870
file: 3_small_graph_batching_with_padding.ipynb
7971
timeout: 1200
80-
requirements_file: requirements.txt
8172

8273
pyg-tut4:
8374
location: ../learning-pytorch-geometric-on-ipus
8475
generated: true
8576
notebook:
8677
file: 4_small_graph_batching_with_packing.ipynb
8778
timeout: 1200
88-
requirements_file: requirements.txt
79+
80+
pyg-tut5:
81+
location: ../learning-pytorch-geometric-on-ipus
82+
generated: true
83+
notebook:
84+
file: 5_large_graph_sampling.ipynb
85+
timeout: 1200
86+
87+
pyg-tut6:
88+
location: ../learning-pytorch-geometric-on-ipus
89+
generated: true
90+
notebook:
91+
file: 6_heterogeneous_graphs.ipynb
92+
timeout: 1200
93+
8994

9095
# MolFeat
9196
molfeat:
92-
location: ../molfeat
97+
location: ../archive/molfeat
9398
generated: true
9499
notebook:
95100
file: pytorch_geometric_molfeat.ipynb
96101
timeout: 1200
97-
requirements_file: requirements.txt
98102

99103
# Graphium
100104
graphium:
101-
location: ../graphium
105+
location: ../archive/graphium
102106
generated: true
103107
notebook:
104108
file: running-multitask-ipu.ipynb
105109
timeout: 1200
106-
requirements_file: requirements.txt
110+
111+
useful-managing-ipu-resources:
112+
location: ../useful-tips
113+
generated: true
114+
notebook:
115+
file: managing_ipu_resources.ipynb
116+
timeout: 1000
117+
118+
fraud-detection-1:
119+
location: ../fraud-detection
120+
generated: true
121+
notebook:
122+
file: 1_dataset_preprocessing.ipynb
123+
timeout: 1800
124+
125+
fraud-detection-2:
126+
location: ../fraud-detection
127+
generated: true
128+
notebook:
129+
file: 2_training.ipynb
130+
timeout: 1800

.gradient/prepare-datasets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ if [[ "${1:-}" == 'test' ]]; then
2121
elif [[ "${2:-}" == 'test' ]]; then
2222
#source .gradient/automated-test.sh "${@:2}"
2323
/notebooks/.gradient/automated-test.sh $3 $4 $5 $6 $7 $8 "${@:9}"
24-
fi
24+
fi

0 commit comments

Comments
 (0)