mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-09 07:44:55 +08:00
[Bugfix][DCP] Set default CUDAGraphMode to PIECEWISE for DCP (#26574)
Signed-off-by: FENP <32334296+FENP@users.noreply.github.com>
This commit is contained in:
parent
045b396d09
commit
b91d8db873
@ -350,6 +350,15 @@ class VllmConfig:
|
||||
or self.model_config.is_encoder_decoder
|
||||
):
|
||||
self.compilation_config.cudagraph_mode = CUDAGraphMode.PIECEWISE
|
||||
|
||||
# decode context parallel do not support full cudagraphs now.
|
||||
if self.parallel_config.decode_context_parallel_size > 1:
|
||||
logger.warning(
|
||||
"Decode context parallel (DCP) is enabled, which is "
|
||||
"incompatible with full CUDA graphs. Set "
|
||||
"cudagraph_mode to PIECEWISE."
|
||||
)
|
||||
self.compilation_config.cudagraph_mode = CUDAGraphMode.PIECEWISE
|
||||
else:
|
||||
self.compilation_config.cudagraph_mode = CUDAGraphMode.NONE
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user