vllm.compilation.cudagraph_pool
¶
Graph pool routing for CUDA graph capture under sleep mode.
Functions:
-
capture_outside_cumem_pool–CUDA graphs captured here stay out of cuMem, so that memory profiling can
-
capture_pool–Yield the pool to capture into, the cuMem graph pool when sleep offloads
capture_outside_cumem_pool()
¶
CUDA graphs captured here stay out of cuMem, so that memory profiling can free its throwaway graphs normally.
Source code in vllm/compilation/cudagraph_pool.py
capture_pool(pool, vllm_config)
¶
Yield the pool to capture into, the cuMem graph pool when sleep offloads graph memory, and point NCCL's graph allocator at it.