vllm.utils.gc_utils ¶
   GCDebugConfig ¶
 Config for GC Debugger. - 0: disable GC debugger - 1: enable GC debugger with gc.collect elpased times - '{"top_objects":5}': enable GC debugger with top 5 collected objects
Source code in vllm/utils/gc_utils.py
   __init__ ¶
 __init__(gc_debug_conf: str | None = None) -> None
Source code in vllm/utils/gc_utils.py
   GCDebugger ¶
 Debugger for GC which logs helpful information for GC understanding. To enable, you should call maybe_attach_gc_debug_callback in the process.
Source code in vllm/utils/gc_utils.py
   handle ¶
  Handles a GC event (e.g. GC start or GC finish)
Source code in vllm/utils/gc_utils.py
   _compute_detailed_type ¶
  Detailed object type.
TODO(Jialin): Further enhance the detailed type with element types for easier debugging. We tried but occasionally it would run into signals which kills the engine.
Source code in vllm/utils/gc_utils.py
   _compute_top_gc_collected_objects ¶
  Group collected objects by types.
Source code in vllm/utils/gc_utils.py
   maybe_attach_gc_debug_callback ¶
  Attached a callback for GC debug when VLLM_GC_DEBUG is enabled.