Skip to content

Commit 46e7801

Browse files
andyxningFeiDaLI
authored andcommitted
[Misc] Convert VLLM_TORCH_PROFILER_DIR path to absolute (vllm-project#23191)
Signed-off-by: Andy Xie <[email protected]>
1 parent a418bb6 commit 46e7801

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm/envs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,8 @@ def get_vllm_port() -> Optional[int]:
673673
# Note that it must be an absolute path.
674674
"VLLM_TORCH_PROFILER_DIR":
675675
lambda: (None if os.getenv("VLLM_TORCH_PROFILER_DIR", None) is None else os
676-
.path.expanduser(os.getenv("VLLM_TORCH_PROFILER_DIR", "."))),
676+
.path.abspath(os.path.expanduser(os.getenv(
677+
"VLLM_TORCH_PROFILER_DIR", ".")))),
677678

678679
# Enable torch profiler to record shapes if set
679680
# VLLM_TORCH_PROFILER_RECORD_SHAPES=1. If not set, torch profiler will

0 commit comments

Comments
 (0)