Running DeepSeek-R1 Disaggregated with WideEP on H100s
Dynamo supports SGLang’s 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 4 H100 nodes (32 GPUs each) and 1 decode worker on 4 H100 nodes (total 64 GPUs).
Instructions
- Build the Dynamo container for AMD64/x86_64 (H100) using the
build.shscript.
[!Note] Please ensure that you are building this on an AMD64 (x86_64) machine. The build script will automatically configure the correct platform for SGLang.
- You can run this container on each 8xH100 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 node (since this example has 4 total prefill nodes), run the same command but change --node-rank to 1,2, and 3
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 4 total decode nodes), run the same command but change --node-rank to 1, 2, and 3