[Worker] Boundary allocator telemetry and an opt-in PLE row dump

Env-gated diagnostics, inert unless set. Allocator telemetry is read only at
step boundaries, armed after warm-up and capture.

Co-Authored-By: Hinata <hinata@idihore.id>
Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
2026-10-09 19:49:50 +07:00
co-authored by Hinata
parent 025fd08603
commit 3b5fc7c7be
4 changed files with 183 additions and 0 deletions
+5
View File
@@ -93,6 +93,7 @@ from vllm.v1.outputs import (
)
from vllm.v1.ple_offload.fatal import fail_ple_execute_model
from vllm.v1.utils import compute_iteration_details, report_usage_stats
from vllm.v1.worker import e2_memstats as _e2_memstats
from vllm.v1.worker import guard_telemetry
from vllm.v1.worker.sentinel.gpu_worker_sentinel import WorkerSentinel
from vllm.v1.worker.startup_plan import (
@@ -1195,6 +1196,10 @@ class Worker(WorkerBase):
# while a capture is active is what cudaStreamCaptureModeGlobal rejects.
guard_telemetry.start_reader()
# Allocator telemetry: armed only after warm-up and CUDA-graph capture (env-gated).
if _e2_memstats.enabled():
_e2_memstats.ensure_started(self)
return CompilationTimes(
language_model=self.compilation_config.compilation_time,
encoder=self.compilation_config.encoder_compilation_time,