Our work is implemented based on DGL (with a PyTorch backend), and all experiments were conducted on Intel x86 processors and NVIDIA A100 GPUs.
Cherry is implemented using DGL 2.0.0 and PyTorch 2.0.1.
To be more specific, Cherry uses python 3.10, CUDA 11.8/cuDNN 8.7. You can quickly set up the environment needed for the experiments using several methods, and we recommend using Docker.
We have configured the necessary Docker images for the experiments, which can be obtained directly using the following command:
docker pull cherrywang/cherry:v1We also prepared a quick configuration for the conda environment, which can be set up using the following command:
From requirements.sh
conda create -n env_name python=3.10
conda activate env_name
bash ./requirements.shFrom enviroment.yml
conda env create -f environment.yml
conda cherryIf you want to test the effect of Betty at the same time, please execute the following command additionally
bash ./pytorch/mirco_batch_train/Betty_file/gen_data.shFor more details about Betty's experimental environment, please refer to Betty Code
-
pytorch/micro_batch_trainfolder contains all the implementations of Cherry.-
cherry_graph_partitioner.pyrealizes the Out-degree Centric Graph Partitioning -
c_block_dataloader.pyis the dataloader for Cherry-LMFG. -
micro_batch_train.pyis Cherry-GMFG training script which contains MBLs construction and training.
-
-
pytorch/modelsfolder contains all models used in our experiments. -
pytorch/utilsfolder contains some of our custom profiling tools and dataset loading. -
pytorch/micro_batch_train/Betty_fileis Betty code from Betty Code, more details please readpytorch/micro_batch_train/Betty_file/readme.md -
Evaluationcontains some of our experimental scripts and running examples of Cherry-LMFG and Cherry-GMFG.
-
git clone https://github.com/anonymousFor-asp/Cherry.git -
Configure your environment according to the install requirements
-
Configure your dataset storage folder in
pytorch/micro_batch_train/utils/load_graph.py- All datasets used in the experiment can be automatically downloaded except Amazon.You can manually download the amazon dataset from GraphSAINT
-
./Evaluationcontains some test examples, including the writing of test scripts. You can adjust the parameters to test your own experiments.
All experimental scripts are easily extensible, and you can freely choose the datasets and model parameters you want to test.
cd Evaluation/
bash run_LMFG.shcd Evaluation/
bash run_GMFG.sh