[Startup][UX] Enable CUDAGraph memory profiling by default (#38284)
Signed-off-by: Matthew Bonanni <mbonanni@redhat.com> Co-authored-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
This commit is contained in:
co-authored by
Tyler Michael Smith
parent
9db4650e5e
commit
96a85c5750
@@ -454,14 +454,13 @@ class Worker(WorkerBase):
|
||||
1.0,
|
||||
)
|
||||
logger.info(
|
||||
"CUDA graph memory profiling is enabled "
|
||||
"(VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1). "
|
||||
"This will become the default in v0.21. "
|
||||
"The current --gpu-memory-utilization=%.4f is equivalent "
|
||||
"to --gpu-memory-utilization=%.4f without CUDA graph "
|
||||
"memory profiling. To maintain the same effective KV "
|
||||
"cache size as before, increase "
|
||||
"--gpu-memory-utilization to %.4f.",
|
||||
"CUDA graph memory profiling is enabled (default since "
|
||||
"v0.21.0). The current --gpu-memory-utilization=%.4f is "
|
||||
"equivalent to --gpu-memory-utilization=%.4f without "
|
||||
"CUDA graph memory profiling. To maintain the same "
|
||||
"effective KV cache size as before, increase "
|
||||
"--gpu-memory-utilization to %.4f. To disable, set "
|
||||
"VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=0.",
|
||||
current_util,
|
||||
equiv_util,
|
||||
suggested_util,
|
||||
@@ -471,14 +470,14 @@ class Worker(WorkerBase):
|
||||
round(current_util + cg_util_delta, 4),
|
||||
1.0,
|
||||
)
|
||||
logger.info(
|
||||
"In v0.21, CUDA graph memory profiling will be enabled "
|
||||
"by default (VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1), "
|
||||
"which more accurately accounts for CUDA graph memory "
|
||||
"during KV cache allocation. To try it now, set "
|
||||
"VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1 and increase "
|
||||
"--gpu-memory-utilization from %.4f to %.4f to maintain "
|
||||
"the same effective KV cache size.",
|
||||
logger.warning(
|
||||
"CUDA graph memory profiling is disabled "
|
||||
"(VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=0). "
|
||||
"Without it, CUDA graph memory is not accounted for "
|
||||
"during KV cache allocation, which may require lowering "
|
||||
"--gpu-memory-utilization to avoid OOM. Consider "
|
||||
"re-enabling it (the default as of v0.21.0) and increasing "
|
||||
"--gpu-memory-utilization from %.4f to %.4f.",
|
||||
current_util,
|
||||
suggested_util,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user