"vllm/vscode:/vscode.git/clone" did not exist on "a884bc62d6eeeb58e87e56b2d966c63f073ada77"
README.md 1.25 KB
Newer Older
1
2
# Expert parallel kernels

3
4
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.

5
Here we break down the requirements in 2 steps:
6

7
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.
8
2. Configure NVIDIA driver to enable IBGDA. This step requires root access, and must be done on the host machine.
9

10
2 is necessary for multi-node deployment.
11
12
13

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

14
## Usage
15

16
### Single-node
17
18
19
20
21

```bash
bash install_python_libraries.sh
```

22
### Multi-node
23
24
25

```bash
bash install_python_libraries.sh
26
sudo bash configure_system_drivers.sh
27
28
sudo reboot # Reboot is required to load the new driver
```