[ROCm][Perf] Enable DPA+ETP prefill compute/comm dual-batch-overlap for DeepSeek-V4 (#57773)
Signed-off-by: Shanshan Shen <87969357+shen-shanshan@users.noreply.github.com> Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
+22
-11
@@ -2116,17 +2116,28 @@ class VllmConfig:
|
||||
|
||||
if self.parallel_config.use_ubatching:
|
||||
a2a_backend = self.parallel_config.all2all_backend
|
||||
assert a2a_backend in [
|
||||
"deepep_low_latency",
|
||||
"deepep_high_throughput",
|
||||
"nixl_ep",
|
||||
], (
|
||||
"Microbatching currently only supports the deepep_low_latency, "
|
||||
"deepep_high_throughput, and nixl_ep all2all backends. "
|
||||
f"{a2a_backend} is not supported. To fix use "
|
||||
"--all2all-backend=deepep_low_latency, "
|
||||
"--all2all-backend=deepep_high_throughput, or "
|
||||
"--all2all-backend=nixl_ep and install the matching kernels."
|
||||
if current_platform.is_rocm():
|
||||
supported_backends = [
|
||||
"deepep_low_latency",
|
||||
"deepep_high_throughput",
|
||||
"nixl_ep",
|
||||
# The naive DP/EP prepare/finalize runs its all-gather /
|
||||
# reduce-scatter on the comm stream under DBO.
|
||||
"allgather_reducescatter",
|
||||
]
|
||||
else:
|
||||
# CUDA and other platforms.
|
||||
supported_backends = [
|
||||
"deepep_low_latency",
|
||||
"deepep_high_throughput",
|
||||
"nixl_ep",
|
||||
]
|
||||
assert a2a_backend in supported_backends, (
|
||||
"Microbatching currently only supports the "
|
||||
f"{', '.join(supported_backends)} all2all backends on this "
|
||||
f"platform. {a2a_backend} is not supported. To fix use one of "
|
||||
f"{', '.join('--all2all-backend=' + b for b in supported_backends)}"
|
||||
" and install the matching kernels."
|
||||
)
|
||||
|
||||
if not self.instance_id:
|
||||
|
||||
Reference in New Issue
Block a user