@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 1f5d178e9c
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 15, 04:45 UTC

Revert "[Bugfix] default set cuda_graph_sizes to max_num_seqs for v1 engine" (#20128)

Michael Goin committed Jun 26, 2025 at 23:32 UTC 1f5d178e9cc02a49e9d734420b0c0afaff2fd7af
1 file changed +4 -9
vllm/config.py
+4 -9
@@ -2042,12 +2042,11 @@ class SchedulerConfig:
2042 NOTE: This will be replaced by speculative config in the future; it is
2043 present to enable correctness tests until then."""
2044
2045 - cuda_graph_sizes: list[int] = field(default_factory=list)
2046 - """Cuda graph capture sizes
2047 - 1. if none provided, then default set to [max_num_seqs]
2048 - 2. if one value is provided, then the capture list would follow the
2045 + cuda_graph_sizes: list[int] = field(default_factory=lambda: [512])
2046 + """Cuda graph capture sizes, default is 512.
2047 + 1. if one value is provided, then the capture list would follow the
2048 pattern: [1, 2, 4] + [i for i in range(8, cuda_graph_sizes + 1, 8)]
2050 - 3. more than one value (e.g. 1 2 128) is provided, then the capture list
2049 + 2. more than one value (e.g. 1 2 128) is provided, then the capture list
2050 will follow the provided list."""
2051
2052 delay_factor: float = 0.0
@@ -2212,10 +2211,6 @@ class SchedulerConfig:
2211 self.max_num_partial_prefills, self.max_long_partial_prefills,
2212 self.long_prefill_token_threshold)
2213
2215 - # If cuda_graph_sizes is not specified, default set to [max_num_seqs].
2216 - if not self.cuda_graph_sizes:
2217 - self.cuda_graph_sizes = [self.max_num_seqs]
2218 -
2214 @model_validator(mode='after')
2215 def _verify_args(self) -> Self:
2216 if (self.max_num_batched_tokens < self.max_model_len