Make PyTorch profiler gzip and CUDA time dump configurable (#29568)

Signed-off-by: Yifei Zhang <yifei.zhang1992@outlook.com>
This commit is contained in:
Yifei Zhang
2025-12-01 04:30:46 +00:00
committed by GitHub
parent f72a817bdf
commit 1ab8fc8197
5 changed files with 35 additions and 13 deletions
+3 -1
View File
@@ -190,7 +190,9 @@ class AsyncLLM(EngineClient):
],
with_stack=envs.VLLM_TORCH_PROFILER_WITH_STACK,
on_trace_ready=torch.profiler.tensorboard_trace_handler(
envs.VLLM_TORCH_PROFILER_DIR, worker_name=worker_name, use_gzip=True
envs.VLLM_TORCH_PROFILER_DIR,
worker_name=worker_name,
use_gzip=envs.VLLM_TORCH_PROFILER_USE_GZIP,
),
)
else: