Unverified Commit 2bda1582 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[examples] update README about partition conversion (#7203)

parent 8ab27b05
......@@ -143,6 +143,14 @@ python3 ~/workspace/dgl/tools/launch.py \
In order to run with `GraphBolt`, we need to partition graph into `GraphBolt` data formats.Please note that both `DGL` and `GraphBolt` partitions are saved together.
If we have already partitioned into `DGL` format, just convert them directly like below:
```
python3 -c "import dgl; dgl.distributed.dgl_partition_to_graphbolt('ogbn-products.json')"
```
Or partition from scratch like this:
```
python3 partition_graph.py --dataset ogbn-products --num_parts 2 --balance_train --balance_edges --use_graphbolt
```
......
......@@ -107,6 +107,12 @@ If we want to train RGCN with `GraphBolt`, we need to append `--use_graphbolt` t
python3 partition_graph.py --dataset ogbn-mag --num_parts 2 --balance_train --balance_edges --use_graphbolt
```
If we have already partitioned into `DGL` format, just convert them directly like below:
```
python3 -c "import dgl; dgl.distributed.dgl_partition_to_graphbolt('ogbn-products.json')"
```
### Step 3: Launch distributed jobs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment