Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 931 Bytes

readme.md

File metadata and controls

49 lines (34 loc) · 931 Bytes

Disag MoE

Install

conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.1 -c pytorch -c nvidia
conda install nccl conda-forge::cuda-cudart-dev nvidia/label/cuda-12.4.0::cuda-runtime
sudo apt-get install libzmq3-dev libcereal-dev
git submodule update --init
pip install -r requirements.txt
pip install .

Third party

See .gitmodules.

  • cereal
  • cppzmq/libzmq
  • nvtx

Tests

python tests/test_binding.py

Build

DisagMoE requires a c++ lib built from csrc. There are 2 ways to build it

  • cmake
  • setup.py

With setup.py

make pip

It will leverage setup.py to build the shared library. The equivalent command is pip install ..

With cmake

make cmake

This will build a shared library with cmake and install the library in the root directory of DisagMoE.

NOTE: The library built with cmake is under development and testing.