README.md 1.21 KB
Newer Older
1
2
Large-scale cluster-level expert parallel, as described in the [DeepSeek-V3 Technical Report](http://arxiv.org/abs/2412.19437), is an efficient way to deploy sparse MoE models with many experts. However, such deployment requires many components beyond a normal Python package, including system package support and system driver support. It is impossible to bundle all these components into a Python package.

3
Here we break down the requirements in 2 steps:
4
1. Build and install the Python libraries (both [pplx-kernels](https://github.com/ppl-ai/pplx-kernels) and [DeepEP](https://github.com/deepseek-ai/DeepEP)), including necessary dependencies like NVSHMEM. This step does not require any privileged access. Any user can do this.
5
2. Configure NVIDIA driver to enable IBGDA. This step requires root access, and must be done on the host machine.
6

7
2 is necessary for multi-node deployment.
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

All scripts accept a positional argument as workspace path for staging the build, defaulting to `$(pwd)/ep_kernels_workspace`.

# Usage

## Single-node

```bash
bash install_python_libraries.sh
```

## Multi-node

```bash
bash install_python_libraries.sh
23
sudo bash configure_system_drivers.sh
24
25
sudo reboot # Reboot is required to load the new driver
```