-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathGraphSAGE_dist.yaml
59 lines (59 loc) · 1.49 KB
/
GraphSAGE_dist.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: qihoo.net/v1alpha1
kind: DGLJob
metadata:
name: dgl-graphsage
namespace: dgl-operator
spec:
partitionMode: DGL-API
cleanPodPolicy: Running
dglReplicaSpecs:
Launcher:
replicas: 1
template:
spec:
containers:
- image: dgloperator/examples:graphsage-dist
name: dgl-graphsage
imagePullPolicy: Always
command:
- dglrun
args:
- --graph-name
- graphsage
# partition
- --partition-entry-point
- code/load_and_partition_graph.py
- --num-partitions
- "2"
- --balance-train
- --balance-edges
- --dataset-url
- http://snap.stanford.edu/ogb/data/nodeproppred/products.zip
# training
- --train-entry-point
- code/train_dist.py
- --num-epochs
- "1"
- --batch-size
- "1000"
- --num-trainers
- "1"
- --num-samplers
- "4"
- --num-servers
- "1"
Worker:
replicas: 2
template:
spec:
containers:
- image: dgloperator/examples:graphsage-dist
name: dgl-graphsage
imagePullPolicy: Always
resources:
requests:
memory: "20Gi"
cpu: "10"
limits:
memory: "20Gi"
cpu: "10"