After enabling dp attention, multiple metrics such as gen_throughput will only output a single rank value.
It seems that only data from the last report rank is showing. Therefore, the displayed value will be roughly --dp times less than the actual total throughput.
Just enable DP attention and it should be reproducible.
Python: 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0]
CUDA available: True
GPU 0,1,2,3,4,5,6,7: NVIDIA H100 80GB HBM3
GPU 0,1,2,3,4,5,6,7 Compute Capability: 9.0
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 12.4, V12.4.131
CUDA Driver Version: 570.133.20
PyTorch: 2.6.0+cu124
sglang: 0.4.6.post5
sgl_kernel: 0.1.4
flashinfer_python: 0.2.5+cu124torch2.6
triton: 3.2.0
transformers: 4.51.1
torchao: 0.9.0
numpy: 2.2.6
aiohttp: 3.11.18
fastapi: 0.115.12
hf_transfer: 0.1.9
huggingface_hub: 0.32.0
interegular: 0.3.3
modelscope: 1.26.0
orjson: 3.10.18
outlines: 0.1.11
packaging: 25.0
psutil: 7.0.0
pydantic: 2.11.5
python-multipart: 0.0.20
pyzmq: 26.4.0
uvicorn: 0.34.2
uvloop: 0.21.0
vllm: Module Not Found
xgrammar: 0.1.19
openai: 1.82.0
tiktoken: 0.9.0
anthropic: 0.52.0
litellm: 1.70.4
decord: 0.6.0
(Omit some unrelated NVLINK info)
ulimit soft: 1048576
Checklist
Describe the bug
After enabling dp attention, multiple metrics such as gen_throughput will only output a single rank value.
sglang/python/sglang/srt/metrics/collector.py
Line 163 in 43baba6
It seems that only data from the last report rank is showing. Therefore, the displayed value will be roughly
--dptimes less than the actual total throughput.Reproduction
Just enable DP attention and it should be reproducible.
Environment