Running DeepSeek-R1 Disaggregated with WideEP on GB200s
Dynamo supports SGLang’s GB200 implementation of wide expert parallelism and large scale P/D for DeepSeek-R1! You can read their blog post here for more details. We provide a sample configuration that demonstrates WideEP and P/D disaggregation. To run the exact configuration shown in the blog post, you can view the commands created by the SGLang team here. In this example, we will run 1 prefill worker on 2 GB200 nodes (4 GPUs each) and 1 decode worker on 2 GB200 nodes (total 8 GPUs).
Instructions
- Build the Dynamo container for ARM64 (GB200) using the
build.shscript.
[!Note] Please ensure that you are building this on an ARM64 machine. The build script will automatically configure the correct platform and build arguments for SGLang on ARM64/GB200.
- You can run this container on each 4xGB200 node using the following command.
We recommend downloading DeepSeek-R1 and then mounting it to the container. You can find the model here
In each container, you should be in the /sgl-workspace/dynamo/examples/backends/sglang directory.
- Run the ingress and prefill worker
On the other prefill nodes (this example has 2 total prefill nodes), run the same command but change --node-rank to 1
If you encounter random CPU recv timeout issues during the warm-up phase in multi-GPU or multi-node setups, they are likely caused by DeepGEMM kernel compilation overhead. To avoid these non-deterministic timeouts, it’s strongly recommended to precompile the DeepGEMM kernels before launching the SGLang engine. This ensures all kernels are cached and ready, preventing long initialization delays or distributed timeout errors. To precompile and use cached kernels, please execute the following commands:
There’s a known issue where the compile request may fail due to missing bootstrap information, but the kernels are still successfully cached. Using a gradual warm-up phase and enabling caching for FlashInfer (similar to DeepGEMM) can further improve stability and reduce startup time. See https://github.com/sgl-project/sglang/issues/9867#issuecomment-3336551174 for more details.
- Run the decode worker on the head decode node
On the other decode nodes (this example has 2 total decode nodes), run the same command but change --node-rank to 1.