Merge remote-tracking branch 'upstream/main' into patches

This commit is contained in:
2026-10-05 08:52:31 +07:00
85 changed files with 3146 additions and 769 deletions
+23
View File
@@ -704,6 +704,21 @@ class VllmConfig:
"""
return 1 + self.num_speculative_tokens
@property
def use_cumem_cudagraph_pool(self) -> bool:
"""Whether CUDA graphs go to the cuMem pool that sleep offloads."""
from vllm.platforms import current_platform
model_config = self.model_config
return (
model_config is not None
and model_config.sleep_mode_offload_cudagraph
and model_config.enable_sleep_mode
and model_config.sleep_mode_backend == "cumem"
and self.compilation_config.cudagraph_mode != CUDAGraphMode.NONE
and current_platform.is_cuda()
)
@property
def use_v2_model_runner(self) -> bool:
if self.attention_config.hisparse_config is not None:
@@ -2328,6 +2343,14 @@ class VllmConfig:
custom_ops.append("+quant_fp8")
self._verify_kv_transfer_compat()
if self.use_cumem_cudagraph_pool:
# NCCL graph registration pins the offloaded pool; workers inherit this.
value = os.environ.setdefault("NCCL_GRAPH_REGISTER", "0")
if value != "0":
logger.warning(
"NCCL_GRAPH_REGISTER=%s pins the CUDA graph pool during sleep.",
value,
)
# Log the custom passes that are enabled
self.compilation_config.pass_config.log_enabled_passes()