Coder Social home page Coder Social logo

disttgl's Introduction

DistTGL: Distributed Memory-based Temporal Graph Neural Network Training

Overview

This repo is the open-sourced code for our work DistTGL: Distributed Memory-based Temporal Graph Neural Network Training.

Requirements

  • python >= 3.8.13
  • pytorch >= 1.11.0
  • pandas >= 1.1.5
  • numpy >= 1.19.5
  • dgl >= 0.8.2
  • pyyaml >= 5.4.1
  • tqdm >= 4.61.0
  • pybind11 >= 2.6.2
  • g++ >= 7.5.0
  • openmp >= 201511

Dataset

Download the dataset using the down.sh script. Note that we do not release the Flights dataset due to license restriction. You can download the Flight dataset directly from this link.

Mini-batch Preparation

DistTGL pre-compute mini-batches before training. To ensure fast mini-batch loading from disk, please store the mini-batches in a fast SSD. In the paper, we use RAID0 array of two NVMe SSDs.

We first compile the sampler from TGL by

python setup.py build_ext --inplace

Then generate the mini-batches using

python gen_minibatch.py --data <DatasetName> --gen_eval --minibatch_parallelism <NumberofMinibatchParallelism>

where <NumberofMinibatchParallelism> is the i in (i x j x k) in the paper.

Run

On each machine, execute

torchrun --nnodes=<NumberofMachines> --nproc_per_node=<NumberofGPUPerMachine> --rdzv_id=<JobID> --rdzv_backend=c10d --rdzv_endpoint=<HostNodeIPAddress>:<HostNodePort> train5.py --data <DatsetName> --group <NumberofGroupParallelism>

where <NumberofGroupParallelism> is the k in (i x j x k) in the paper.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

disttgl's People

Contributors

amazon-auto avatar zheng-da avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.